27 #include "../common/STLUtils.h" 
   35   : m_values(nComponents),
 
   46   : m_names(rhs.m_names)
 
   79   m_names.push_back(name);
 
   80   m_values.push_back(value);
 
   85   assert(i < m_values.size());
 
   97   m_values.push_back(value);
 
  107   std::stringstream ss(std::stringstream::in | std::stringstream::out);
 
  111   const std::size_t nComponents = m_values.size();
 
  113   for(std::size_t i = 0; i < nComponents; ++i)
 
  118     ss << m_values[i]->toString();
 
AbstractData * clone() const 
It creates a new clone of the composite. 
 
A base class for composite data values. 
 
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
 
void Clone(const std::vector< T * > &src, std::vector< T * > &dst)
This function can be applied to a vector of pointers. 
 
void setValue(std::size_t i, AbstractData *value)
It sets the i-th component value of the composite data. 
 
std::vector< AbstractData * > m_values
The component values. 
 
~CompositeData()
Destructor. 
 
std::string toString() const 
It returns the data value in a string representation. 
 
AbstractData * getValue(std::size_t i) const 
It returns the i-th component value of the composite data. 
 
A base class for values that can be retrieved from the data access module. 
 
std::vector< std::string > m_names
The component names. 
 
A base class for composite data values. 
 
void setName(const std::string &name)
 
void add(const std::string &name, AbstractData *value)
 
CompositeData & operator=(const CompositeData &rhs)
Copy constructor. 
 
CompositeData()
Constructor.