cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Classes | Public Types | Public Member Functions | Protected Attributes | List of all members
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, ResultType
ThisType
 
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

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).

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

Typedef for the specific interface.

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

This type.

Constructor & Destructor Documentation

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

The constructor. Does nothing.

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
template<class _classType , class _resultType >
virtual mtsCallableReadMethod< _classType, _resultType >::~mtsCallableReadMethod ( )
inlinevirtual

The destructor. Does nothing

Member Function Documentation

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.

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

Human readable description

Implements mtsCallableReadBase.

Member Data Documentation

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.

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: