Because sequential collection is an abstract class, it cannot be used to create any objects. The sequential collection inherits from ordered collection and defines the interfaces for the properties of ordered elements.
Construct and destruct objects of this class.
![]() |
public:
~IASequentialCollection()
Side Effects
All cursors of the collection become undefined.
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
Exception
Note:
public:
IASequentialCollection(INotifier&)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
protected:
IASequentialCollection( IASequentialCollection < Element > const& )
Windows | OS/2 | AIX |
Yes | Yes | Yes |
protected:
IASequentialCollection()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
These methods add elements to the collection.
![]() |
Preconditions
Side Effects
All cursors of this collection, except the given cursor, become undefined.
Exceptions
public:
virtual void addAsFirst(Element const&, ICursor&)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
virtual void addAsFirst(Element const&)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
Preconditions
Side Effects
All cursors of this collection, except the given cursor, become undefined.
Exceptions
public:
virtual void addAsLast(Element const&, ICursor&)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
virtual void addAsLast(Element const&)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual void addAsNext(Element const&, ICursor&)
Preconditions
Side Effects
All cursors of this collection, except the given cursor, become undefined.
Exceptions
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual void addAsPrevious(Element const&, ICursor&)
Preconditions
Side Effects
All cursors of this collection, except the given cursor, become undefined.
Exceptions
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
Preconditions
Side Effects
All cursors of this collection, except the given cursor, become undefined.
Exceptions
public:
virtual void addAtPosition(IPosition, Element const&)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
virtual void addAtPosition( IPosition, Element const&, ICursor& )
Windows | OS/2 | AIX |
Yes | Yes | Yes |
These methods provide access to specific elements of the collection.
![]() |
Returns a reference to an arbitrary element of the collection.
Precondition
The collection must not be empty.
Exception
IEmptyException
public:
Element& any()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
Element const& any() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
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
public:
Element& elementAtPosition(IPosition)
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
Element const& elementAtPosition(IPosition) const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
Returns a reference to the first element of the collection.
Precondition
The collection must not be empty.
Exception
IEmptyException
public:
Element& first()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
Element const& first() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
Returns a reference to the last element of the collection.
Precondition
The collection must not be empty.
Exception
IEmptyException
public:
Element& last()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
public:
Element const& last() const
Windows | OS/2 | AIX |
Yes | Yes | Yes |
These methods control ordering of the elements.
![]() |
public:
virtual void reverse()
Windows | OS/2 | AIX |
Yes | Yes | Yes |
![]() |
public:
virtual void sort( long ( * comparisonFunction ) ( Element const & , Element const & ) )
Side Effects
All cursors of this collection become undefined.
Note:
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(IConstantApplicator < Element >&) const
bool allElementsDo( bool ( * applicatorFunction ) ( Element&, void * ) , void* additionalArgument = 0 )
bool allElementsDo(IApplicator < Element >&)
bool allElementsDo( bool ( * applicatorFunction ) ( Element const&, void * ) , void* additionalArgument = 0 ) const
Element const& anyElement() const
virtual void copy(IACollection < Element > const&)
INotifier& disableNotification()
Element& elementAt(ICursor const&)
Element const& elementAt(ICursor const&) 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
~IAOrderedCollection()
Element const& firstElement() const
IAOrderedCollection(INotifier&)
bool isFirst(ICursor const&) const
bool isFirstAt(ICursor const&) const
bool isLast(ICursor const&) const
bool isLastAt(ICursor const&) const
Element const& lastElement() const
IPosition position(ICursor const&) const
IPosition positionAt(ICursor const&) const
virtual void removeAtPosition(IPosition)
virtual void removeFirst()
virtual void removeLast()
bool setToLast(ICursor&) const
void setToPosition(IPosition, ICursor&) const
bool setToPrevious(ICursor&) const
IACollection(IACollection < Element > const&)
IACollection()
static Implementation& ImplOf( IACollection < Element > const& )
IAOrderedCollection()
IAOrderedCollection(IAOrderedCollection < Element > const&)