Home You are here: Home > Support > Reference v1.0

Change language: German

XmArray Class Reference

Inheritance diagram for XmArray:

TXmObjectVector XmEnumList XmObjectList TXmObjectVectorObject TXmObjectList TXmObjectListObject List of all members.

Detailed Description

Interface class, which supply container functionality for objects in the exom Object Model.

A container derived from XmArray provide the possibility to handle an unlimited number of items of type XmObject. Items can be inserted, deleted, moved or modified via user interface. Container items are accessed via using an integer index in ObjectAtIndex().

The exom framework provide two implementations of this container class. These are the vector based TXmObjectVectorObject and the list based XmObjectList. By implementing the interfaces of this class it is possible to create your own container class.

More information in section The Object Model.


Overridables

virtual void manageItems (XmMan &m)=0
 Implement the handling and iteration for the different XmMan derivations.
virtual void DeleteArrItem (int index)=0
 Delete item with the given index.
virtual int MoveArrItem (int index, int offset)=0
 Move the item with given index at offset positions.
virtual bool MoveArrItemEnable (int index, int offset)=0
 Check, if it is possible to move the given item.
virtual void ClearArray ()
 Delete all items of the container.
virtual void AppendNewItem (XmAppendCx &ac)
 Append an item to the container.
virtual void ArrayProp (XmArrayProp &ap) const
 Set general array properties.
virtual bool IndexOfReference (int &index, XMID col, const XmAtom &key) const
 Provide the index of the item, which is referenced by the specified key in the given col ID.
virtual XmObjectObjectAtIndex (int index) const =0
 Supply the item with index, if available.


Member Function Documentation

virtual void manageItems XmMan m  )  [pure virtual]
 

Implement the handling and iteration for the different XmMan derivations.

see TXmObjectVectorObject, how to implement this member function.

Implemented in TXmObjectVector, XmEnumList, and XmObjectList.

virtual bool IndexOfReference int &  index,
XMID  col,
const XmAtom key
const [protected, virtual]
 

Provide the index of the item, which is referenced by the specified key in the given col ID.

Return false if no reference found.

Reimplemented in XmEnumList.


Copyright © 2006 Praetz Software Development - www.exomware.com