cisst-saw
Loading...
Searching...
No Matches
mtsCallableReadMethod< _classType, _resultType > Class Template Reference

#include <mtsCallableReadMethod.h>

Inheritance diagram for mtsCallableReadMethod< _classType, _resultType >:
mtsCallableReadBase

Classes

class  ConditionalCast
class  ConditionalCast< true, _dummy >

Public Types

typedef mtsCallableReadBase BaseType
typedef _resultType ResultType
typedef _classType ClassType
typedef mtsCallableReadMethod< ClassType, ResultTypeThisType
typedef bool(_classType::*) ActionType(ResultType &argument) const

Public Member Functions

 mtsCallableReadMethod (void)
 mtsCallableReadMethod (ActionType action, ClassType *classInstantiation)
virtual ~mtsCallableReadMethod ()
mtsExecutionResult Execute (mtsGenericObject &argument)
void ToStream (std::ostream &outputStream) const
Public Member Functions inherited from mtsCallableReadBase
 mtsCallableReadBase (void)
virtual ~mtsCallableReadBase ()

Protected Attributes

ActionType Action
ClassTypeClassInstantiation

Member Typedef Documentation

◆ ActionType

template<class _classType, class _resultType>
typedef bool(_classType::*) mtsCallableReadMethod< _classType, _resultType >::ActionType(ResultType &argument) const

Typedef for pointer to member function (method) of a specific class (_classType).

◆ BaseType

template<class _classType, class _resultType>
typedef mtsCallableReadBase mtsCallableReadMethod< _classType, _resultType >::BaseType

◆ ClassType

template<class _classType, class _resultType>
typedef _classType mtsCallableReadMethod< _classType, _resultType >::ClassType

Typedef for the specific interface.

◆ ResultType

template<class _classType, class _resultType>
typedef _resultType mtsCallableReadMethod< _classType, _resultType >::ResultType

◆ ThisType

template<class _classType, class _resultType>
typedef mtsCallableReadMethod<ClassType, ResultType> mtsCallableReadMethod< _classType, _resultType >::ThisType

This type.

Constructor & Destructor Documentation

◆ mtsCallableReadMethod() [1/2]

template<class _classType, class _resultType>
mtsCallableReadMethod< _classType, _resultType >::mtsCallableReadMethod ( void )
inline

The constructor. Does nothing.

◆ mtsCallableReadMethod() [2/2]

template<class _classType, class _resultType>
mtsCallableReadMethod< _classType, _resultType >::mtsCallableReadMethod ( ActionType action,
ClassType * classInstantiation )
inline

The constructor.

Parameters
actionPointer to the member function that is to be called by the invoker of the command
classInstantiationPointer to the receiver of the command

◆ ~mtsCallableReadMethod()

template<class _classType, class _resultType>
virtual mtsCallableReadMethod< _classType, _resultType >::~mtsCallableReadMethod ( )
inlinevirtual

The destructor. Does nothing

Member Function Documentation

◆ Execute()

template<class _classType, class _resultType>
mtsExecutionResult mtsCallableReadMethod< _classType, _resultType >::Execute ( mtsGenericObject & result)
inlinevirtual

The execute method. Abstract method to be implemented by derived classes to run the actual operation on the receiver.

Implements mtsCallableReadBase.

◆ ToStream()

template<class _classType, class _resultType>
void mtsCallableReadMethod< _classType, _resultType >::ToStream ( std::ostream & outputStream) const
inlinevirtual

Human readable description

Implements mtsCallableReadBase.

Member Data Documentation

◆ Action

template<class _classType, class _resultType>
ActionType mtsCallableReadMethod< _classType, _resultType >::Action
protected

The pointer to member function of the receiver class that is to be invoked for a particular instance of the command.

◆ ClassInstantiation

template<class _classType, class _resultType>
ClassType* mtsCallableReadMethod< _classType, _resultType >::ClassInstantiation
protected

Stores the receiver object of the command.


The documentation for this class was generated from the following file: