MIDOUBLEARRAY Class Reference

MIDOUBLEARRAY class exists to solve an issue with some OS's that cannot correctly align a buffer of double's on a double boundary. More...

#include <mi32/midblary.h>

List of all members.

Public Member Functions

void Attach (MIDOUBLEARRAY &rhs)
void Free ()
int GetNumReserved () const
double * GetPointer ()
 MIDOUBLEARRAY (const MIDOUBLEARRAY &rhs)
 MIDOUBLEARRAY ()
MIDOUBLEARRAYoperator= (const MIDOUBLEARRAY &rhs)
ERRVALUE Reserve (INT32 NewSize, bool keepold=false)
void ReserveExc (INT32 NewSize, bool keepold=false)
void Swap (MIDOUBLEARRAY &rhs)
 ~MIDOUBLEARRAY ()


Detailed Description

MIDOUBLEARRAY class exists to solve an issue with some OS's that cannot correctly align a buffer of double's on a double boundary.

Not aligning on a double boundary can cause a speed penalty on some platforms. This class creates a buffer that is forced to be double aligned. This is exported from MISYSTEM.DLL and must not be inherited from. Currently DOUBLE_ARRAY<> and POLYLINE classes use this class as their foundation. Thise classes should meet most of your needs.

Definition at line 46 of file midblary.h.


Constructor & Destructor Documentation

MIDOUBLEARRAY::MIDOUBLEARRAY  ) 
 

Default Constructor.

MIDOUBLEARRAY::MIDOUBLEARRAY const MIDOUBLEARRAY rhs  ) 
 

Copy Constructor.

MIDOUBLEARRAY::~MIDOUBLEARRAY  ) 
 

Destructor.


Member Function Documentation

void MIDOUBLEARRAY::Attach MIDOUBLEARRAY rhs  ) 
 

Attach a MIDOUBLEARRAY to this one and clear out 'rhs'.

void MIDOUBLEARRAY::Free  ) 
 

Free MIDOUBLEARRAY buffer.

int MIDOUBLEARRAY::GetNumReserved  )  const
 

Get reserved size of buffer in doubles.

Returns:
Size of reserved buffer in doubles

double* MIDOUBLEARRAY::GetPointer  ) 
 

Get pointer to internal buffer.

DO NOT REALLOCATE OR FREE THIS POINTER, YOU WILL CRASH

Returns:
Pointer to correctly aligned double array buffer

MIDOUBLEARRAY& MIDOUBLEARRAY::operator= const MIDOUBLEARRAY rhs  ) 
 

Assignment.

ERRVALUE MIDOUBLEARRAY::Reserve INT32  NewSize,
bool  keepold = false
 

Reserve number of doubles in the array.

void MIDOUBLEARRAY::ReserveExc INT32  NewSize,
bool  keepold = false
 

Reserve number of doubles in the array, throws exception if error.

void MIDOUBLEARRAY::Swap MIDOUBLEARRAY rhs  ) 
 

Swap buffers between 'this' and 'rhs'.


The documentation for this class was generated from the following file:
Generated on Tue Dec 14 13:19:59 2004 for TNTsdk by  doxygen 1.3.8-20040913