Main Page | Namespace List | Class Hierarchy | Class List | Directories | File List | Namespace Members | Class Members | File Members

bracz::maxvector< T > Class Template Reference

A back-insertion sequence container with fixed maximum size. More...

Inheritance diagram for bracz::maxvector< T >:

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

Collaboration graph
[legend]
List of all members.

Public Types

typedef T value_type
typedef T * iterator

Public Member Functions

 maxvector ()
 maxvector (size_t maxsize)
 ~maxvector ()
T &DINLINE operator[] (size_t n)
iterator DINLINE begin ()
iterator DINLINE end ()
size_t DINLINE size ()
void DINLINE push_back (const T &d)
void DINLINE pop_back ()
bool DINLINE empty ()
T &DINLINE back ()
void DINLINE reserve (size_t n)
void DINLINE resize (size_t n, const T &d)
void DINLINE resize (size_t n)
void DINLINE clear ()

Private Attributes

T * data
size_t length

Detailed Description

template<class T>
class bracz::maxvector< T >

A back-insertion sequence container with fixed maximum size.

It never copies the contents and never checks the boundaries.

The constructors and destructors are not properly called when the size of the vector changes. All elements are constructed and destructed together with the container.

reserve(n) reallocates the array to accommodate at most n elements, and preserves min(size(),n) elements of the array.

Definition at line 28 of file maxvector.cpp.


Member Typedef Documentation

template<class T>
typedef T* bracz::maxvector< T >::iterator
 

Definition at line 53 of file maxvector.cpp.

template<class T>
typedef T bracz::maxvector< T >::value_type
 

Definition at line 33 of file maxvector.cpp.


Constructor & Destructor Documentation

template<class T>
bracz::maxvector< T >::maxvector  )  [inline]
 

Definition at line 35 of file maxvector.cpp.

template<class T>
bracz::maxvector< T >::maxvector size_t  maxsize  )  [inline]
 

Definition at line 40 of file maxvector.cpp.

template<class T>
bracz::maxvector< T >::~maxvector  )  [inline]
 

Definition at line 45 of file maxvector.cpp.


Member Function Documentation

template<class T>
T& DINLINE bracz::maxvector< T >::back  )  [inline]
 

Definition at line 87 of file maxvector.cpp.

template<class T>
iterator DINLINE bracz::maxvector< T >::begin  )  [inline]
 

Definition at line 55 of file maxvector.cpp.

template<class T>
void DINLINE bracz::maxvector< T >::clear  )  [inline]
 

Definition at line 117 of file maxvector.cpp.

Referenced by bracz::NonOrdFPStructure< INPUT, BUILDTREE, FIRSTLEVEL >::SimultProject::simultRecurse().

template<class T>
bool DINLINE bracz::maxvector< T >::empty  )  [inline]
 

Definition at line 83 of file maxvector.cpp.

template<class T>
iterator DINLINE bracz::maxvector< T >::end  )  [inline]
 

Definition at line 59 of file maxvector.cpp.

template<class T>
T& DINLINE bracz::maxvector< T >::operator[] size_t  n  )  [inline]
 

Definition at line 49 of file maxvector.cpp.

template<class T>
void DINLINE bracz::maxvector< T >::pop_back  )  [inline]
 

Definition at line 79 of file maxvector.cpp.

template<class T>
void DINLINE bracz::maxvector< T >::push_back const T &  d  )  [inline]
 

Definition at line 75 of file maxvector.cpp.

template<class T>
void DINLINE bracz::maxvector< T >::reserve size_t  n  )  [inline]
 

Definition at line 91 of file maxvector.cpp.

Referenced by bracz::NonOrdFPStructure< INPUT, BUILDTREE, FIRSTLEVEL >::SimultProject::doSimultProject(), and bracz::maxvector< myitemlist_t >::resize().

template<class T>
void DINLINE bracz::maxvector< T >::resize size_t  n  )  [inline]
 

Definition at line 110 of file maxvector.cpp.

template<class T>
void DINLINE bracz::maxvector< T >::resize size_t  n,
const T &  d
[inline]
 

Definition at line 101 of file maxvector.cpp.

Referenced by bracz::NonOrdFPStructure< INPUT, BUILDTREE, FIRSTLEVEL >::SimultProject::doSimultProject().

template<class T>
size_t DINLINE bracz::maxvector< T >::size  )  [inline]
 

Definition at line 63 of file maxvector.cpp.


Member Data Documentation

template<class T>
T* bracz::maxvector< T >::data [private]
 

Definition at line 30 of file maxvector.cpp.

Referenced by bracz::maxvector< myitemlist_t >::back(), bracz::maxvector< myitemlist_t >::begin(), bracz::maxvector< myitemlist_t >::end(), bracz::maxvector< myitemlist_t >::maxvector(), bracz::maxvector< myitemlist_t >::operator[](), bracz::maxvector< myitemlist_t >::push_back(), bracz::maxvector< myitemlist_t >::reserve(), bracz::maxvector< myitemlist_t >::resize(), and bracz::maxvector< myitemlist_t >::~maxvector().

template<class T>
size_t bracz::maxvector< T >::length [private]
 

Definition at line 31 of file maxvector.cpp.

Referenced by bracz::maxvector< myitemlist_t >::back(), bracz::maxvector< myitemlist_t >::clear(), bracz::maxvector< myitemlist_t >::empty(), bracz::maxvector< myitemlist_t >::end(), bracz::maxvector< myitemlist_t >::maxvector(), bracz::maxvector< myitemlist_t >::pop_back(), bracz::maxvector< myitemlist_t >::push_back(), bracz::maxvector< myitemlist_t >::reserve(), bracz::maxvector< myitemlist_t >::resize(), and bracz::maxvector< myitemlist_t >::size().


The documentation for this class was generated from the following file:
Generated on Sun Sep 17 17:57:13 2006 for FIM environment by  doxygen 1.4.4