Open CASCADE Technology  6.5.4
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines
Public Member Functions | Protected Member Functions
Expr_PolyExpression Class Reference

#include <Expr_PolyExpression.hxx>

Inheritance diagram for Expr_PolyExpression:
Inheritance graph
[legend]

Public Member Functions

Standard_Integer NbOperands () const
 returns the number of operands contained in <me>

const
Handle_Expr_GeneralExpression & 
Operand (const Standard_Integer index) const
 Returns the <index>-th operand used in <me>.
An exception is raised if index is out of range

void SetOperand (const Handle< Expr_GeneralExpression > &exp, const Standard_Integer index)
 Sets the <index>-th operand used in <me>.
An exception is raised if <index> is out of range
Raises InvalidOperand if <exp> contains <me>.

Standard_Integer NbSubExpressions () const
 returns the number of sub-expressions contained
in <me> ( >= 2)

const
Handle_Expr_GeneralExpression & 
SubExpression (const Standard_Integer I) const
 Returns the sub-expression denoted by in <me>
Raises OutOfRange if > NbSubExpressions(me)

Standard_Boolean ContainsUnknowns () const
 Does <me> contains NamedUnknown ?

Standard_Boolean Contains (const Handle< Expr_GeneralExpression > &exp) const
 Tests if <exp> is contained in <me>.

void Replace (const Handle< Expr_NamedUnknown > &var, const Handle< Expr_GeneralExpression > &with)
 Replaces all occurences of with <with> in <me>
Raises InvalidOperand if <with> contains <me>.

Handle_Expr_GeneralExpression Simplified () const
 Returns a GeneralExpression after replacement of
NamedUnknowns by an associated expression and after
values computation.

Protected Member Functions

 Expr_PolyExpression ()
 initialize an empty list of operands.

void AddOperand (const Handle< Expr_GeneralExpression > &exp)
 Adds an operand to the list of <me>.

void RemoveOperand (const Standard_Integer index)
 Remove the operand denoted by <index> from the list of
<me>.
Raises exception if <index> is out of range or if
removing operand intend to leave only one or no
operand.


Constructor & Destructor Documentation


Member Function Documentation

const Handle_Expr_GeneralExpression& Expr_PolyExpression::Operand ( const Standard_Integer  index) const
Handle_Expr_GeneralExpression Expr_PolyExpression::Simplified ( ) const [virtual]
const Handle_Expr_GeneralExpression& Expr_PolyExpression::SubExpression ( const Standard_Integer  I) const [virtual]

The documentation for this class was generated from the following file: