Loading...
Searching...
No Matches
dynamicgraph::command::Setter< E, int > Class Template Reference
Inheritance diagram for dynamicgraph::command::Setter< E, int >:
[legend]
Collaboration diagram for dynamicgraph::command::Setter< E, int >:
[legend]

Public Types

typedef void(E::* SetterMethod) (const int &)
 Pointer to method that sets paramter of type int.
 
typedef void(E::* SetterMethod) (const int &)
 Pointer to method that sets paramter of type T.
 

Public Member Functions

 Setter (E &entity, SetterMethod setterMethod, const std::string &docString)
 Constructor.
 
 Setter (E &entity, SetterMethod setterMethod, const std::string &docString)
 Constructor.
 
- Public Member Functions inherited from dynamicgraph::command::Command
virtual ~Command ()
 
 Command (Entity &entity, const std::vector< Value::Type > &valueTypes, const std::string &docstring)
 Store the owner entity and a vector of value types.
 
const std::vector< Value::Type > & valueTypes () const
 Return the value type of all parameters.
 
void setParameterValues (const std::vector< Value > &values)
 Set parameter values.
 
const std::vector< Value > & getParameterValues () const
 Get parameter values.
 
Value execute ()
 Execute the command after checking parameters.
 
Entityowner ()
 Get a reference to the Entity owning this command.
 
std::string getDocstring () const
 Get documentation string.
 

Protected Member Functions

virtual Value doExecute ()
 Specific action performed by the command.
 
virtual Value doExecute ()
 Specific action performed by the command.
 

Additional Inherited Members

- Static Public Attributes inherited from dynamicgraph::command::Command
static const std::vector< Value::TypeEMPTY_ARG
 

Member Typedef Documentation

◆ SetterMethod [1/2]

typedef void(E::* dynamicgraph::command::Setter< E, int >::SetterMethod) (const int &)

Pointer to method that sets paramter of type T.

◆ SetterMethod [2/2]

template<class E>
typedef void(E::* dynamicgraph::command::Setter< E, int >::SetterMethod) (const int &)

Pointer to method that sets paramter of type int.

Constructor & Destructor Documentation

◆ Setter() [1/2]

template<class E>
dynamicgraph::command::Setter< E, int >::Setter ( E & entity,
SetterMethod setterMethod,
const std::string & docString )

◆ Setter() [2/2]

dynamicgraph::command::Setter< E, int >::Setter ( E & entity,
SetterMethod setterMethod,
const std::string & docString )

Constructor.

Member Function Documentation

◆ doExecute() [1/2]

virtual Value dynamicgraph::command::Setter< E, int >::doExecute ( )
protectedvirtual

Specific action performed by the command.

Implements dynamicgraph::command::Command.

◆ doExecute() [2/2]

template<class E>
Value dynamicgraph::command::Setter< E, int >::doExecute ( )
protectedvirtual