FEDEM Solver
R8.0
Source code of the dynamics solver
|
A class used to manage and store callbacks of a certain type. More...
#include <FFaOperation.H>
Static Public Member Functions | |
static void | addOperation (const std::string &name, OperationCB operation) |
Adds a named operation to the OperationCB container. More... | |
static void | getOperations (std::vector< std::string > &names) |
Returns a list of all operations of type OperationCB. More... | |
static void | setDefaultOperation (const std::string &o) |
Defines the default operation of type OperationCB. More... | |
static const std::string & | getDefaultOperation () |
Returns the default operation of type OperationCB. More... | |
Protected Member Functions | |
FFaOperationContainer () | |
The default constructor defines the default operation. More... | |
void | selectOperation (const std::string &name) |
Selects the named operation to use. More... | |
Protected Attributes | |
OperationCB | myOperationCB |
The selected operation. More... | |
Private Types | |
typedef std::map< std::string, OperationCB > | OperCBMap |
Convenience type definition, name-to-operation mapping. More... | |
Static Private Attributes | |
static std::map< std::string, OperationCB > * | ourOperations = NULL |
Static container for operations of type OperationCB. More... | |
static std::string | ourDefaultOper |
Name of the default operation type OperationCB. More... | |
A class used to manage and store callbacks of a certain type.
This must be a base class of all operations that are supposed to have changeable calculations.
|
private |
Convenience type definition, name-to-operation mapping.
|
inlineprotected |
The default constructor defines the default operation.
|
inlinestatic |
Adds a named operation to the OperationCB container.
|
inlinestatic |
Returns the default operation of type OperationCB.
|
inlinestatic |
Returns a list of all operations of type OperationCB.
|
inlineprotected |
Selects the named operation to use.
The given name has to be in the ourOperations container. If not, this operation will be undefined and when invoked it will not change the output argument.
|
inlinestatic |
Defines the default operation of type OperationCB.
|
protected |
The selected operation.
|
staticprivate |
Name of the default operation type OperationCB.
|
staticprivate |
Static container for operations of type OperationCB.