Public Methods
- TStaticArray ()
- int LowerBound () const
- int UpperBound () const
- unsigned ArraySize () const
- int IsFull () const
- int IsEmpty () const
- unsigned GetItemsInContainer () const
- void SetData ( int loc, const T& t )
- void RemoveEntry ( int loc )
- int Add ( const T& t )
- int AddAt ( const T& t, int loc )
- int Destroy ( const T& t )
- void Destroy ( int loc )
- int HasMember ( const T& t ) const
- int Find ( const T& t ) const
- T& operator [] ( int loc )
- const T& operator [] ( int loc ) const
- void ForEach ( IterFunc iter, void *args, unsigned start=0, unsigned stop=0 )
- T * FirstThat ( CondFunc cond, void *args, unsigned start=0, unsigned stop=0 ) const
- T * LastThat ( CondFunc cond, void *args, unsigned start=0, unsigned stop=0 ) const
- void Flush ()
- void Crop (int size)
- T& ItemAt ( int loc )
- const T& ItemAt ( int loc ) const
- void CopyFrom (const TStaticArray& s)
- T* AddressBase ()
- int SizeItem () const
Public Members
- typedef void (*IterFunc) (T&, void *)
- typedef int (*CondFunc) (const T&, void *)
Protected Methods
- void SqueezeEntry ( unsigned loc )
- template
void SqueezeEntry ( unsigned loc )
- template
int Find ( const T& t ) const
- template
void ForEach ( IterFunc iter, void *args,
unsigned start, unsigned stop )
- template
T * FirstThat ( CondFunc cond, void *args,
unsigned start, unsigned stop ) const
- template
T * LastThat ( CondFunc cond, void *args,
unsigned start, unsigned stop ) const
- template
void CopyFrom (const TStaticArray& s)
Protected Members
template class TStaticArray
Implements a complete static array of the supplied dimension.
It can be used to minimize the heap fragmentation.
Assumes that T has meaningful copy semantics and an appropriate == operator.
For a more exaustive description of the metods see TArray.
typedef void (*IterFunc) (T&, void *)
| (*IterFunc) |
typedef int (*CondFunc) (const T&, void *)
| (*CondFunc) |
TStaticArray ()
| TStaticArray |
int LowerBound ()
| LowerBound |
[const]
int UpperBound ()
| UpperBound |
[const]
unsigned ArraySize ()
| ArraySize |
[const]
[const]
[const]
unsigned GetItemsInContainer ()
| GetItemsInContainer |
[const]
void SetData ( int loc, const T& t )
| SetData |
void RemoveEntry ( int loc )
| RemoveEntry |
int Add ( const T& t )
| Add |
int AddAt ( const T& t, int loc )
| AddAt |
int Destroy ( const T& t )
| Destroy |
void Destroy ( int loc )
| Destroy |
int HasMember ( const T& t )
| HasMember |
[const]
int Find ( const T& t )
| Find |
[const]
T& operator [] ( int loc )
| operator [] |
const T& operator [] ( int loc )
| operator [] |
[const]
void ForEach ( IterFunc iter, void *args, unsigned start=0, unsigned stop=0 )
| ForEach |
T * FirstThat ( CondFunc cond, void *args, unsigned start=0, unsigned stop=0 )
| FirstThat |
[const]
T * LastThat ( CondFunc cond, void *args, unsigned start=0, unsigned stop=0 )
| LastThat |
[const]
void Crop (int size)
| Crop |
Set the item counter to the specified value.
T& ItemAt ( int loc )
| ItemAt |
const T& ItemAt ( int loc )
| ItemAt |
[const]
Copy the contents of another array of the same type.
T* AddressBase ()
| AddressBase |
Return the base address of the array data.
[const]
Return the dimension of an item inserted into the array.
void SqueezeEntry ( unsigned loc )
| SqueezeEntry |
[protected]
[protected]
[protected]
[protected]
template
void SqueezeEntry ( unsigned loc )
| SqueezeEntry |
[protected]
template
int Find ( const T& t )
| Find |
[protected const]
template
void ForEach ( IterFunc iter, void *args,
unsigned start, unsigned stop )
| ForEach |
[protected]
template
T * FirstThat ( CondFunc cond, void *args,
unsigned start, unsigned stop )
| FirstThat |
[protected const]
template
T * LastThat ( CondFunc cond, void *args,
unsigned start, unsigned stop )
| LastThat |
[protected const]
[protected]
Generated by: nicola on gulliver.wadahome.it on Sun May 25 13:54:34 2003, using kdoc 2.0a53. |