C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2
TreeIntervalNode Class Referenceabstract

Node of interval expression tree. More...

#include <pars_equation_tree.h>

+ Inheritance diagram for TreeIntervalNode:
+ Collaboration diagram for TreeIntervalNode:

Public Member Functions

virtual TeIntervalNodeType IsA () const =0
 Get type of a tree node.
 
virtual TreeIntervalNodeDuplicate () const =0
 Get a copy of the object.
 
virtual EquTreeResCode GetFirstValue (double &) const =0
 Get the first variable.

 
virtual EquTreeResCode GetSecondValue (double &) const =0
 Get the second variable.
 
virtual void GetString (c3d::string_t &) const =0
 Get a string.
 
virtual c3d::BoolPair SetValue (double f, double s, const std::set< ItIntervalTreeVariable * > &unfixedIVars, const std::set< ItTreeVariable * > &unfixedDVars)=0
 Set value. More...
 
virtual void ReplaceParVariable (const c3d::string_t &varName, ItTreeVariable &newVar)=0
 Replace variables. More...
 
- Public Member Functions inherited from TapeBase
 TapeBase (RegistrableRec regs=noRegistrable)
 Constructor.
 
 TapeBase (const TapeBase &)
 Copy-constructor.
 
virtual ~TapeBase ()
 Destructor.
 
RegistrableRec GetRegistrable () const
 Whether the stream class is registrable.
 
void SetRegistrable (RegistrableRec regs=registrable) const
 Set the state of registration of the stream class.
 
virtual const char * GetPureName (const VersionContainer &) const
 Get the class name.
 
virtual bool IsFamilyRegistrable () const
 Whether the object belongs to a registrable family.
 

Detailed Description

Node of interval expression tree.

Node of interval expression tree.

Member Function Documentation

◆ SetValue()

virtual c3d::BoolPair TreeIntervalNode::SetValue ( double  f,
double  s,
const std::set< ItIntervalTreeVariable * > &  unfixedIVars,
const std::set< ItTreeVariable * > &  unfixedDVars 
)
pure virtual

Set value.

Try to set value [f;s] to a tree node.

Parameters
[in]f- Lower bound of the interval.
[in]s- Upper bound of the interval.
[in]unfixedIVars- Set of interval variables, which can be changed.
[in]unfixedDVars- Set of real variables, which can be changed. \access public
Returns
True if it was succeeded to set value.

Implemented in IntervalIdentNode, and IntervalConstNode.

◆ ReplaceParVariable()

virtual void TreeIntervalNode::ReplaceParVariable ( const c3d::string_t varName,
ItTreeVariable newVar 
)
pure virtual

Replace variables.

Replace all variables with the specified name by a new variable.

Parameters
[out]varName- Name.
[out]newVar- New variable.

Implemented in IntervalConstNode, and IntervalIdentNode.


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