Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

CTArray2 Class Reference

Define a two dimensional array of objects Implemented in: tvu_list_tree_array.cpp. More...

#include <tvu_typesdef.h>

Inheritance diagram for CTArray2::

CTObject

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 CTObjectCalculate (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

Detailed Description

Define a two dimensional array of objects Implemented in: tvu_list_tree_array.cpp.


Constructor & Destructor Documentation

CTArray2::CTArray2 ( )
 

Constructors/Destructors.

CTArray2::CTArray2 ( TINT nRows,
TINT nCols )
 

Constructor with the maximum number of elements.

CTArray2::~CTArray2 ( ) [virtual]
 

destuctor.


Member Function Documentation

TBOOL CTArray2::Alloc ( TINT nRows,
TINT nCols )
 

Allocate the memery for the array.

CTObject * CTArray2::Calculate ( TINT iOperator,
CTObject * Object ) [virtual]
 

For calculating.

Reimplemented from CTObject.

CTArray2::DEFINE_ID_FUNCTIONS ( CTArray2,
CTObject,
CLASSNAME_TYPE_ARRAY2_ID,
CLASSNAME_TYPE_ARRAY2 ) [inline]
 

Overwrite.

02261               :
02263                 PPCTObject* GetArray() { return m_Array; };
                LPTBYTE     GetBuffers() { return m_Buffers; };

TVOID CTArray2::Delete ( TBOOL bDeleteData = TFALSE ) [virtual]
 

Delete the buffer bDeleteData = TRUE => delete the objects contained in the array.

LPCTObject CTArray2::GetAt ( TINT Row,
TINT Col ) [inline]
 

Get the element (row, col) of the array.

02266 { return m_Array[Row][Col]; };

TINT CTArray2::GetRowIndex ( TINT i ) [inline, protected]
 

Convert from an integer to the index of the array.

02278 { return i % m_Rows; };

TVOID CTArray2::ResetArray ( ) [virtual]
 

Detach every elements.

CTArray2 & CTArray2::operator= ( CTArray2 & Array )
 

Operations.


Field Documentation

PPCTObject * CTArray2::m_Array [protected]
 

Buffers.

TINT CTArray2::m_Cols
 

Number of rows/cols.

TINT CTArray2::m_Rows
 

Number of rows/cols.


The documentation for this class was generated from the following file:
Generated at Wed Aug 6 15:58:59 2003 for TVU's libraries for video surveillance: by doxygen1.2.8.1 written by Dimitri van Heesch, © 1997-2001