Logo Search packages:      
Sourcecode: yacas version File versions  Download package

CDeletingArrayGrower< T > Class Template Reference

Inheritance diagram for CDeletingArrayGrower< T >:

CArrayGrower< T > CArrayGrowerBase

List of all members.

Detailed Description

template<class T>
class CDeletingArrayGrower< T >

on each element in the array at destruction time. This is useful if the array is a list of pointers to objects.

Definition at line 108 of file grower.h.

Public Types

typedef T ElementType
typedef T * ElementTypePtr

Public Member Functions

int Append (T aValue)
 Append an element to an array.
LispBoolean ArrayOwnedExternally ()
int BaseAppend (LispChar *aValue)
 CDeletingArrayGrower (LispInt aGranularity=8)
void Clear ()
void CopyToExternalArray (T *&aArray, LispBoolean aPreAlloc)
 Copy the array to another array.
void Delete (int aIndex, int aCount=1)
 Delete element(s) from the array.
void GrowTo (int aNrItems)
void Insert (int aIndex, T &aObj, LispInt aCount=1)
 Insert object aObj, aCount times.
T & Item (const int aIndex) const
void Move (int aSrcIndex, int aTrgIndex)
void MoveBlock (int aSrcIndex, int aTrgIndex)
LispInt NrAllocated ()
 Return the number of allocated cells.
int NrItems () const
 Return the number of items currently in the array.
void operator delete (void *object)
void operator delete[] (void *object)
void * operator new (size_t size)
void * operator new[] (size_t size)
T & operator[] (const int aIndex) const
 Access to an element in the array.
void SetExternalArray (T *aArray, LispInt aNrItems)
void SetGranularity (LispInt aGranularity)
 Set the step size for growing the array.
void SetNrItems (int aNrItems)

Protected Member Functions

LispChar * BaseItem (int aIndex)

Protected Attributes

LispChar * iArray
LispBoolean iArrayOwnedExternally
LispInt iGranularity
LispInt iItemSize
LispInt iNrAllocated
LispInt iNrItems

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

Generated by  Doxygen 1.6.0   Back to index