DART
6.10.1
|
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. More... | |
CloneableVector (const std::vector< T > ®ularVector) | |
Construct from a regular vector. More... | |
CloneableVector (std::vector< T > &®ularVector) | |
Construct from a regular vector using move semantics. More... | |
CloneableVector (const CloneableVector &other) | |
Construct this vector empty and then perform copy(other) More... | |
CloneableVector & | operator= (const CloneableVector &other) |
Call copy(other) on this vector. More... | |
std::unique_ptr< CloneableVector< T > > | clone () const |
Create a copy of this CloneableVector's contents. More... | |
void | copy (const CloneableVector< T > &anotherVector) |
Copy the contents of another cloneable vector into this one. More... | |
std::vector< T > & | getVector () |
Get a reference to the std::vector that this class is wrapping. More... | |
const std::vector< T > & | getVector () const |
Get a reference to the std::vector that this class is wrapping. More... | |
Private Attributes | |
std::vector< T > | mVector |
The std::vector that this class is wrapping. More... | |
The CloneableVector type wraps a std::vector of an Cloneable type allowing it to be handled by an CloneableMapHolder.
|
default |
Default constructor.
dart::common::CloneableVector< T >::CloneableVector | ( | const std::vector< T > & | regularVector | ) |
Construct from a regular vector.
dart::common::CloneableVector< T >::CloneableVector | ( | std::vector< T > && | regularVector | ) |
Construct from a regular vector using move semantics.
dart::common::CloneableVector< T >::CloneableVector | ( | const CloneableVector< T > & | other | ) |
Construct this vector empty and then perform copy(other)
std::unique_ptr< CloneableVector< T > > dart::common::CloneableVector< T >::clone |
Create a copy of this CloneableVector's contents.
void dart::common::CloneableVector< T >::copy | ( | const CloneableVector< T > & | anotherVector | ) |
Copy the contents of another cloneable vector into this one.
std::vector< T > & dart::common::CloneableVector< T >::getVector |
Get a reference to the std::vector that this class is wrapping.
const std::vector< T > & dart::common::CloneableVector< T >::getVector |
Get a reference to the std::vector that this class is wrapping.
CloneableVector< T > & dart::common::CloneableVector< T >::operator= | ( | const CloneableVector< T > & | other | ) |
Call copy(other) on this vector.
|
private |
The std::vector that this class is wrapping.