#include <tvu_typesdef.h>
Inheritance diagram for CTItemList::
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 CTObject* | GetValue () |
For calculating. More... | |
virtual CTObject* | Calculate (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 CTInt& | GetUniqueName () |
virtual TBOOL& | GetDeleteDataFlag () |
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... |
|
Constructors/Destructors.
|
|
Add an object to the and of the list.
|
|
Append a list to this list.
|
|
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. |
|
Compare with other list if they conatin the same elements bRecurring: find in the tree.
|
|
Free the memory of the list.
|
|
Delete an element bDelete: TTRUE ~ removed the holt object.
|
|
Find an element that satisfies the constraints.
|
|
Find an element by it's pointer.
|
|
Find an element by it's ID.
|
|
Find an element by it's name.
|
|
Find a sub list by it's ID.
|
|
Find a sub list by the name of an element.
|
|
Find a sub list by it'name.
|
|
Operations Get the first element of the list.
|
|
Get the element at.
|
|
Get the number of items whose name contains/is equal a string.
|
|
Get the number of items.
|
|
Return the index of an object in the list If the object is not found, the returned value is -1.
|
|
For calculating.
Reimplemented from CTObject. Reimplemented in CTExpression. |
|
Insert an object tho the begin of the list.
|
|
Verify the the list is empty.
02061 { return m_pFirst == TNULL; }; |
|
Verify if the object need to be saved.
Reimplemented from CTObject. 02103 { return !IsEmpty(); }; |
|
Load a list of strings from a buffer.
|
|
Load the object a file.
Reimplemented from CTObject. |
|
Load/Save.
Reimplemented from CTObject. |
|
Save the item names only.
|
|
Replace the first element by another.
|
|
Save the expression.
Reimplemented from CTObject. Reimplemented in CTExpression. |
|
Get the tail of the list.
|
|
Operations.
|
|
There is not 2 elements who have the same name.
|
|
For the external moduls Hook function for verify the OP "exist".
|
|
Data.
|