Encapsulates methods common to Alias objects that can belong to sets.
#include <AlSettable.h>
class AlSettable
virtual AlSet* firstSet() const;
virtual AlSet* nextSet( const AlSet* ) const;
virtual AlSet* prevSet( const AlSet* ) const;
virtual statusCode nextSetD( AlSet* ) const;
virtual statusCode prevSetD( AlSet* ) const;
virtual statusCode applyIteratorToSets( AlIterator*, int& );
statusCode removeFromAllSets();
statusCode removeFromSet( AlSet *set );
statusCode addToSet( AlSet *set );
AlSetMember* isSetMember( const AlSet *set ) const;
This class is a base class for all objects which can be contained in a set. It provides the methods necessary to access the set methods of these objects.
Finds and returns the first set of which this object is a member. If no such set can be found, NULL is returned.
Finds and returns the set following the given one of which this object is a member. If no such set can be found, NULL is returned.
< lastSet - set to walk forward from
Finds and returns the set preceding the given one of which this object is a member. If no such set can be found, NULL is returned.
< lastSet - set to walk forward from
Destructively points lastSet to the next set for the given object.
< lastSet - set to walk forward from
sSuccess - the set wrapper points to the next set
sInvalidArgument - ’lastSet’ is invalid or NULL
sFailure - there is no next set
Destructively points lastSet to the previous set for the given object. If this can not be accomplished, then lastSet is unaffected.
< lastSet - set to walk backward from
sSuccess - lastSet points to the previous set for the given object
sInvalidArgument - ’lastSet’ is invalid or NULL
sFailure - there is no previous set
Applies the given iterator to all the sets affected by this object. See the documentation for AlIterator.
< iter - the iterator to apply to each set
> rc - the value returned from the last application of the iterator
sSuccess - the applyIteratorToSets exited normally
sFailure - applyIteratorToSets exited abnormally
sInvalidArgument - iter is NULL
Adds this object to the set
< set - set to add to
sSuccess - successfully added to the set
sInsufficientMemory - not enough memory available
sObjectInSet - this object already belongs to this set
sObjectInAnotherSet - this set is exclusive and this object already belongs to another set
sObjectInExclusiveSet - this object already belongs to an exclusive set
sObjectAncestorInSet - an ancestor of this object already belongs to this set
sObjectDescendentInSet - a descendent of this object already belongs to this set
sInvalidArgument - set was NULL
sInvalidObject - this object was invalid
Removes this object from the set. If the given DAG node was not found in the set, then nothing is removed.
< set - the set to remove from
sSuccess - if this object was removed successfully
sInvalidArgument - set was invalid
sObjectNotAMember - if the object was not found in this set
sInvalidObject - the set is invalid
Returns TRUE if this object is a member of the given set.
< set - the object to test membership in
Removes this object from all sets in the universe that it may be in.
sSuccess - object was removed from all sets