Go to the documentation of this file.
9 #ifndef _MP_constant_hpp_
10 #define _MP_constant_hpp_
Constant pos(const Constant &c)
for returning non-negative value of the constant.
Constant operator*(const Constant &a, const Constant &b)
Returns the product of two constants.
virtual double evaluate() const =0
Reference counted class for all "constant" types of data.
Range over which some other constuct is defined.
Constant abs(const Constant &c)
for computing the absolute value of a constant value.
Reference to a set of data.
Constant(const MP_index_exp &i)
Utility for doing reference counted pointers.
Constant product(const MP_domain &i, const Constant &e)
Returns the sum of two constants.
Constant maximum(const Constant &a, const Constant &b)
Returns the larger of two constants.
Constant operator-(const Constant &a, const Constant &b)
Returns the difference of two constants.
Constant minimum(const Constant &a, const Constant &b)
Returns the smaller of two constants.
Constant(Constant_base *r)
Constant operator+(const Constant &a, const Constant &b)
Returns the sum of two constants.
Constant ceil(const Constant &c)
The ceiling integral value of the input constant.
Constant sum(const MP_domain &i, const Constant &e)
Returns the sum of two constants.
virtual int getStage() const
Constant operator/(const Constant &a, const Constant &b)
Returns the quotient of two constants.
All flopc++ code is contained within the flopc namespace.
Constant floor(const Constant &c)
The floor integral value of the input constant.
Representation of an expression involving an index.
Constant(const DataRef &d)
virtual int stage() const
Base class for all "constant" types of data.