class TStaticArray

More...

Definition#include <classlib/include/classlib/staticarray.h>
Template formTStaticArray<class T, int Size>
List of all Methods
Annotated List
Files
Globals
Hierarchy
Index

Public Methods

Public Members

Protected Methods

Protected Members


Detailed Description

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]

int  IsFull ()

IsFull

[const]

int  IsEmpty ()

IsEmpty

[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  Flush ()

Flush

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]

void  CopyFrom (const TStaticArray& s)

CopyFrom

Copy the contents of another array of the same type.

T*  AddressBase ()

AddressBase

Return the base address of the array data.

int  SizeItem ()

SizeItem

[const]

Return the dimension of an item inserted into the array.

void  SqueezeEntry ( unsigned loc )

SqueezeEntry

[protected]

int Limit

Limit

[protected]

int Count

Count

[protected]

T Data[Size]

Data[Size]

[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]

template void  CopyFrom (const TStaticArray& s)

CopyFrom

[protected]


Generated by: nicola on gulliver.wadahome.it on Sun May 25 13:54:34 2003, using kdoc 2.0a53.