MVector< T > Class Template Reference

#include <MercuryVector.h>

Inheritance diagram for MVector< T >:

Inheritance graph
[legend]
Collaboration diagram for MVector< T >:

Collaboration graph
[legend]
List of all members.

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

Detailed Description

template<typename T>
class MVector< T >

Definition at line 10 of file MercuryVector.h.


Constructor & Destructor Documentation

template<typename T>
MVector< T >::MVector (  )  [inline]

Definition at line 13 of file MercuryVector.h.

template<typename T>
MVector< T >::~MVector (  )  [inline]

Definition at line 16 of file MercuryVector.h.

template<typename T>
MVector< T >::MVector ( const MVector< T > &  v  )  [inline]

Definition at line 20 of file MercuryVector.h.


Member Function Documentation

template<typename T>
void MVector< T >::push_back ( const T &  element  )  [inline]

Definition at line 54 of file MercuryVector.h.

template<typename T>
unsigned int MVector< T >::size (  )  const [inline]

Definition at line 33 of file MercuryVector.h.

template<typename T>
bool MVector< T >::empty (  )  const [inline]

Definition at line 34 of file MercuryVector.h.

template<typename T>
void MVector< T >::resize ( unsigned int  newSize  )  [inline]

Definition at line 82 of file MercuryVector.h.

template<typename T>
void MVector< T >::reserve ( unsigned int  newSize  )  [inline]

Definition at line 127 of file MercuryVector.h.

template<typename T>
T& MVector< T >::operator[] ( unsigned int  x  )  [inline]

Definition at line 37 of file MercuryVector.h.

template<typename T>
const T& MVector< T >::operator[] ( unsigned int  x  )  const [inline]

Definition at line 38 of file MercuryVector.h.

template<typename T>
T& MVector< T >::at ( unsigned int  x  )  [inline]

Definition at line 39 of file MercuryVector.h.

template<typename T>
const T& MVector< T >::at ( unsigned int  x  )  const [inline]

Definition at line 40 of file MercuryVector.h.

template<typename T>
const MVector< T > & MVector< T >::operator= ( const MVector< T > &  v  )  [inline]

Definition at line 192 of file MercuryVector.h.

template<typename T>
void MVector< T >::clear (  )  [inline]

Definition at line 183 of file MercuryVector.h.

template<typename T>
void MVector< T >::remove ( int  iPlace  )  [inline]

Definition at line 157 of file MercuryVector.h.

template<typename T>
void MVector< T >::insert ( int  iPlace,
const T &  data 
) [inline]

Definition at line 166 of file MercuryVector.h.


Member Data Documentation

template<typename T>
unsigned int MVector< T >::m_reserved [private]

Definition at line 46 of file MercuryVector.h.

template<typename T>
unsigned int MVector< T >::m_size [private]

Definition at line 47 of file MercuryVector.h.

template<typename T>
T* MVector< T >::m_data [private]

Definition at line 48 of file MercuryVector.h.


The documentation for this class was generated from the following file:
Hosted by SourceForge.net Logo