DynArray Class Reference

A temporary class to control a dynamic array of doccoords. This will be replaced by a template class whenever we can use the template directive. More...

#include <rsmooth.h>

List of all members.

Public Member Functions

 DynArray ()
 ~DynArray ()
BOOL Initialise (INT32 inititems, INT32 newitems)
SetGetFirstItem ()
INT32 NumItems ()
BOOL AddItem (Set &)
void DeleteItems (INT32 firstitem, INT32 numitems)
void Empty (BOOL compress=TRUE)
Setoperator[] (const INT32 i)
void Compact ()
BOOL CloneFrom (DynArray *SourceArray)

Private Member Functions

BOOL MakeSpaceInList (const INT32 numitems)

Private Attributes

MHANDLE BlockHandle
INT32 UsedSlots
INT32 UnusedSlots
INT32 SlotInitSize
INT32 SlotAllocSize


Detailed Description

A temporary class to control a dynamic array of doccoords. This will be replaced by a template class whenever we can use the template directive.

class DynArray

Author:
Mike_Kenny (Xara Group Ltd) <camelotdev@xara.com>
Date:
16/11/94

Definition at line 140 of file rsmooth.h.


Constructor & Destructor Documentation

DynArray::DynArray  ) 
 

DynArray::~DynArray  ) 
 


Member Function Documentation

BOOL DynArray::AddItem Set  ) 
 

BOOL DynArray::CloneFrom DynArray SourceArray  ) 
 

void DynArray::Compact  ) 
 

void DynArray::DeleteItems INT32  firstitem,
INT32  numitems
 

void DynArray::Empty BOOL  compress = TRUE  ) 
 

Set* DynArray::GetFirstItem  ) 
 

BOOL DynArray::Initialise INT32  inititems,
INT32  newitems
 

BOOL DynArray::MakeSpaceInList const INT32  numitems  )  [private]
 

INT32 DynArray::NumItems  )  [inline]
 

Definition at line 147 of file rsmooth.h.

00147 { return UsedSlots; };

Set& DynArray::operator[] const INT32  i  ) 
 


Member Data Documentation

MHANDLE DynArray::BlockHandle [private]
 

Definition at line 159 of file rsmooth.h.

INT32 DynArray::SlotAllocSize [private]
 

Definition at line 164 of file rsmooth.h.

INT32 DynArray::SlotInitSize [private]
 

Definition at line 163 of file rsmooth.h.

INT32 DynArray::UnusedSlots [private]
 

Definition at line 162 of file rsmooth.h.

INT32 DynArray::UsedSlots [private]
 

Definition at line 161 of file rsmooth.h.


The documentation for this class was generated from the following file:
Generated on Sat Nov 10 03:53:55 2007 for Camelot by  doxygen 1.4.4