Main Page   Class Hierarchy   Data Structures   File List   Data Fields   Globals  

CTItemList Class Reference

Define a list Implemented in: tvu_list_tree_array.cpp. More...

#include <tvu_typesdef.h>

Inheritance diagram for CTItemList::

CTObject CTExpression CTResource

Public Methods

 CTItemList ()
 Constructors/Destructors. More...

 CTItemList (LPCTObject Object)
virtual ~CTItemList ()
 DEFINE_ID_FUNCTIONS (CTItemList, CTObject, CLASSNAME_TYPE_LIST_ID, CLASSNAME_TYPE_LIST) virtual CTItemList *CreateNewItem()
virtual CTItemList* CreateNewItem (LPCTObject Object)
LPCTObject First ()
 Operations Get the first element of the list. More...

CTList Tail ()
 Get the tail of the list. More...

TBOOL Add (LPCTObject Object)
 Add an object to the and of the list. More...

CTList Insert (LPCTObject Object)
 Insert an object tho the begin of the list. More...

CTList Append (CTList pList)
 Append a list to this list. More...

CTList ReplaceFirst (LPCTObject Object, TBOOL bDelete=TTRUE)
 Replace the first element by another. More...

TBOOL DeleteObject (LPCTObject Object, TBOOL bDelete=TFALSE)
 Delete an element bDelete: TTRUE ~ removed the holt object. More...

CTList GetAt (TINT iIndex)
 Get the element at. More...

TINT GetIndex (CTObject *pObject)
 Return the index of an object in the list If the object is not found, the returned value is -1. More...

TINT GetIndex (TLPCSTR pName)
TDWORD GetCount ()
 Get the number of items. More...

TDWORD GetCount (TLPCSTR Name, TBOOL bExact=TTRUE)
 Get the number of items whose name contains/is equal a string. More...

TBOOL IsEmpty ()
 Verify the the list is empty. More...

LPCTObject Find (TLPCSTR lpName, TBOOL bRecurrent=TFALSE)
 Find an element by it's name. More...

CTList FindList (TLPCSTR lpName, TBOOL bRecurrent=TFALSE)
 Find a sub list by the name of an element. More...

CTList FindSubList (TLPCSTR lpName, TBOOL bRecurrent=TFALSE)
 Find a sub list by it'name. More...

LPCTObject Find (TDWORD id, TBOOL bRecurrent=TFALSE)
 Find an element by it's ID. More...

CTList FindList (TDWORD id, TBOOL bRecurrent=TFALSE)
 Find a sub list by it's ID. More...

CTList Find (LPCTObject pObject, TBOOL bRecurrent=TFALSE)
 Find an element by it's pointer. More...

CTList Find (CTList pConstraints)
 Find an element that satisfies the constraints. More...

TBOOL Compare (CTList pList, TBOOL bRecurring=TFALSE)
 Compare with other list if they conatin the same elements bRecurring: find in the tree. More...

virtual CTObjectGetValue ()
 For calculating. More...

virtual CTObjectCalculate (TINT iOperator, CTObject *Object)
 Calculate the mathematical operators: +, -, *, / and the comparing operators: =, <, <=, >, >=. In this case, the returned value is an object of CTInt. More...

CTItemList& operator= (CTItemList &Item)
 Operations. More...

virtual void Delete (TBOOL DeleteData=TFALSE)
 Free the memory of the list. More...

virtual TBOOL OnLoading (LPTBYTE *lpBuffers)
 Load/Save. More...

virtual TBOOL LoadListStrings (LPTBYTE *lpBuffers)
 Load a list of strings from a buffer. More...

virtual TBOOL OnLoading (LPCTFile pFile)
 Load the object a file. More...

virtual TBOOL OnSaving (LPCTFile pFile, TINT Marge)
virtual TBOOL OnSaving (TLPSTR pBuffers, TINT Marge)
virtual TBOOL OnSavingName (LPCTFile pFile, TINT Marge)
 Save the item names only. More...

virtual TBOOL SaveExpression (LPCTFile pFile, TINT Marge)
 Save the expression. More...

virtual TBOOL IsNeedtoSave ()
 Verify if the object need to be saved. More...

virtual CTIntGetUniqueName ()
virtual TBOOLGetDeleteDataFlag ()

Static Public Methods

TBOOL IsEmptyList (CTList pList)

Static Public Attributes

EXIST_FUNCTION m_pExistFunction
 For the external moduls Hook function for verify the OP "exist". More...


Protected Attributes

LPCTObject m_pFirst
 Data. More...

CTList m_pTail
CTInt m_mUniqueName
TBOOL m_bDeleteData
 There is not 2 elements who have the same name. More...


Detailed Description

Define a list Implemented in: tvu_list_tree_array.cpp.


Constructor & Destructor Documentation

CTItemList::CTItemList ( )
 

Constructors/Destructors.


Member Function Documentation

TBOOL CTItemList::Add ( LPCTObject Object )
 

Add an object to the and of the list.

CTList CTItemList::Append ( CTList pList )
 

Append a list to this list.

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

Calculate the mathematical operators: +, -, *, / and the comparing operators: =, <, <=, >, >=. In this case, the returned value is an object of CTInt.

Reimplemented from CTObject.

Reimplemented in CTExpression.

TBOOL CTItemList::Compare ( CTList pList,
TBOOL bRecurring = TFALSE )
 

Compare with other list if they conatin the same elements bRecurring: find in the tree.

void CTItemList::Delete ( TBOOL DeleteData = TFALSE ) [virtual]
 

Free the memory of the list.

TBOOL CTItemList::DeleteObject ( LPCTObject Object,
TBOOL bDelete = TFALSE )
 

Delete an element bDelete: TTRUE ~ removed the holt object.

CTList CTItemList::Find ( CTList pConstraints )
 

Find an element that satisfies the constraints.

CTList CTItemList::Find ( LPCTObject pObject,
TBOOL bRecurrent = TFALSE )
 

Find an element by it's pointer.

LPCTObject CTItemList::Find ( TDWORD id,
TBOOL bRecurrent = TFALSE )
 

Find an element by it's ID.

LPCTObject CTItemList::Find ( TLPCSTR lpName,
TBOOL bRecurrent = TFALSE )
 

Find an element by it's name.

CTList CTItemList::FindList ( TDWORD id,
TBOOL bRecurrent = TFALSE )
 

Find a sub list by it's ID.

CTList CTItemList::FindList ( TLPCSTR lpName,
TBOOL bRecurrent = TFALSE )
 

Find a sub list by the name of an element.

CTList CTItemList::FindSubList ( TLPCSTR lpName,
TBOOL bRecurrent = TFALSE )
 

Find a sub list by it'name.

LPCTObject CTItemList::First ( )
 

Operations Get the first element of the list.

CTList CTItemList::GetAt ( TINT iIndex )
 

Get the element at.

TDWORD CTItemList::GetCount ( TLPCSTR Name,
TBOOL bExact = TTRUE )
 

Get the number of items whose name contains/is equal a string.

TDWORD CTItemList::GetCount ( )
 

Get the number of items.

TINT CTItemList::GetIndex ( CTObject * pObject )
 

Return the index of an object in the list If the object is not found, the returned value is -1.

CTObject * CTItemList::GetValue ( ) [virtual]
 

For calculating.

Reimplemented from CTObject.

Reimplemented in CTExpression.

CTList CTItemList::Insert ( LPCTObject Object )
 

Insert an object tho the begin of the list.

TBOOL CTItemList::IsEmpty ( ) [inline]
 

Verify the the list is empty.

02061 { return m_pFirst == TNULL; };

TBOOL CTItemList::IsNeedtoSave ( ) [inline, virtual]
 

Verify if the object need to be saved.

Reimplemented from CTObject.

02103 { return !IsEmpty(); };

TBOOL CTItemList::LoadListStrings ( LPTBYTE * lpBuffers ) [virtual]
 

Load a list of strings from a buffer.

TBOOL CTItemList::OnLoading ( LPCTFile pFile ) [virtual]
 

Load the object a file.

Reimplemented from CTObject.

TBOOL CTItemList::OnLoading ( LPTBYTE * lpBuffers ) [virtual]
 

Load/Save.

Reimplemented from CTObject.

TBOOL CTItemList::OnSavingName ( LPCTFile pFile,
TINT Marge ) [virtual]
 

Save the item names only.

CTList CTItemList::ReplaceFirst ( LPCTObject Object,
TBOOL bDelete = TTRUE )
 

Replace the first element by another.

TBOOL CTItemList::SaveExpression ( LPCTFile pFile,
TINT Marge ) [virtual]
 

Save the expression.

Reimplemented from CTObject.

Reimplemented in CTExpression.

CTList CTItemList::Tail ( )
 

Get the tail of the list.

CTItemList & CTItemList::operator= ( CTItemList & Item )
 

Operations.


Field Documentation

TBOOL CTItemList::m_bDeleteData [protected]
 

There is not 2 elements who have the same name.

EXIST_FUNCTION CTItemList::m_pExistFunction [static]
 

For the external moduls Hook function for verify the OP "exist".

LPCTObject CTItemList::m_pFirst [protected]
 

Data.


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