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>
Public Member Functions | |
| MIDOUBLEARRAY (const MIDOUBLEARRAY &rhs) | |
| MIDOUBLEARRAY () | |
| ~MIDOUBLEARRAY () | |
| void | Attach (MIDOUBLEARRAY &rhs) |
| void | Free () |
| int | GetNumReserved () const |
| double * | GetPointer () |
| const double * | GetPointer () const |
| MIDOUBLEARRAY & | operator= (const MIDOUBLEARRAY &rhs) |
| ERRVALUE | Reserve (INT32 NewSize, bool keepold=false) |
| void | ReserveExc (INT32 NewSize, bool keepold=false) |
| void | Swap (MIDOUBLEARRAY &rhs) |
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.
| MIDOUBLEARRAY::MIDOUBLEARRAY | ( | ) |
Default Constructor.
| MIDOUBLEARRAY::MIDOUBLEARRAY | ( | const MIDOUBLEARRAY & | rhs | ) |
Copy Constructor.
| MIDOUBLEARRAY::~MIDOUBLEARRAY | ( | ) |
Destructor.
| 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.
| double* MIDOUBLEARRAY::GetPointer | ( | ) |
Get pointer to internal buffer.
DO NOT REALLOCATE OR FREE THIS POINTER, YOU WILL CRASH
| const double* MIDOUBLEARRAY::GetPointer | ( | ) | const [inline] |
Get const pointer to internal buffer.
| MIDOUBLEARRAY& MIDOUBLEARRAY::operator= | ( | const MIDOUBLEARRAY & | rhs | ) |
Assignment.
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'.
1.6.1