16 #ifndef TORC_GENERIC_VECTORBIT_HPP
17 #define TORC_GENERIC_VECTORBIT_HPP
21 #ifdef GENOM_SERIALIZATION
22 #include <boost/serialization/access.hpp>
23 #include <boost/serialization/base_object.hpp>
24 #include <boost/serialization/vector.hpp>
25 #endif //GENOM_SERIALIZATION
42 #ifdef GENOM_SERIALIZATION
43 friend class boost::serialization::access;
44 #endif //GENOM_SERIALIZATION
80 virtual const Pointer get(
const std::vector<SizeType>& inIndices)
const throw (
Error);
87 inline const std::vector<SizeType>&
getIndices()
const;
94 void setIndices(
const std::vector<SizeType>& inSource);
108 #ifdef GENOM_SERIALIZATION
109 template <
class Archive>
void serialize(Archive& ar,
unsigned int);
110 #endif //GENOM_SERIALIZATION
162 template <
typename _Type>
inline const std::vector<typename VectorBit<_Type>::SizeType>&
178 return mAbsoluteIndex;
182 mAbsoluteIndex = inSource;
188 #ifdef GENOM_SERIALIZATION
191 ar & boost::serialization::base_object<Composite<_Type> >(*this);
195 #endif //GENOM_SERIALIZATION
200 #endif // TORC_GENERIC_VECTORBIT_HPP
virtual void getChildren(List &outChildren) const
Composite< Type > BaseType
SizeType getAbsoluteIndex() const
virtual SizeType getSize() const
void setIndices(const std::vector< SizeType > &inSource)
Interface for objects that can be composed within each other.
boost::shared_ptr< Type > Pointer
CompositionType
Defines possible Composition types.
void setAbsoluteIndex(SizeType inSource)
BaseType::SizeType SizeType
The Error object thrown by different methods of EdifOM.
Contains definition for CompositionType.
std::vector< SizeType > mIndices
virtual const Pointer get(const std::vector< SizeType > &inIndices) const
const std::vector< SizeType > & getIndices() const
VectorBit< _Type > & operator=(const VectorBit< _Type > &source)
Represents a single element of a vector composition.
virtual CompositionType getCompositionType() const
BaseType::Pointer Pointer
std::vector< Pointer > List