Classes | |
struct | Incrementor |
Public Types | |
typedef Incrementor< Contained > | Iterator |
typedef Incrementor< const Contained > | ConstIterator |
Public Member Functions | |
Vector () | |
Vector (unsigned int capacity) | |
~Vector () | |
void | pushBack (const Contained &contained) |
Contained & | popBack () |
Contained & | getFront () const |
Contained & | getBack () const |
template<class IteratorTp > | |
Contained & | remove (const IteratorTp &it) |
unsigned int | capacity () const |
unsigned int | size () const |
bool | isEmpty () const |
Iterator | begin () |
Iterator | end () |
ConstIterator | begin () const |
ConstIterator | end () const |
Protected Attributes | |
VecBehaviour< tp, Contained > | _p |
Definition at line 153 of file ep_vector.h.
Default constructor
Definition at line 247 of file ep_vector.h.
Vector< Contained, tp >::Vector | ( | unsigned int | capacity | ) | [inline] |
Constructor that the user may pass the maximum initial size of the Vector
capacity | the maximum initial size in the [1..n] range |
Definition at line 253 of file ep_vector.h.
Destructor
Definition at line 258 of file ep_vector.h.
ConstIterator Vector< Contained, tp >::begin | ( | ) | const [inline] |
Gets a iterator that iterates over const Contained values
Definition at line 346 of file ep_vector.h.
Iterator Vector< Contained, tp >::begin | ( | ) | [inline] |
Gets a iterator that iterates over const Contained values
Definition at line 330 of file ep_vector.h.
unsigned int Vector< Contained, tp >::capacity | ( | ) | const [inline] |
Returns the current Vector instance capacity
Definition at line 306 of file ep_vector.h.
ConstIterator Vector< Contained, tp >::end | ( | ) | const [inline] |
Gets a iterator that iterates over const Contained values
Definition at line 354 of file ep_vector.h.
Iterator Vector< Contained, tp >::end | ( | ) | [inline] |
Gets a iterator that iterates over const Contained values
Definition at line 338 of file ep_vector.h.
Contained& Vector< Contained, tp >::getBack | ( | ) | const [inline] |
Gets the last element of the Vector
Definition at line 289 of file ep_vector.h.
Contained& Vector< Contained, tp >::getFront | ( | ) | const [inline] |
Gets the first element of the Vector
Definition at line 281 of file ep_vector.h.
bool Vector< Contained, tp >::isEmpty | ( | ) | const [inline] |
Gets whether the Vector is empty or not
Definition at line 322 of file ep_vector.h.
Contained& Vector< Contained, tp >::popBack | ( | ) | [inline] |
Removes the last element of the vector and returns a reference to it
Definition at line 273 of file ep_vector.h.
void Vector< Contained, tp >::pushBack | ( | const Contained & | contained | ) | [inline] |
Inserts the passed Contained to the last position of the Vector instance
contained | the Contained object to be inserted at the Vector last position |
Definition at line 266 of file ep_vector.h.
unsigned int Vector< Contained, tp >::size | ( | ) | const [inline] |
Returns the current Vector instance size
Definition at line 314 of file ep_vector.h.