#include <ParameterArrayElement.hpp>
Represents an element of a parameter array.
Definition at line 39 of file ParameterArrayElement.hpp.
List of Shared Pointers to objects of type Type
Definition at line 61 of file Composite.hpp.
Shared Pointer to object of type Type
Definition at line 55 of file Composite.hpp.
torc::generic::ParameterArrayElement::ParameterArrayElement |
( |
| ) |
|
torc::generic::ParameterArrayElement::~ParameterArrayElement |
( |
| ) |
|
throw | ( | |
| ) | | |
|
virtual |
void torc::generic::ParameterArrayElement::accept |
( |
BaseVisitor & |
inoutVisitor | ) |
|
throw | ( | Error |
| ) | | |
|
virtual |
Receive an inoutVisitor to this class. The visit method of the inoutVisitor is called and a reference to this object is passed as a parameter. It has to be noted however, that a dynamic_cast is performed inside this method. If the cast fails, an appropriate exception is thrown by this method. This situation can arise when the passed Visitor object does not inherit from the appropriate inoutVisitor specialization. See Visitor documentation for more details.
- Parameters
-
[in,out] | inoutVisitor | A reference to the inoutVisitor object |
- Exceptions
-
Error | Visitor type inappropriate for visiting this object or any other error thrown by the Visitor::throw() method. |
Implements torc::generic::Visitable.
Definition at line 40 of file ParameterArrayElement.cpp.
44 e.setCurrentLocation(__FUNCTION__, __FILE__, __LINE__);
void runVisitor(_Tp &inoutVisited, BaseVisitor &inoutVisitor)
Get a specific member of this composition.
- Parameters
-
[in] | inIndices | A list of indices to be accessed. The number of indices must be equal to the number of dimensions. |
- Returns
- An empty pointer is returned
Get a specific member of this composition.
- Parameters
-
[in] | indices | A list of indices to be accessed. The number of indices must be equal to the number of dimensions. |
- Returns
- An empty pointer is returned
Implements torc::generic::Composite< Parameter >.
Get children of this composition.
- Parameters
-
[out] | outChildren | A list of all children for this composition |
- Note
- This wil return empty list for scalar
Get children of this composition.
- Parameters
-
[out] | outChildren | A list of all children for this composition |
Implements torc::generic::Composite< Parameter >.
Get composition type for this object
- Returns
- The CompositionType inSource eCompositionTypeVectorBit is returned
Get composition type for this object
- Returns
- The CompositionType inSource eCompositionTypeScalar is returned
Implements torc::generic::Composite< Parameter >.
Get the index of this bit in the vector.
- Returns
- A vector containing the indices to which this element belonged.
const std::string torc::generic::Nameable::getName |
( |
void |
| ) |
const |
|
inlinevirtualinherited |
Get the object name
- Returns
- Name of the object
Definition at line 89 of file Nameable.hpp.
Get the new name provided for the object.
- Returns
- Name of the object
Definition at line 78 of file generic/Renamable.hpp.
Get a pointer to the parent collection
- Returns
- A pointer to the parent collection if present, empty pointer otherwise
Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.
- Returns
- A shared pointer to this object
Get a shared pointer to this object. A valid pointer is returned if weakThis was set. Otherwise this returns a NULL pointer. For Vector types, the second scenario is an exception condition and should be treated as such.
- Parameters
-
[out] | ptr | Set to a shared pointer to this object |
const Unit torc::generic::Parameter::getUnit |
( |
| ) |
const |
|
virtualinherited |
const Value torc::generic::Parameter::getValue |
( |
| ) |
const |
|
inlineinherited |
Set the index of this bit in the vector.
- Parameters
-
[in] | inSource | A vector of indices for this element |
void torc::generic::Nameable::setName |
( |
const std::string & |
inSource | ) |
|
throw | ( | Error |
| ) | | |
|
inherited |
Set a name for this object
- Parameters
-
[in] | inSource | Name of the object |
- Exceptions
-
Error | Could not set name, because name is empty (Will be used by array members)
-
Id : eMessageIdErrorEmptyItemName
-
Context Data
|
Set a name for this object
- Parameters
-
[in] | inSource | Name of the object |
- Exceptions
-
Error | Could not set name, because name is empty (Will be used by array members) |
Definition at line 41 of file Nameable.cpp.
42 if(inSource.empty()) {
44 e.saveContextData(
"Nameable", inSource);
void torc::generic::Renamable::setOriginalName |
( |
const Name & |
inSource | ) |
|
|
virtualinherited |
Set the new name provided for the object.
- Parameters
-
[in] | inSource | Name of the object |
Definition at line 35 of file generic/Renamable.cpp.
Set a pointer to a parnt composition.
- Parameters
-
[in] | inParentCollection | pointer to the parent collection (Vector/Bundle) |
Set a pointer to a parnt composition.
- Parameters
-
[in] | parentCollection | pointer to the parent collection (Vector/Bundle) |
void torc::generic::Parameter::setUnit |
( |
const Unit & |
inSource | ) |
|
|
virtualinherited |
void torc::generic::Parameter::setValue |
( |
const Value & |
inSource | ) |
|
|
inherited |
Set a weak pointer to this object. This will be used later to get a shared pointer to this object from within other member methods if required. This should be called by the Factory creating the object.
- Parameters
-
[in] | weakThis | A weak pointer to this object |
The documentation for this class was generated from the following files: