|
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 const std::string & | getDefaultOperation () |
| Returns the default operation of type OperationCB. More... | |
Protected Member Functions | |
| FFaOperationContainer () | |
| The default constructor selects 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 | |
| using | NamedOper = std::pair< std::string, OperationCB > |
| Convenience type alias for a named operations. More... | |
Static Private Attributes | |
| static std::vector< NamedOper > * | ourOperations = NULL |
| Static container for operations of 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 alias for a named operations.
|
inlineprotected |
The default constructor selects 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.
|
protected |
The selected operation.
|
staticprivate |
Static container for operations of type OperationCB.