ContentsIndexHome
PreviousUpNext
add Method

Adds a, possibly new, element to the set and all its supersets. Returns the element number.

Adds the specified element to this set and all of its supersets. 

 

virtual void add(const IElement* element) = 0;

 

Adds the specified label to this set and all of its supersets. Does not apply to subsets of Integers. 

 

virtual void add(const char* label) = 0;

 

Adds the specified label to this set and all of its supersets. Applies to subsets of Integers. 

 

virtual void add(int label) = 0;

Has no effect if the element already exists in the Set. 

Throws an InvalidUseException if the label does not exist in the root set.