cisst-saw
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
Public Types | Public Member Functions | Protected Attributes | List of all members
mtsCallableVoidMethod< _classType > Class Template Reference

#include <mtsCallableVoidMethod.h>

Inheritance diagram for mtsCallableVoidMethod< _classType >:
mtsCallableVoidBase

Public Types

typedef mtsCallableVoidBase BaseType
 
typedef _classType ClassType
 
typedef mtsCallableVoidMethod
< ClassType
ThisType
 
typedef void(_classType::* ActionType )(void)
 

Public Member Functions

 mtsCallableVoidMethod (void)
 
 mtsCallableVoidMethod (ActionType action, ClassType *classInstantiation)
 
virtual ~mtsCallableVoidMethod ()
 
mtsExecutionResult Execute (void)
 
void ToStream (std::ostream &outputStream) const
 
- Public Member Functions inherited from mtsCallableVoidBase
 mtsCallableVoidBase (void)
 
virtual ~mtsCallableVoidBase ()
 

Protected Attributes

ActionType Action
 
ClassTypeClassInstantiation
 

Detailed Description

template<class _classType>
class mtsCallableVoidMethod< _classType >

A templated version of command object with zero arguments for execute. The template argument is the class type whose method is contained in the command object. This command is based on a void method, i.e. it requires the class and method name as well as an instantiation of the class to get and actual pointer on the method.

Member Typedef Documentation

template<class _classType>
typedef void(_classType::* mtsCallableVoidMethod< _classType >::ActionType)(void)

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

template<class _classType>
typedef mtsCallableVoidBase mtsCallableVoidMethod< _classType >::BaseType
template<class _classType>
typedef _classType mtsCallableVoidMethod< _classType >::ClassType

Typedef for the specific interface.

template<class _classType>
typedef mtsCallableVoidMethod<ClassType> mtsCallableVoidMethod< _classType >::ThisType

This type.

Constructor & Destructor Documentation

template<class _classType>
mtsCallableVoidMethod< _classType >::mtsCallableVoidMethod ( void  )
inline

The constructor. Does nothing.

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

The destructor. Does nothing

Member Function Documentation

template<class _classType>
mtsExecutionResult mtsCallableVoidMethod< _classType >::Execute ( void  )
inlinevirtual

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

Implements mtsCallableVoidBase.

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

Human readable description

Implements mtsCallableVoidBase.

Member Data Documentation

template<class _classType>
ActionType mtsCallableVoidMethod< _classType >::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>
ClassType* mtsCallableVoidMethod< _classType >::ClassInstantiation
protected

Stores the receiver object of the command.


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