10 #define _MP_index_hpp_ 176 return left->evaluate()*int(right->evaluate());
199 return left->evaluate()+int(right->evaluate());
222 return left->evaluate()-int(right->evaluate());
Internal representation of an index expression.
Internal representation of an index expression.
virtual MP_index * getIndex() const =0
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".
MP_index_sum(MP_index &i, const Constant &j)
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...
MP_index * getIndex() const
Range over which some other constuct is defined.This is one of the main public interface classes...
Range over which some other constuct is defined. Uses subsetting.This is one of the main public inter...
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.
MP_index_mult(MP_index &i, const Constant &j)
Range over which some other constuct is defined.This is one of the main public interface classes...
MP_index_dif(MP_index &i, const Constant &j)
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.
bool isInstantiated() const
Constant operator*(const Constant &a, const Constant &b)
Returns the product of two constants.This is used in the formation of an expression.
friend class MP_index_exp
virtual MP_domain getDomain(MP_set *s) const =0
MP_index * getIndex() const
virtual int evaluate() const =0
Internal representation of a index.
MP_index * getIndex() const
static MP_index_exp Empty
MP_index * getIndex() const
MP_index()
Default constructor.