36 return int(C->evaluate());
52 return int(S->evaluate());
86 using namespace flopc;
94 return left->getDomain(s);
98 return left->getDomain(s);
102 return left->getDomain(s);
Internal representation of an index expression.
Internal representation of an index expression.
MP_index * getIndex() const
static MP_index & getEmpty()
returns a reference to the distinct "empty" index.
friend class MP_domain_set
MP_index_subsetRef(const SUBSETREF &s)
static MP_index & Any_index
Representation of an index.This is one of the main public interface classes. It is used to iterate th...
Internal representation of a "set".
virtual MP_domain getDomain(MP_set *s) const
static MP_index & Any()
returns a reference to the distinct "wildcard" index.
Utility for doing reference counted pointers.
Constant operator+(const Constant &a, const Constant &b)
Returns the sum of two constants.This is used in the formation of an expression.
Internal representation of an index expression.
Representation of an expression involving an index.This is one of the main public interface classes...
static const MP_index_exp & getEmpty()
Return the unique empty expression.
virtual MP_domain getDomain(MP_set *s) const
Constant operator-(const Constant &a, const Constant &b)
Returns the difference of two constants.This is used in the formation of an expression.
All flopc++ code is contained within the flopc namespace.
const MP_index_base * & operator->() const
MP_index_constant(const Constant &c)
Range over which some other constuct is defined.This is one of the main public interface classes...
MP_index * getIndex() const
virtual MP_domain getDomain(MP_set *s) const
static const MP_domain & getEmpty()
returns a reference to the "empty" set.
MP_index_exp(MP_index_base *r)
For internal use.
Representation of a set for indexing into some other construct.This is one of the main public interfa...
Reference counted class for all "constant" types of data.
virtual MP_domain getDomain(MP_set *s) const
Getter for domain over which this index is applied.
virtual MP_domain getDomain(MP_set *s) const
Constant operator*(const Constant &a, const Constant &b)
Returns the product of two constants.This is used in the formation of an expression.
MP_index * getIndex() const
Internal representation of a index.
static MP_index_exp Empty
virtual MP_domain getDomain(MP_set *s) const