#include <MercuryVector.h>
Inheritance diagram for MVector< T >:
Public Member Functions | |
MVector () | |
~MVector () | |
MVector (const MVector< T > &v) | |
void | push_back (const T &element) |
unsigned int | size () const |
bool | empty () const |
void | resize (unsigned int newSize) |
void | reserve (unsigned int newSize) |
T & | operator[] (unsigned int x) |
const T & | operator[] (unsigned int x) const |
T & | at (unsigned int x) |
const T & | at (unsigned int x) const |
const MVector< T > & | operator= (const MVector< T > &v) |
void | clear () |
void | remove (int iPlace) |
void | insert (int iPlace, const T &data) |
Private Attributes | |
unsigned int | m_reserved |
unsigned int | m_size |
T * | m_data |
Definition at line 10 of file MercuryVector.h.
Definition at line 13 of file MercuryVector.h.
Definition at line 16 of file MercuryVector.h.
Definition at line 20 of file MercuryVector.h.
void MVector< T >::push_back | ( | const T & | element | ) | [inline] |
Definition at line 54 of file MercuryVector.h.
unsigned int MVector< T >::size | ( | ) | const [inline] |
Definition at line 33 of file MercuryVector.h.
bool MVector< T >::empty | ( | ) | const [inline] |
Definition at line 34 of file MercuryVector.h.
void MVector< T >::resize | ( | unsigned int | newSize | ) | [inline] |
Definition at line 82 of file MercuryVector.h.
void MVector< T >::reserve | ( | unsigned int | newSize | ) | [inline] |
Definition at line 127 of file MercuryVector.h.
T& MVector< T >::operator[] | ( | unsigned int | x | ) | [inline] |
Definition at line 37 of file MercuryVector.h.
const T& MVector< T >::operator[] | ( | unsigned int | x | ) | const [inline] |
Definition at line 38 of file MercuryVector.h.
T& MVector< T >::at | ( | unsigned int | x | ) | [inline] |
Definition at line 39 of file MercuryVector.h.
const T& MVector< T >::at | ( | unsigned int | x | ) | const [inline] |
Definition at line 40 of file MercuryVector.h.
const MVector< T > & MVector< T >::operator= | ( | const MVector< T > & | v | ) | [inline] |
Definition at line 192 of file MercuryVector.h.
void MVector< T >::clear | ( | ) | [inline] |
Definition at line 183 of file MercuryVector.h.
void MVector< T >::remove | ( | int | iPlace | ) | [inline] |
Definition at line 157 of file MercuryVector.h.
void MVector< T >::insert | ( | int | iPlace, | |
const T & | data | |||
) | [inline] |
Definition at line 166 of file MercuryVector.h.
unsigned int MVector< T >::m_reserved [private] |
Definition at line 46 of file MercuryVector.h.
Definition at line 47 of file MercuryVector.h.
Definition at line 48 of file MercuryVector.h.