#include <VectorBit.hpp>
Public Types | |
typedef _Type | Type |
typedef Composite< Type > | BaseType |
typedef BaseType::List | List |
typedef BaseType::Pointer | Pointer |
typedef BaseType::SizeType | SizeType |
Public Member Functions | |
virtual CompositionType | getCompositionType () const throw () |
virtual SizeType | getSize () const throw () |
virtual void | getChildren (List &outChildren) const throw (Error) |
virtual const Pointer | get (const std::vector< SizeType > &inIndices) const throw (Error) |
const std::vector< SizeType > & | getIndices () const throw () |
void | setIndices (const std::vector< SizeType > &inSource) throw () |
SizeType | getAbsoluteIndex () const throw () |
void | setAbsoluteIndex (SizeType inSource) throw () |
Private Member Functions | |
VectorBit (const VectorBit< _Type > &source) throw () | |
VectorBit< _Type > & | operator= (const VectorBit< _Type > &source) throw () |
Private Attributes | |
std::vector< SizeType > | mIndices |
SizeType | mAbsoluteIndex |
A VectorBit is used to represent a bit of a vector. It contains a pointer to the vector and the particular index where it was stored. For a Vector where the _PRESERVE parameter is true, this is setup during the blast operation. Otherwise, this is moreor less similar to the Scalar composition.
Definition at line 44 of file VectorBit.hpp.
typedef BaseType::List torc::generic::VectorBit< _Type >::List |
List of Shared Pointers to objects of type Type
Reimplemented from torc::generic::Composite< _Type >.
Definition at line 53 of file VectorBit.hpp.
typedef BaseType::Pointer torc::generic::VectorBit< _Type >::Pointer |
Shared Pointer to object of type Type
Reimplemented from torc::generic::Composite< _Type >.
Definition at line 54 of file VectorBit.hpp.
CompositionType torc::generic::VectorBit< _Type >::getCompositionType | ( | ) | const throw () [inline, virtual] |
Get composition type for this object
Implements torc::generic::Composite< _Type >.
Definition at line 141 of file VectorBit.hpp.
VectorBit< _Type >::SizeType torc::generic::VectorBit< _Type >::getSize | ( | void | ) | const throw () [inline, virtual] |
Get the total number of bits of the composition
Implements torc::generic::Composite< _Type >.
Definition at line 151 of file VectorBit.hpp.
virtual void torc::generic::VectorBit< _Type >::getChildren | ( | List & | outChildren | ) | const throw (Error) [virtual] |
Get children of this composition.
[out] | outChildren | A list of all children for this composition |
virtual const Pointer torc::generic::VectorBit< _Type >::get | ( | const std::vector< SizeType > & | inIndices | ) | const throw (Error) [virtual] |
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. |
const std::vector< typename VectorBit< _Type >::SizeType > & torc::generic::VectorBit< _Type >::getIndices | ( | ) | const throw () [inline] |
Get the index of this bit in the vector.
Definition at line 189 of file VectorBit.hpp.
void torc::generic::VectorBit< _Type >::setIndices | ( | const std::vector< SizeType > & | inSource | ) | throw () [inline] |
Set the index of this bit in the vector.
[in] | inSource | A vector of indices for this element |
Definition at line 200 of file VectorBit.hpp.