torc-master
|
#include <SingleParameter.hpp>
Data Structures | |
class | Factory |
Public Types | |
typedef VisitorType < SingleParameter > | 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 > ::Type | Type |
typedef Composite< Parameter > ::Pointer | Pointer |
typedef Composite< Parameter > ::List | List |
typedef Composite< Parameter > ::SizeType | SizeType |
Public Member Functions | |
virtual | ~SingleParameter () 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 > &indices) const throw (Error) |
virtual void | getChildren (List &outChildren) const throw (Error) |
Protected Member Functions | |
SingleParameter () | |
Friends | |
class | FactoryType< SingleParameter > |
Represents a single parameter inSource.
Definition at line 39 of file SingleParameter.hpp.
Definition at line 41 of file Scalar.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.
Definition at line 40 of file Scalar.hpp.
|
inherited |
Shared Pointer to object of type Type
Definition at line 55 of file Composite.hpp.
Definition at line 42 of file Scalar.hpp.
|
inherited |
Definition at line 62 of file Composite.hpp.
Definition at line 39 of file Scalar.hpp.
|
inherited |
Definition at line 50 of file Composite.hpp.
Definition at line 46 of file SingleParameter.hpp.
|
inherited |
Definition at line 56 of file Composite.hpp.
|
virtual |
Definition at line 68 of file SingleParameter.cpp.
|
protected |
Definition at line 66 of file SingleParameter.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 57 of file SingleParameter.cpp.
|
virtualinherited |
Get a specific member of this composition.
[in] | indices | A list of indices to be accessed. The number of indices must be equal to the number of dimensions. |
Implements torc::generic::Composite< Parameter >.
|
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 children of this composition.
[out] | outChildren | A list of all children for this composition |
Get children of this composition.
[out] | outChildren | A list of all children for this composition |
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 composition type for this object
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 >.
|
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 |
|
virtualinherited |
Get the total number of bits of the composition
Implements torc::generic::Composite< Parameter >.
|
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 |
Definition at line 44 of file Parameter.cpp.
|
inlineinherited |
Definition at line 71 of file Parameter.hpp.
|
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 43 of file SingleParameter.hpp.