LOCK_OBJECT and LOCK_THIS_OBJECT macros cannot be used with instances of this class.
More...
#include <source/Operation.h>
Public Member Functions | |
| GaOperationParametersPair (OTYPE *operation, PTYPE ¶meters) | |
| This constructor initializes operation's and parameters' pointers with user-defined values. Parameter's object is cloned and pointer to the new object is stored in the pair. | |
| GaOperationParametersPair (const GaOperationParametersPair &rhs) | |
| This is copy constructor. It copies pointer to used operation int new pair object and clones parameters' object and stores it. | |
| GaOperationParametersPair () | |
This constructor initializes operation's and parameters' pointers with NULL values. | |
| ~GaOperationParametersPair () | |
| Destructor frees memory allocated by parameters' object which was made by cloning parameters' object which user specified by calling SetParameters, SetOperation or when pair's object is constructed. | |
| OTYPE &GACALL | GetOperation () const |
| This method is not thread-safe. | |
| void GACALL | SetOperation (OTYPE *operation, PTYPE ¶meters) |
SetOperation method stores pointer to operation's object. It stores parameters stored by calling SetParameters method. | |
| PTYPE &GACALL | GetParameters () const |
| This method is not thread-safe. | |
| void GACALL | SetParameters (PTYPE ¶meters) |
SetParameters operation makes copy of (clones) user specified parameter's object and stores pointer to that object. If pointer to parameters/ object was defined prior the call, this method deletes object to which it was pointing. | |
| bool GACALL | HasOperation () const |
| This method is not thread-safe. | |
| bool GACALL | HasParameters () const |
| This method is not thread-safe. | |
Private Attributes | |
| OTYPE * | _operation |
| Pointer to operation's object. | |
| PTYPE * | _parameters |
| Pointer to parameters' object. | |
LOCK_OBJECT and LOCK_THIS_OBJECT macros cannot be used with instances of this class.
No public or private methods are thread-safe.
| OTYPE | Type of operation. | |
| PTYPE | Type of parameters. |
| Common::GaOperationParametersPair< OTYPE, PTYPE >::GaOperationParametersPair | ( | OTYPE * | operation, | |
| PTYPE & | parameters | |||
| ) | [inline] |
This constructor initializes operation's and parameters' pointers with user-defined values. Parameter's object is cloned and pointer to the new object is stored in the pair.
| operation | pointer to operation's object | |
| parameters | pointer to the object of operation's parameters |
| Common::GaOperationParametersPair< OTYPE, PTYPE >::GaOperationParametersPair | ( | const GaOperationParametersPair< OTYPE, PTYPE > & | rhs | ) | [inline] |
This is copy constructor. It copies pointer to used operation int new pair object and clones parameters' object and stores it.
| rhs | reference to pair object which is being copied. |
| Common::GaOperationParametersPair< OTYPE, PTYPE >::GaOperationParametersPair | ( | ) | [inline] |
This constructor initializes operation's and parameters' pointers with NULL values.
| Common::GaOperationParametersPair< OTYPE, PTYPE >::~GaOperationParametersPair | ( | ) | [inline] |
Destructor frees memory allocated by parameters' object which was made by cloning parameters' object which user specified by calling SetParameters, SetOperation or when pair's object is constructed.
| OTYPE& GACALL Common::GaOperationParametersPair< OTYPE, PTYPE >::GetOperation | ( | ) | const [inline] |
This method is not thread-safe.
| void GACALL Common::GaOperationParametersPair< OTYPE, PTYPE >::SetOperation | ( | OTYPE * | operation, | |
| PTYPE & | parameters | |||
| ) | [inline] |
SetOperation method stores pointer to operation's object. It stores parameters stored by calling SetParameters method.
This method is not thread-safe.
| operation | pointer to operation's object which will be stored in the pair. | |
| parameters | reference to parameters' object who's copy will be stored in the pair. |
| PTYPE& GACALL Common::GaOperationParametersPair< OTYPE, PTYPE >::GetParameters | ( | ) | const [inline] |
This method is not thread-safe.
| void GACALL Common::GaOperationParametersPair< OTYPE, PTYPE >::SetParameters | ( | PTYPE & | parameters | ) | [inline] |
SetParameters operation makes copy of (clones) user specified parameter's object and stores pointer to that object. If pointer to parameters/ object was defined prior the call, this method deletes object to which it was pointing.
This method is not thread-safe.
| parameters | reference to parameters' object who's copy will be stored in the pair. |
| bool GACALL Common::GaOperationParametersPair< OTYPE, PTYPE >::HasOperation | ( | ) | const [inline] |
This method is not thread-safe.
true if pair contains pointer to an operation's object, otherwise it returns false.| bool GACALL Common::GaOperationParametersPair< OTYPE, PTYPE >::HasParameters | ( | ) | const [inline] |
This method is not thread-safe.
true if pair contains pointer to an operation's object, otherwise it returns false.
OTYPE* Common::GaOperationParametersPair< OTYPE, PTYPE >::_operation [private] |
Pointer to operation's object.
PTYPE* Common::GaOperationParametersPair< OTYPE, PTYPE >::_parameters [private] |
Pointer to parameters' object.