ParMooN
 All Classes Functions Variables Friends Pages
Public Member Functions | Protected Attributes | List of all members
TVector< Type > Class Template Reference

Public Member Functions

 TVector (int i_size, int i_incr)
 
 ~TVector ()
 
int GetN_Elements ()
 
Type GetElement (int i)
 
void SetElement (int i, Type value)
 
int AddElement (Type value)
 

Protected Attributes

int N_Elements
 
int init_size
 
int init_incr
 
int NumberOfLists
 
int NumberOfFreeLists
 
int NumberOfFreeEntries
 
int ListForNext
 
int IndexForNext
 
Type ** Lists
 
int IncrForListNumbers
 

Constructor & Destructor Documentation

template<class Type >
TVector< Type >::TVector ( int  i_size,
int  i_incr 
)

constructor

template<class Type >
TVector< Type >::~TVector ( )

destructor = free all allocated memory

Member Function Documentation

template<class Type >
int TVector< Type >::AddElement ( Type  value)

add a new element at the end

Here is the caller graph for this function:

template<class Type >
Type TVector< Type >::GetElement ( int  i)

return the element i

Here is the caller graph for this function:

template<class Type>
int TVector< Type >::GetN_Elements ( )
inline

return the number of elements strored

Here is the caller graph for this function:

template<class Type >
void TVector< Type >::SetElement ( int  i,
Type  value 
)

set the value of the already existing element i to value

Here is the caller graph for this function:

Member Data Documentation

template<class Type>
int TVector< Type >::IncrForListNumbers
protected

if there is no space left in the array Lists, create a new array which is IncrForListNumbers entries longer than the old

template<class Type>
int TVector< Type >::IndexForNext
protected

index for next entry

template<class Type>
int TVector< Type >::init_incr
protected

increment

template<class Type>
int TVector< Type >::init_size
protected

initial size

template<class Type>
int TVector< Type >::ListForNext
protected

list for next entry

template<class Type>
Type** TVector< Type >::Lists
protected

array of arrays containing the data

template<class Type>
int TVector< Type >::N_Elements
protected

number of all elements

template<class Type>
int TVector< Type >::NumberOfFreeEntries
protected

number of free entries in current list

template<class Type>
int TVector< Type >::NumberOfFreeLists
protected

number of free lists now

template<class Type>
int TVector< Type >::NumberOfLists
protected

number of lists used


The documentation for this class was generated from the following files: