|
|
| iterator (texpr1 &e) |
| Starts a new iterator at the root of the tree.
|
|
| iterator (const iterator &i) |
| Duplicates the iterator.
|
|
|
iterator & | operator= (const builder &x) |
| Replace the sub-expression at the iterator position with a (deep) copy of c.
|
|
|
texpr0::iterator | get_texpr0 () const |
| Returns an iterator at the root of the underlying texpr0.
|
|
coeff & | get_coeff () const |
| Returns a (modifiable) reference to the coefficient of a constant node.
|
|
void | set_var (const var &v) const |
| Sets the variable name of a dimension node.
|
|
ap_dim_t & | get_dim () const |
| Returns a (modifiable) reference to the dimension of a dimension node.
|
|
ap_texpr_op_t & | get_op () const |
| Returns a (modifiable) reference to the operator kind of an operator node.
|
|
ap_texpr_rtype_t & | get_rtype () const |
| Returns a (modifiable) reference to the destination type of an operator node.
|
|
ap_texpr_rdir_t & | get_rdir () const |
| Returns a (modifiable) reference to the rounding direction of an operator node.
|
|
|
iterator & | operator= (const iterator &i) |
| Resets the iterator at position i.
|
|
iterator | child () const |
| Constructs an iterator to the only or left sub-expression of an operator node.
|
|
iterator | left () const |
| Constructs an iterator to the only of left sub-expression of an operator node.
|
|
iterator | right () const |
| Constructs an iterator to the right sub-expression argument of a binary operator node.
|
|
|
ap_texpr1_t * | get_ap_texpr1_t () |
| Returns a pointer to the internal APRON object stored in *this.
|
|
const ap_texpr1_t * | get_ap_texpr1_t () const |
| Returns a pointer to the internal APRON object stored in *this.
|
|
| const_iterator (const texpr1 &e) |
| Starts a new const_iterator at the root of a constant expression tree.
|
|
| const_iterator (const const_iterator &i) |
| Duplicates the const_iterator.
|
|
environment | get_environment () const |
| Returns (a copy of) the environment associated with the expression.
|
|
texpr0::const_iterator | get_texpr0 () const |
| Returns a constant iterator at the root of the underlying texpr0.
|
|
ap_texpr_discr_t | get_discr () const |
| Returns the node kind.
|
|
const coeff & | get_coeff () const |
| Returns a reference to the coefficient of a constant node.
|
|
const var & | get_var () const |
| Returns a (unmodifiable) reference to the variable name of a dimension node.
|
|
ap_dim_t | get_dim () const |
| Returns the dimension of a dimension node.
|
|
ap_texpr_op_t | get_op () const |
| Returns the operator kind of an operator node.
|
|
ap_texpr_rtype_t | get_rtype () const |
| Returns the destination type of an operator node.
|
|
ap_texpr_rdir_t | get_rdir () const |
| Returns the rounding direction of an operator node.
|
|
const_iterator & | operator= (const const_iterator &i) |
| Resets the const_iterator at position i.
|
|
const_iterator | child () const |
| Constructs a const_iterator to the only or left sub-expression of an operator node.
|
|
const_iterator | left () const |
| Constructs a const_iterator to the only of left sub-expression of an operator node.
|
|
const_iterator | right () const |
| Constructs a const_iterator to the right sub-expression argument of a binary operator node.
|
|
bool | equal (const texpr1 &x) const |
| Whether two expressions are syntactically, structurally equal.
|
|
bool | is_zero () const |
| Whether the expression is a single coefficient node with 0 value.
|
|
size_t | depth () const |
| Returns the depth of the expression tree (counting only operator nodes).
|
|
size_t | size () const |
| Returns the number of operator nodes in the expression tree.
|
|
bool | has_var (const var &v) const |
| Whether the given variable name occurs in the expression.
|
|
bool | is_interval_cst () const |
| Whether the expression is constant (i.e., has no dimension leaves).
|
|
bool | is_interval_linear () const |
| Whether the expression is linear and there is no rounding.
|
|
bool | is_interval_polynomial () const |
| Whether the expression is polynomial and there is no rounding.
|
|
bool | is_interval_polyfrac () const |
| Whether the expression is a polynomial fraction and there is no rounding.
|
|
bool | is_scalar () const |
| Whether all occurring constants are scalar.
|
|
ap_texpr1_t * | get_ap_texpr1_t () |
| Returns a pointer to the internal APRON object stored in *this.
|
|
const ap_texpr1_t * | get_ap_texpr1_t () const |
| Returns a pointer to the internal APRON object stored in *this.
|
|
void | print (FILE *stream=stdout) const |
| Prints to a C stream.
|
|
Iterators to traverse and mutate an expression tree.
As const_iterator, but can be used to modify as well as traverse nodes.