torc-master
|
Represents a parameter array. More...
#include <ParameterArray.hpp>
Data Structures | |
class | Factory |
Public Types | |
typedef Vector< Parameter, ParameterArrayElement, ParameterArrayElement::Factory, false > | BaseVectorType |
typedef VisitorType < ParameterArray > | Visitor |
typedef Parameter | Type |
typedef boost::shared_ptr< Type > | Pointer |
typedef boost::weak_ptr< Type > | WeakPointer |
typedef std::vector< Pointer > | List |
typedef size_t | SizeType |
typedef std::string | Name |
typedef Composite< Parameter > | BaseType |
typedef BaseType::Type | Type |
typedef BaseType::List | List |
typedef BaseType::Pointer | Pointer |
typedef BaseType::SizeType | SizeType |
typedef ParameterArrayElement | ChildType |
typedef boost::shared_ptr < ChildType > | ChildPointer |
typedef ParameterArrayElement::Factory | ChildFactory |
typedef boost::shared_ptr < ParameterArrayElement::Factory > | ChildFactorySharedPtr |
Public Member Functions | |
virtual | ~ParameterArray () throw () |
virtual void | accept (BaseVisitor &inoutVisitor) throw (Error) |
const Value | getValue () const |
void | setValue (const Value &inSource) |
virtual const Unit | getUnit () const |
virtual void | setUnit (const Unit &inSource) |
virtual CompositionType | getCompositionType () const =0 |
virtual size_t | getSize () const =0 |
virtual void | getChildren (List &outChildren) const =0 throw (Error) |
virtual const Pointer | get (const std::vector< SizeType > &inIndices) const =0 throw (Error) |
virtual void | setParentCollection (const Pointer &inParentCollection) |
virtual Pointer | getParentCollection () const |
void | setWeakThis (const WeakPointer &inWeakThis) |
Pointer | getSharedThis () const |
virtual const std::string | getName () const |
void | setName (const std::string &inSource) throw (Error) |
virtual Name | getOriginalName () const |
virtual void | setOriginalName (const Name &inSource) |
virtual CompositionType | getCompositionType () const |
virtual SizeType | getSize () const |
virtual const Pointer | get (const std::vector< SizeType > &inIndices) const throw (Error) |
virtual void | getChildren (List &outChildren) const throw (Error) |
void | applyOnAllChildren (const _Action &action) throw (Error) |
virtual void | forceAutoBlast (void) throw (Error) |
virtual void | getCreatedChildren (List &outChildren) const throw (Error) |
void | constructChildren (const boost::shared_ptr< ChildFactory > &inFactory, const std::vector< SizeType > &inLimits) throw (Error) |
void | getLimits (std::vector< SizeType > &outLimits) const |
bool | getIsPreserved () const |
Protected Member Functions | |
virtual void | onChildCreate (const boost::shared_ptr< BaseVectorType::ChildType > &inCreatedChild) const throw (Error) |
ParameterArray () | |
void | setChildren (const List &inSource) throw (Error) |
virtual void | onAutoBlast () const throw (Error) |
virtual void | onChildCreate (const boost::shared_ptr< ChildType > &inCreatedChild) const throw (Error) |
void | setLimits (const std::vector< SizeType > &inSource) |
const boost::shared_ptr < ChildFactory > | getFactory () const |
void | setFactory (const boost::shared_ptr< ChildFactory > &inSource) |
Friends | |
class | FactoryType< ParameterArray > |
Represents a parameter array.
The ParameterArray class represents an array of parameters.
Definition at line 42 of file ParameterArray.hpp.
|
inherited |
Definition at line 55 of file Vector.hpp.
typedef Vector<Parameter, ParameterArrayElement, ParameterArrayElement::Factory, false> torc::generic::ParameterArray::BaseVectorType |
Definition at line 51 of file ParameterArray.hpp.
|
inherited |
Definition at line 62 of file Vector.hpp.
|
inherited |
Definition at line 63 of file Vector.hpp.
|
inherited |
Definition at line 61 of file Vector.hpp.
|
inherited |
Definition at line 60 of file Vector.hpp.
|
inherited |
Definition at line 57 of file Vector.hpp.
|
inherited |
List of Shared Pointers to objects of type Type
Definition at line 61 of file Composite.hpp.
|
inherited |
Definition at line 40 of file generic/Renamable.hpp.
|
inherited |
Shared Pointer to object of type Type
Definition at line 55 of file Composite.hpp.
|
inherited |
Definition at line 58 of file Vector.hpp.
|
inherited |
Definition at line 59 of file Vector.hpp.
|
inherited |
Definition at line 62 of file Composite.hpp.
|
inherited |
Definition at line 50 of file Composite.hpp.
|
inherited |
Definition at line 56 of file Vector.hpp.
Definition at line 52 of file ParameterArray.hpp.
|
inherited |
Definition at line 56 of file Composite.hpp.
|
virtual |
Definition at line 43 of file ParameterArray.cpp.
|
protected |
Definition at line 40 of file ParameterArray.cpp.
|
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.
[in,out] | inoutVisitor | A reference to the inoutVisitor object |
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 96 of file ParameterArray.cpp.
|
inherited |
|
inlineinherited |
Create list of children using the provided factory and limits
[in] | inFactory | ChildFactory to use for construcing children |
[in] | inLimits | Array dimensions |
Error | Children could not be created |
Create list of children using the provided factory and limits
[in] | inFactory | ChildFactory to use for construcing children |
[in] | inLimits | Array dimensions |
Error | Children could not be created |
|
virtualinherited |
Force creation of VectorBit children, even if this is a preserved Vector.
|
pure virtualinherited |
Get a specific member of this composition.
[in] | inIndices | A list of indices to be accessed. The number of indices must be equal to the number of dimensions. |
Error | Index dimensions mismatch |
Implemented in torc::generic::Vector< Parameter, ParameterArrayElement, ParameterArrayElement::Factory, false >, torc::generic::VectorBit< Parameter >, and torc::generic::Scalar< Parameter >.
|
virtualinherited |
Get a specific member of this composition.
[in] | inIndices | A list of indices to be accessed. The number of indices must be equal to the number of dimensions. |
Error | Index dimensions mismatch
|
Error | Array index out of bounds
|
Error | Empty Array
|
Get a specific member of this composition.
[in] | inIndices | A list of indices to be accessed. The number of indices must be equal to the number of dimensions. |
Error | Index dimensions mismatch |
Implements torc::generic::Composite< Parameter >.
|
pure virtualinherited |
Get children of this composition.
[out] | outChildren | A list of all children for this composition |
Implemented in torc::generic::Vector< Parameter, ParameterArrayElement, ParameterArrayElement::Factory, false >, torc::generic::Scalar< Parameter >, and torc::generic::VectorBit< Parameter >.
|
virtualinherited |
Get children of this composition.
[out] | outChildren | A list of all children for this composition |
Error | If factory is not set and preserve is true and the vector has not been blasted, an exception is generated. |
Implements torc::generic::Composite< Parameter >.
|
pure virtualinherited |
Get the type of this composition.
Implemented in torc::generic::Vector< Parameter, ParameterArrayElement, ParameterArrayElement::Factory, false >, torc::generic::VectorBit< Parameter >, and torc::generic::Scalar< Parameter >.
|
virtualinherited |
Get composition type for this object
Implements torc::generic::Composite< Parameter >.
|
virtualinherited |
|
inlineprotectedinherited |
Get current factory
Error | Null Child Factory
|
|
inlineinherited |
|
inlineinherited |
Get dimensions of the array.
[in] | outLimits | Dimensions of the vector |
Get dimensions of the array.
|
inlinevirtualinherited |
Get the object name
Definition at line 89 of file Nameable.hpp.
|
inlinevirtualinherited |
Get the new name provided for the object.
Definition at line 78 of file generic/Renamable.hpp.
|
inlinevirtualinherited |
Get a pointer to the parent collection
|
inlineinherited |
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.
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.
[out] | ptr | Set to a shared pointer to this object |
|
pure virtualinherited |
Get the total number of bits of the composition
Implemented in torc::generic::Vector< Parameter, ParameterArrayElement, ParameterArrayElement::Factory, false >, torc::generic::VectorBit< Parameter >, and torc::generic::Scalar< Parameter >.
|
virtualinherited |
Get the total number of bits of the composition
Implements torc::generic::Composite< Parameter >.
|
virtualinherited |
Definition at line 44 of file Parameter.cpp.
|
inlineinherited |
Definition at line 71 of file Parameter.hpp.
|
protectedvirtualinherited |
|
protectedvirtual |
Definition at line 35 of file ParameterArray.cpp.
|
protectedvirtualinherited |
|
protectedinherited |
Set list of children for unpreserved vector.
[in] | inSource | List of children |
|
protectedinherited |
Set current factory
[in] | inSource | ChildFactory object |
|
protectedinherited |
Set dimensions of the array.
[in] | inSource | Dimensions of the vector |
|
inherited |
Set a name for this object
[in] | inSource | Name of the object |
Error | Could not set name, because name is empty (Will be used by array members)
|
Set a name for this object
[in] | inSource | Name of the object |
Error | Could not set name, because name is empty (Will be used by array members) |
Definition at line 41 of file Nameable.cpp.
|
virtualinherited |
Set the new name provided for the object.
[in] | inSource | Name of the object |
Definition at line 35 of file generic/Renamable.cpp.
|
inlinevirtualinherited |
Set a pointer to a parnt composition.
[in] | inParentCollection | pointer to the parent collection (Vector/Bundle) |
Set a pointer to a parnt composition.
[in] | parentCollection | pointer to the parent collection (Vector/Bundle) |
|
virtualinherited |
Definition at line 48 of file Parameter.cpp.
|
inherited |
Definition at line 40 of file Parameter.cpp.
|
inlineinherited |
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.
[in] | weakThis | A weak pointer to this object |
|
friend |
Definition at line 47 of file ParameterArray.hpp.