ContentsIndexHome
PreviousUpNext
IElement Class

Represents a single element of an AIMMS set. 

Elements can be created in several ways:

C++
class IElement;
Name 
Description 
The following tables list the members exposed by IElement. 
Public Methods
 
Name 
Description 
 
Retrieves the integer label corresponding to the current element position. 
 
Retrieves the label corresponding to the current element position. 
 
Retrieves the ordinal corresponding to the current element position. 
 
Attempts to assign the specified integer label to this IElement. Returns true if the assignment succeeded, returns false when the integer label does not exist in the associated subset of Integers.
 
 
Attempts to assign the specified string label to this IElement. Returns true if the assignment succeeded, returns false when the integer label does not exist in the associated set. Only applies to IElements not associated with a subset of integers.
 
 
Attempts to assign the specified position in the associated set to this IElement. Returns true if the assignment succeeded, returns false when the ordinal position is invalid.
 
 
Closes and invalidates this IElement.
 
 
add 
Adds the label to the set and all its parent sets. 
 
Returns a reference to a new IElement with the same content.
 
 
Assigns the specified integer label to this IElement without checking, as opposed to its counterparts setIntLabel and check_setIntLabel.
This function may cause an error at a later stage if the label is not in the set and this IElement was used to assign some value into an IData object.
 
 
Assigns the specified string label to this IElement without checking whether this label is part of the associated set, as opposed to its counterparts setLabel and check_setLabel. This method does raise an RuntimeException if the label does not exist in the root set. This method does not apply to IElements over subsets of Integers.
This function may cause an error at a later stage if the label is not in the Set and the element is added as a position or value in some IData.
 
 
copy 
Copies the content of the source IElement to this IElement.
 
 
Prints the label to the stream. 
 
Returns whether this IElement is set to the empty Element (i.e. '' in the AIMMS language).
 
 
Assigns the specified integer label to this IElement. This method does only apply to IElements associated with a subset of Integers.
 
 
Sets this IElement to the empty Element (i.e. '' in the AIMMS language).
 
 
Assigns the specified string label to this IElement. This method does not apply to IElements associated with a subset of Integers. A RuntimeException is raised if the label does not exist in the root set.
 
 
Assigns the specified position in the set associated with this IElement to this IElement. A RuntimeException is raised if the ordinal position does not exist in the set.
 
Name 
Description 
Return value for ordinals in erroneous cases. This value might be returned when invoking e.g. the getOrdinal() member-method. 
Public Operators
 
Name 
Description 
 
= 
Provides some quick setting. 
 
Returns the string label.
Does not apply to elements on (a subset of) Integers.