tbx  0.7.6
Public Member Functions | List of all members
tbx::CommandMethod< T > Class Template Reference

Template to create a command that calls a member function. More...

#include <command.h>

Inheritance diagram for tbx::CommandMethod< T >:
tbx::Command tbx::Listener

Public Member Functions

 CommandMethod (T *call, void(T::*method)())
 Construct the Command method for the given object and method on it. More...
 
virtual void execute ()
 Calls the method on the object given in the constructor.
 
- Public Member Functions inherited from tbx::Listener
virtual ~Listener ()
 Destroy the listener object.
 

Additional Inherited Members

- Protected Member Functions inherited from tbx::Listener
 Listener ()
 Construct the Listener object.
 

Detailed Description

template<class T>
class tbx::CommandMethod< T >

Template to create a command that calls a member function.

Constructor & Destructor Documentation

◆ CommandMethod()

template<class T >
tbx::CommandMethod< T >::CommandMethod ( T *  call,
void(T::*)()  method 
)
inline

Construct the Command method for the given object and method on it.

Parameters
callThe object the method will be called on
methodThe method on the object to call

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