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

Public Methods | |
| CTArray () | |
| Constructors/Destructors. More... | |
| CTArray (TINT nElements) | |
| Constructor with the maximum number of elements. More... | |
| virtual | ~CTArray () |
| 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 (CTArray, CTObject, CLASSNAME_TYPE_ARRAY_ID, CLASSNAME_TYPE_ARRAY) public | |
| Overwrite. More... | |
| CTInt& | GetCount () |
| Get the current number of elements. More... | |
| LPCTObject* | GetBuffer () |
| Get the buffer of the array ==> "array" of objects. More... | |
| CTObject* | GetAt (TINT i) |
| Get the element i of the array. More... | |
| TBOOL | SetAt (TINT i, CTObject *pObject) |
| Replace the element i of the array. More... | |
| TBOOL | Add (CTObject *pObject) |
| Add an object to the array. More... | |
| TBOOL | Alloc (TINT nElements) |
| Allocate the memery for the array. More... | |
| TBOOL | ReAlloc (TINT nElements) |
| Allocate the memery for the array and conserve its data. More... | |
| virtual CTObject* | Calculate (TINT iOperator, CTObject *Object) |
| For calculating. More... | |
| CTArray& | operator= (CTArray &Array) |
| Operations. More... | |
Protected Methods | |
| TINT | GetIndex (TINT i) |
| Convert from an integer to the index of the array. More... | |
| TINT | GetNextIndex (TINT i) |
Protected Attributes | |
| CTInt | m_MaxCount |
| Maximum number of elements. More... | |
| CTInt | m_nCount |
| Current number of elements. More... | |
| LPCTObject* | m_Objects |
| Buffers. More... | |
|
|
Constructors/Destructors.
|
|
|
Constructor with the maximum number of elements.
|
|
|
destuctor.
|
|
|
Add an object to the array.
|
|
|
Allocate the memery for the array.
|
|
|
For calculating.
Reimplemented from CTObject. |
|
|
Overwrite.
02207 : 02209 CTInt& GetMaxCount() { return m_MaxCount; }; |
|
|
Delete the buffer bDeleteData = TRUE => delete the objects contained in the array.
|
|
|
Get the element i of the array.
02215 { return m_Objects[GetIndex(i)]; };
|
|
|
Get the buffer of the array ==> "array" of objects.
02213 { return m_Objects; };
|
|
|
Get the current number of elements.
02211 { return m_nCount; };
|
|
|
Convert from an integer to the index of the array.
|
|
|
Allocate the memery for the array and conserve its data.
|
|
|
Detach every elements.
|
|
|
Replace the element i of the array.
|
|
|
Operations.
|
|
|
Maximum number of elements.
|
|
|
Buffers.
|
|
|
Current number of elements.
|
1.2.8.1 written by Dimitri van Heesch,
© 1997-2001