dart
Public Member Functions | List of all members
dart::common::CloneableVector< T > Class Template Reference

The CloneableVector type wraps a std::vector of an Cloneable type allowing it to be handled by an CloneableMapHolder. More...

#include <Cloneable.hpp>

Public Member Functions

 CloneableVector ()=default
 Default constructor.
 
 CloneableVector (const std::vector< T > &regularVector)
 Construct from a regular vector.
 
 CloneableVector (std::vector< T > &&regularVector)
 Construct from a regular vector using move semantics.
 
 CloneableVector (const CloneableVector &other)
 Construct this vector empty and then perform copy(other)
 
CloneableVectoroperator= (const CloneableVector &other)
 Call copy(other) on this vector.
 
std::unique_ptr< CloneableVector< T > > clone () const
 Create a copy of this CloneableVector's contents.
 
void copy (const CloneableVector< T > &anotherVector)
 Copy the contents of another cloneable vector into this one.
 
std::vector< T > & getVector ()
 Get a reference to the std::vector that this class is wrapping.
 
const std::vector< T > & getVector () const
 Get a reference to the std::vector that this class is wrapping.
 

Detailed Description

template<typename T>
class dart::common::CloneableVector< T >

The CloneableVector type wraps a std::vector of an Cloneable type allowing it to be handled by an CloneableMapHolder.


The documentation for this class was generated from the following file: