Open CASCADE Technology 6.6.0
Public Member Functions
Expr_SingleRelation Class Reference

#include <Expr_SingleRelation.hxx>

Inheritance diagram for Expr_SingleRelation:
Inheritance graph
[legend]

Public Member Functions

void SetFirstMember (const Handle< Expr_GeneralExpression > &exp)
 Defines the first member of the relation

void SetSecondMember (const Handle< Expr_GeneralExpression > &exp)
 Defines the second member of the relation

Handle_Expr_GeneralExpression FirstMember () const
 Returns the first member of the relation

Handle_Expr_GeneralExpression SecondMember () const
 Returns the second member of the relation

Standard_Boolean IsLinear () const
 Tests if <me> is linear between its NamedUnknowns.

Standard_Integer NbOfSubRelations () const
 Returns the number of relations contained in <me>.

Standard_Integer NbOfSingleRelations () const
 Returns the number of SingleRelations contained in
<me> (Always 1).

Handle_Expr_GeneralRelation SubRelation (const Standard_Integer index) const
 Returns the relation denoted by <index> in <me>.
An exception is raised if index is out of range.

Standard_Boolean Contains (const Handle< Expr_GeneralExpression > &exp) const
 Tests if <me> contains <exp>.

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


Member Function Documentation

Standard_Boolean Expr_SingleRelation::Contains ( const Handle< Expr_GeneralExpression > &  exp) const [virtual]

Implements Expr_GeneralRelation.

Handle_Expr_GeneralExpression Expr_SingleRelation::FirstMember ( ) const
Standard_Boolean Expr_SingleRelation::IsLinear ( ) const [virtual]

Implements Expr_GeneralRelation.

Standard_Integer Expr_SingleRelation::NbOfSingleRelations ( ) const [virtual]

Implements Expr_GeneralRelation.

Standard_Integer Expr_SingleRelation::NbOfSubRelations ( ) const [virtual]

Implements Expr_GeneralRelation.

void Expr_SingleRelation::Replace ( const Handle< Expr_NamedUnknown > &  var,
const Handle< Expr_GeneralExpression > &  with 
) [virtual]

Implements Expr_GeneralRelation.

Handle_Expr_GeneralExpression Expr_SingleRelation::SecondMember ( ) const
void Expr_SingleRelation::SetFirstMember ( const Handle< Expr_GeneralExpression > &  exp)
void Expr_SingleRelation::SetSecondMember ( const Handle< Expr_GeneralExpression > &  exp)
Handle_Expr_GeneralRelation Expr_SingleRelation::SubRelation ( const Standard_Integer  index) const [virtual]

Implements Expr_GeneralRelation.


The documentation for this class was generated from the following file:
 All Data Structures Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines