Represents a heterogeneous collection of objects that can be individually accessed by index. More...
Represents a heterogeneous collection of objects that can be individually accessed by index.
Public Member Functions | |
virtual ErrCode INTERFACE_FUNC | getItemAt (SizeT index, IBaseObject **obj)=0 |
Gets the element at a specific position. More... | |
virtual ErrCode INTERFACE_FUNC | getCount (SizeT *size)=0 |
Gets the number of elements contained in the list. More... | |
virtual ErrCode INTERFACE_FUNC | setItemAt (SizeT index, IBaseObject *obj)=0 |
Sets the element at a specific position. More... | |
virtual ErrCode INTERFACE_FUNC | pushBack (IBaseObject *obj)=0 |
Inserts the element at the end of the list. More... | |
virtual ErrCode INTERFACE_FUNC | pushFront (IBaseObject *obj)=0 |
Inserts the element at the start of the list. More... | |
virtual ErrCode INTERFACE_FUNC | moveBack (IBaseObject *obj)=0 |
Inserts the element at the end of the list without incrementing the reference count. More... | |
virtual ErrCode INTERFACE_FUNC | moveFront (IBaseObject *obj)=0 |
Inserts the element at the start of the list without incrementing the reference count. More... | |
virtual ErrCode INTERFACE_FUNC | popBack (IBaseObject **obj)=0 |
Gets the element from the end of the list. More... | |
virtual ErrCode INTERFACE_FUNC | popFront (IBaseObject **obj)=0 |
Gets the element from the start of the list. More... | |
virtual ErrCode INTERFACE_FUNC | insertAt (SizeT index, IBaseObject *obj)=0 |
Inserts the element at a specific position. More... | |
virtual ErrCode INTERFACE_FUNC | removeAt (SizeT index, IBaseObject **obj)=0 |
Removes the element at a specific position. More... | |
virtual ErrCode INTERFACE_FUNC | deleteAt (SizeT index)=0 |
Deletes the element at a specific position. More... | |
virtual ErrCode INTERFACE_FUNC | clear ()=0 |
Removes all elements from the list. | |
virtual ErrCode INTERFACE_FUNC | createStartIterator (IIterator **iterator)=0 |
Creates and returns the start iterator of the list. More... | |
virtual ErrCode INTERFACE_FUNC | createEndIterator (IIterator **iterator)=0 |
Creates and returns the stop iterator of the list. More... | |
![]() | |
virtual ErrCode INTERFACE_FUNC | borrowInterface (const IntfID &intfID, void **obj) const =0 |
Returns another interface which is supported by the object without incrementing the reference count. More... | |
virtual ErrCode INTERFACE_FUNC | dispose ()=0 |
Disposes all references held by the object. More... | |
virtual ErrCode INTERFACE_FUNC | getHashCode (SizeT *hashCode)=0 |
Returns hash code of the object. More... | |
virtual ErrCode INTERFACE_FUNC | equals (IBaseObject *other, Bool *equal) const =0 |
Compares object to another object for equality. More... | |
virtual ErrCode INTERFACE_FUNC | toString (CharPtr *str)=0 |
Returns a string representation of the object. More... | |
![]() | |
virtual ErrCode INTERFACE_FUNC | queryInterface (const IntfID &intfID, void **obj)=0 |
Returns another interface which is supported by the object and increments the reference count. More... | |
virtual int INTERFACE_FUNC | addRef ()=0 |
Increments the reference count for an interface on an object. More... | |
virtual int INTERFACE_FUNC | releaseRef ()=0 |
Decrements the reference count for an interface on an object. More... | |
Creates and returns the stop iterator of the list.
[out] | iterator | The stop iterator. |
Use iterators to iterate through the elements.
Creates and returns the start iterator of the list.
[out] | iterator | The start iterator. |
Use iterators to iterate through the elements.
|
pure virtual |
Deletes the element at a specific position.
index | The zero-based index of the element to remove. |
If the client needs the element deleted, it should use removeAt
method.
|
pure virtual |
Gets the number of elements contained in the list.
[out] | size | The number of elements contained in the list. |
|
pure virtual |
Gets the element at a specific position.
index | The zero-based index of the element to get. | |
[out] | obj | The element at the specified index. |
The reference count of the element that is retrieved is incremented. The client is responsible for calling releaseRef
when the element is no longer needed.
|
pure virtual |
Inserts the element at a specific position.
index | The zero-based index of the element to insert. |
obj | The element to insert at the specified index. |
The reference count of the element is incremented.
|
pure virtual |
Inserts the element at the end of the list without incrementing the reference count.
obj | The element to insert. |
The reference count of the element is not incremented. The client can use this method when it no longer needs to access the element after calling the method.
|
pure virtual |
Inserts the element at the start of the list without incrementing the reference count.
obj | The element to insert. |
The reference count of the element is not incremented. The client can use this method when it no longer needs to access the element after calling the method.
|
pure virtual |
Gets the element from the end of the list.
[out] | obj | The extracted element. |
The reference count of the element that is retrieved is incremented. The client is responsible for calling releaseRef
when the element is no longer needed.
|
pure virtual |
Gets the element from the start of the list.
[out] | obj | The extracted element. |
The reference count of the element that is retrieved is incremented. The client is responsible for calling releaseRef
when the element is no longer needed.
|
pure virtual |
Inserts the element at the end of the list.
obj | The element to insert. |
The reference count of the element is incremented.
|
pure virtual |
Inserts the element at the start of the list.
obj | The element to insert. |
The reference count of the element is incremented.
|
pure virtual |
Removes the element at a specific position.
index | The zero-based index of the element to remove. | |
[out] | obj | The removed element. |
The client is responsible for calling releaseRef
when the element is no longer needed. If the client does not need the element after it is removed, it should call delete
method.
|
pure virtual |
Sets the element at a specific position.
index | The zero-based index of the element to set. |
obj | The element to set at the specified index. |
The reference count of the element is incremented.