This class represents a contiguous set defined using 1..T or similar. More...
#include <SetNode.h>
Public Member Functions | |
SimpleSet (SyntaxNode *bnd1, SyntaxNode *bnd2) | |
std::vector< std::string > | members (AmplModel &context) const |
Retrieve the members of the set. | |
Private Attributes | |
int | lower_bound_ |
SyntaxNode * | lbc_ |
int | upper_bound_ |
SyntaxNode * | ubc_ |
int | interval_ |
bool | parsed_ |
This class represents a contiguous set defined using 1..T or similar.
SimpleSet::SimpleSet | ( | SyntaxNode * | bnd1, | |
SyntaxNode * | bnd2 | |||
) |
References lbc_, lower_bound_, parsed_, ubc_, upper_bound_, and ValueNode< T >::value.
vector< string > SimpleSet::members | ( | AmplModel & | context | ) | const |
Retrieve the members of the set.
References interval_, lower_bound_, parsed_, to_string(), and upper_bound_.
int SimpleSet::interval_ [private] |
Referenced by members().
SyntaxNode* SimpleSet::lbc_ [private] |
Referenced by SimpleSet().
int SimpleSet::lower_bound_ [private] |
Referenced by members(), and SimpleSet().
bool SimpleSet::parsed_ [private] |
Referenced by members(), and SimpleSet().
SyntaxNode* SimpleSet::ubc_ [private] |
Referenced by SimpleSet().
int SimpleSet::upper_bound_ [private] |
Referenced by members(), and SimpleSet().