dart
|
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 > ®ularVector) | |
Construct from a regular vector. | |
CloneableVector (std::vector< T > &®ularVector) | |
Construct from a regular vector using move semantics. | |
CloneableVector (const CloneableVector &other) | |
Construct this vector empty and then perform copy(other) | |
CloneableVector & | operator= (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. | |
The CloneableVector type wraps a std::vector of an Cloneable type allowing it to be handled by an CloneableMapHolder.