|
|
| | iterator (texpr0 &e) |
| | Starts a new iterator at the root of the tree.
|
| |
| | iterator (const iterator &i) |
| | Duplicates the iterator.
|
| |
|
| iterator & | operator= (const builder &c) |
| | Replace the sub-expression at the iterator position with a (deep) copy of c.
|
| |
|
| coeff & | get_coeff () const |
| | Returns a (modifiable) reference to the coefficient of a constant 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_texpr0_t * | get_ap_texpr0_t () |
| | Returns a pointer to the internal APRON object stored in *this.
|
| |
| const ap_texpr0_t * | get_ap_texpr0_t () const |
| | Returns a pointer to the internal APRON object stored in *this.
|
| |
| | const_iterator (const texpr0 &e) |
| | Starts a new const_iterator at the root of a constant expression tree.
|
| |
| | const_iterator (const const_iterator &i) |
| | Duplicates the const_iterator.
|
| |
| 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.
|
| |
| 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 texpr0 &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.
|
| |
| ap_dim_t | max_dim () const |
| | Returns the maximal dimension occurring in the expression (or 0 if there is no variable).
|
| |
| bool | has_dim (ap_dim_t d) const |
| | Whether the given dimension occurs in the expression.
|
| |
| std::vector< ap_dim_t > | dimlist () const |
| | Returns a list of all dimensions occurring in the expression (in strict increasing order)
|
| |
| 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_texpr0_t * | get_ap_texpr0_t () |
| | Returns a pointer to the internal APRON object stored in *this.
|
| |
| const ap_texpr0_t * | get_ap_texpr0_t () const |
| | Returns a pointer to the internal APRON object stored in *this.
|
| |
| void | print (char **name_of_dim=NULL, 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.