#include <tvu_typesdef.h>
Inheritance diagram for CTArray2::

Public Methods | |
| CTArray2 () | |
| Constructors/Destructors. More... | |
| CTArray2 (TINT nRows, TINT nCols) | |
| Constructor with the maximum number of elements. More... | |
| virtual | ~CTArray2 () |
| destuctor. More... | |
| virtual TVOID | Delete (TBOOL bDeleteData=TFALSE) |
| Delete the buffer bDeleteData = TRUE => delete the objects contained in the array. More... | |
| virtual TVOID | ResetArray () |
| Detach every elements. More... | |
| DEFINE_ID_FUNCTIONS (CTArray2, CTObject, CLASSNAME_TYPE_ARRAY2_ID, CLASSNAME_TYPE_ARRAY2) public | |
| Overwrite. More... | |
| LPTBYTE | GetBuffers () |
| LPCTObject | GetAt (TINT Row, TINT Col) |
| Get the element (row, col) of the array. More... | |
| PPCTObject | GetRow (TINT Row) |
| PPCTObject | GetRowByIndex (TINT Row) |
| TBOOL | Alloc (TINT nRows, TINT nCols) |
| Allocate the memery for the array. More... | |
| virtual CTObject* | Calculate (TINT iOperator, CTObject *Object) |
| For calculating. More... | |
| CTArray2& | operator= (CTArray2 &Array) |
| Operations. More... | |
Data Fields | |
| TINT | m_Rows |
| Number of rows/cols. More... | |
| TINT | m_Cols |
| Number of rows/cols. More... | |
Protected Methods | |
| TINT | GetRowIndex (TINT i) |
| Convert from an integer to the index of the array. More... | |
| TINT | GetColIndex (TINT i) |
Protected Attributes | |
| PPCTObject* | m_Array |
| Buffers. More... | |
| LPTBYTE | m_Buffers |
|
|
Constructors/Destructors.
|
|
|
Constructor with the maximum number of elements.
|
|
|
destuctor.
|
|
|
Allocate the memery for the array.
|
|
|
For calculating.
Reimplemented from CTObject. |
|
|
Overwrite.
02261 : 02263 PPCTObject* GetArray() { return m_Array; }; LPTBYTE GetBuffers() { return m_Buffers; }; |
|
|
Delete the buffer bDeleteData = TRUE => delete the objects contained in the array.
|
|
|
Get the element (row, col) of the array.
02266 { return m_Array[Row][Col]; };
|
|
|
Convert from an integer to the index of the array.
02278 { return i % m_Rows; };
|
|
|
Detach every elements.
|
|
|
Operations.
|
|
|
Buffers.
|
|
|
Number of rows/cols.
|
|
|
Number of rows/cols.
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001