Construct and destruct objects of this class.
![]() |
public:
~IAOrderedCollection()
Side Effects
All cursors of the collection become undefined.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
Exception
IOutOfMemory
public:
IAOrderedCollection(INotifier&)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
protected:
IAOrderedCollection(IAOrderedCollection < Element > const&)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
protected:
IAOrderedCollection()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Set cursors to point at particular elements of the collection.
![]() |
public:
bool setToLast(ICursor&) const
Precondition
The cursor must belong to the collection.
Return Value
Returns true if the collection is not empty.
Exceptions
ICursorInvalidException
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
void setToPosition(IPosition, ICursor&) const
Precondition
Exceptions
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
bool setToPrevious(ICursor&) const
Preconditions
The cursor must belong to the collection and must point to an element of the collection.
Return Value
Returns true if a previous element exists.
Exception
ICursorInvalidException
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Access particular elments in the collection.
![]() |
public:
Element const& elementAtPosition(IPosition) const
Returns a reference to the element at the given position in the collection.
Position 1 specifies the first element.
Position must be a valid position in the collection; that is, (1 <= position <= numberOfElements()).
Precondition
(1 <= position <= numberOfElements()).
Exception
IPositionInvalidException
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
Element const& first() const
Provides the same functionality as firstElement().
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
Element const& firstElement() const
Returns a reference to the first element of the collection.
Precondition
The collection must not be empty.
Exception
IEmptyException
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
Element const& last() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
Element const& lastElement() const
Precondition
The collection must not be empty.
Exception
IEmptyException
Windows | OS/2 | AIX |
Yes | Yes | Yes |
See if a cursor is pointing at an element at a particular position in the collection.
![]() |
public:
bool isFirst(ICursor const&) const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
bool isFirstAt(ICursor const&) const
Preconditions
The cursor must belong to the collection and must point to an element of the collection.
Exception
ICursorInvalidException
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
bool isLast(ICursor const&) const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
bool isLastAt(ICursor const&) const
Preconditions
The cursor must belong to the collection and must point to an element of the collection.
Exception
ICursorInvalidException
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
IPosition position(ICursor const&) const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
IPosition positionAt(ICursor const&) const
Preconditions The cursor must belong to the collection, and the cursor must point to an element of the collection.
Exceptions ICursorInvalidException
Windows | OS/2 | AIX |
Yes | Yes | Yes |
Remove elements from the collection.
![]() |
public:
virtual void removeAtPosition(IPosition)
The first element of the collection has position 1.
Precondition
Position must be a valid position in the collection; that is, (1 <= position <= numberOfElements()).
Side Effects
All cursors of this collection become undefined.
Exception
IPositionInvalidException
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual void removeFirst()
Precondition
The collection must not be empty.
Side Effects
All cursors of this collection become undefined.
Exception
IEmptyException
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual void removeLast()
Precondition
The collection must not be empty.
Side Effects
All cursors of this collection become undefined.
Exception
IEmptyException
Windows | OS/2 | AIX |
Yes | Yes | Yes |
virtual ~IACollection()
virtual bool add(Element const&, ICursor&)
virtual bool add(Element const&)
virtual void addAllFrom(IACollection < Element > const&)
void adoptStreamer(IACollectionStreamer*)
bool allElementsDo( bool ( * applicatorFunction ) ( Element const&, void * ) , void* additionalArgument = 0 ) const
bool allElementsDo(IConstantApplicator < Element >&) const
bool allElementsDo(IApplicator < Element >&)
bool allElementsDo( bool ( * applicatorFunction ) ( Element&, void * ) , void* additionalArgument = 0 )
Element const& any() const
Element const& anyElement() const
virtual void copy(IACollection < Element > const&)
INotifier& disableNotification()
Element const& elementAt(ICursor const&) const
Element& elementAt(ICursor const&)
INotifier& enableNotification(bool = true)
IACollection(INotifier&)
bool isBounded() const
bool isConsistent() const
bool isEmpty() const
bool isEnabledForNotification() const
bool isFull() const
INumber maxNumberOfElements() const
virtual ICursor* newCursor() const
ICursor* newMngCursor() const
INotifier& notifier()
INotifier const& notifier() const
INotifier& notifyObservers(INotificationEvent const&)
INumber numberOfElements() const
virtual void operator <<=(IDataStream&)
virtual void operator >>=(IDataStream&)
operator INotifier &() const
virtual INumber removeAll( bool ( * predicateFunction ) ( Element const&, void * ) , void* additionalArgument = 0 )
virtual INumber removeAll()
virtual void removeAt(ICursor&)
virtual void replaceAt(ICursor const&, Element const&)
bool setToFirst(ICursor&) const
bool setToNext(ICursor&) const
IACollection(IACollection < Element > const&)
IACollection()
static Implementation& ImplOf( IACollection < Element > const& )