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

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

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.


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
const double* MIDOUBLEARRAY::GetPointer (  )  const [inline]

Get const pointer to internal buffer.

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 Sun Oct 7 21:33:35 2012 for TNTsdk 2012 by  doxygen 1.6.1