9 #ifndef _MP_constant_hpp_
10 #define _MP_constant_hpp_
68 Constant
abs(
const Constant& c);
78 Constant
pos(
const Constant& c);
87 Constant
ceil(
const Constant& c);
96 Constant
floor(
const Constant& c);
105 Constant
minimum(
const Constant& a,
const Constant& b);
114 Constant
maximum(
const Constant& a,
const Constant& b);
122 Constant
operator+(
const Constant& a,
const Constant& b);
130 Constant
operator-(
const Constant& a,
const Constant& b);
138 Constant
operator*(
const Constant& a,
const Constant& b);
146 Constant
operator/(
const Constant& a,
const Constant& b);
149 Constant
mpif(
const MP_boolean& c,
const Constant& a,
const Constant& b);
157 Constant
maximum(
const MP_domain& i,
const Constant& e);
164 Constant
minimum(
const MP_domain& i,
const Constant& e);
171 Constant
sum(
const MP_domain& i,
const Constant& e);
178 Constant
product(
const MP_domain& i,
const Constant& e);
Constant maximum(const Constant &a, const Constant &b)
Returns the larger of two constants.This is used in the formation of an expression.
virtual double evaluate() const =0
Constant abs(const Constant &c)
for computing the absolute value of a constant value.This is used in the normal formation of an expre...
Constant operator/(const Constant &a, const Constant &b)
Returns the quotient of two constants.This is used in the formation of an expression.
Constant product(const MP_domain &i, const Constant &e)
Returns the sum of two constants.
Constant(const MP_index_exp &i)
Utility for doing reference counted pointers.
Constant ceil(const Constant &c)
The ceiling integral value of the input constant.This is used in the formation of an expression...
Constant floor(const Constant &c)
The floor integral value of the input constant.This is used in the formation of an expression...
Constant operator+(const Constant &a, const Constant &b)
Returns the sum of two constants.This is used in the formation of an expression.
Constant mpif(const MP_boolean &c, const Constant &a, const Constant &b)
Representation of an expression involving an index.This is one of the main public interface classes...
Base class for all "constant" types of data.
virtual int getStage() const
Reference to a set of data.
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.
Constant(Constant_base *r)
Constant minimum(const Constant &a, const Constant &b)
Returns the smaller of two constants.This is used in the formation of an expression.
Range over which some other constuct is defined.This is one of the main public interface classes...
Constant pos(const Constant &c)
for returning non-negative value of the constant.This is used in the formation of an expression...
Reference counted class for all "constant" types of data.
Constant operator*(const Constant &a, const Constant &b)
Returns the product of two constants.This is used in the formation of an expression.
Constant sum(const MP_domain &i, const Constant &e)
Returns the sum of two constants.
virtual int stage() const