class TStaticArrayFast

More...

Definition#include <classlib/include/classlib/staticarray.h>
Template formTStaticArrayFast<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 TStaticArrayFast

Implements a complete static array of the supplied dimension. It can be used to minimize the heap fragmentation.

IMPORTANT NOTE: THIS ARRAY MUST BE USED ONLY WITH STRUCTURE OR DATA THAT HAVE NOT COSTRUCTOR OR DESTRUCTOR.

Implementa un array completamente statico delle dimensioni indicate. Da utilizzarsi per diminuire la frammentazione dell'heap.

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)

 TStaticArrayFast ()

TStaticArrayFast

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

T&  ItemAt ( int loc )

ItemAt

const T&  ItemAt ( int loc )

ItemAt

[const]

void  CopyFrom (const TStaticArrayFast& s)

CopyFrom

T*  AddressBase ()

AddressBase

int  SizeItem ()

SizeItem

[const]

void  SqueezeEntry ( unsigned loc )

SqueezeEntry

[protected]

int Limit

Limit

[protected]

int Count

Count

[protected]

T Data[Size]

Data[Size]

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


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