Main Page   Class Hierarchy   Compound List   File List   Compound Members   File Members  

VectorRep Struct Template Reference

#include <Vector.h>

Inheritance diagram for VectorRep::

RefCounter List of all members.

Public Methods

 VectorRep (const VectorRep &vr)
 VectorRep (int l)
 VectorRep (int l, bool e)
 ~VectorRep ()
VectorRep* clone ()
int length () const
T& ref (int i)
const T& constref (int i) const
val (int i) const
void append (const T &t)
void prepend (const T &t)
void shrink (int start, int newlen)
void write (ostream &ostr) const
void read (istream &istr)

Private Methods

VectorRep& operator= (const VectorRep &)

Private Attributes

bool fastExpansion
unsigned int first
unsigned int last
unsigned int len
T* vec

template<class T> struct VectorRep


Constructor & Destructor Documentation

template<class T>
VectorRep<T>::VectorRep<T> ( const VectorRep<T> & vr ) [inline]
 

Definition at line 85 of file Vector.h.

Referenced by clone().

template<class T>
VectorRep<T>::VectorRep<T> ( int l ) [inline]
 

Definition at line 100 of file Vector.h.

template<class T>
VectorRep<T>::VectorRep<T> ( int l,
bool e ) [inline]
 

Definition at line 113 of file Vector.h.

template<class T>
VectorRep<T>::~VectorRep<T> ( ) [inline]
 

Definition at line 126 of file Vector.h.


Member Function Documentation

template<class T>
VectorRep<T> * VectorRep<T>::clone ( ) [inline]
 

Definition at line 130 of file Vector.h.

template<class T>
int VectorRep<T>::length ( ) const [inline]
 

Definition at line 132 of file Vector.h.

template<class T>
T & VectorRep<T>::ref ( int i ) [inline]
 

Definition at line 135 of file Vector.h.

template<class T>
const T & VectorRep<T>::constref ( int i ) const [inline]
 

Definition at line 144 of file Vector.h.

template<class T>
T VectorRep<T>::val ( int i ) const [inline]
 

Definition at line 153 of file Vector.h.

template<class T>
void VectorRep<T>::append ( const T & t ) [inline]
 

Definition at line 161 of file Vector.h.

template<class T>
void VectorRep<T>::prepend ( const T & t ) [inline]
 

Definition at line 183 of file Vector.h.

template<class T>
void VectorRep<T>::shrink ( int start,
int newlen ) [inline]
 

Definition at line 205 of file Vector.h.

template<class T>
void VectorRep<T>::write ( ostream & ostr ) const [inline]
 

Definition at line 225 of file Vector.h.

template<class T>
void VectorRep<T>::read ( istream & istr ) [inline]
 

Definition at line 243 of file Vector.h.

template<class T>
VectorRep<T>& VectorRep<T>::operator= ( const VectorRep<T> & ) [private]
 


Member Data Documentation

template<class T>
bool VectorRep<T>::fastExpansion [private]
 

Definition at line 297 of file Vector.h.

template<class T>
unsigned int VectorRep<T>::first [private]
 

Definition at line 298 of file Vector.h.

template<class T>
unsigned int VectorRep<T>::last [private]
 

Definition at line 299 of file Vector.h.

template<class T>
unsigned int VectorRep<T>::len [private]
 

Definition at line 300 of file Vector.h.

template<class T>
T* VectorRep<T>::vec [private]
 

Definition at line 302 of file Vector.h.


The documentation for this struct was generated from the following file:
Generated at Tue Jun 19 09:50:10 2001 for Magnus Classes by doxygen1.2.6 written by Dimitri van Heesch, © 1997-2001