C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

Interval of simple expressions. More...

#include <pars_equation_tree.h>

+ Inheritance diagram for IntervalConstNode:
+ Collaboration diagram for IntervalConstNode:

Public Member Functions

 IntervalConstNode (BTreeNode &firstValue, BTreeNode &secondValue)
 Constructor. More...
 
 IntervalConstNode (const IntervalConstNode &other)
 Constructor. More...
 
virtual ~IntervalConstNode ()
 Destructor. More...
 
Functions of interval expression tree node.
TeIntervalNodeType IsA () const override
 Get type of a tree node.
 
IntervalConstNodeDuplicate () const override
 Get a copy of the object.
 
EquTreeResCode GetFirstValue (double &v) const override
 Get the first variable.

 
EquTreeResCode GetSecondValue (double &v) const override
 Get the second variable.
 
void GetString (c3d::string_t &) const override
 Get a string.
 
c3d::BoolPair SetValue (double f, double s, const std::set< ItIntervalTreeVariable * > &unfixedIVars, const std::set< ItTreeVariable * > &unfixedDVars) override
 Set value. More...
 
void ReplaceParVariable (const c3d::string_t &varName, ItTreeVariable &newVar) override
 Replace variables. More...
 
virtual void ReplaceIntVariable (const c3d::string_t &, ItIntervalTreeVariable &)
 Replace variables. More...
 
Functions of operation [].
const BTreeNodeGetFirstTree () const
 Get the first node.
 
const BTreeNodeGetSecondTree () const
 Get the second node.
 
BTreeNodeSetFirstTree ()
 Get the first node.
 
BTreeNodeSetSecondTree ()
 Get the second node.
 
- 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

Interval of simple expressions.

operation [] - obtaining of interval of simple expressions.

Constructor & Destructor Documentation

◆ IntervalConstNode() [1/2]

IntervalConstNode::IntervalConstNode ( BTreeNode firstValue,
BTreeNode secondValue 
)
inline

Constructor.

Constructor.

Parameters
[in]firstValue- The first node.
[in]secondValue- The second node.

◆ IntervalConstNode() [2/2]

IntervalConstNode::IntervalConstNode ( const IntervalConstNode other)
inline

Constructor.

Copy-constructor.

Parameters
[in]other- Object to copy.

◆ ~IntervalConstNode()

virtual IntervalConstNode::~IntervalConstNode ( )
virtual

Destructor.

Destructor.

Member Function Documentation

◆ SetValue()

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

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.

Implements TreeIntervalNode.

◆ ReplaceParVariable()

void IntervalConstNode::ReplaceParVariable ( const c3d::string_t varName,
ItTreeVariable newVar 
)
overridevirtual

Replace variables.

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

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

Implements TreeIntervalNode.

◆ ReplaceIntVariable()

virtual void IntervalConstNode::ReplaceIntVariable ( const c3d::string_t ,
ItIntervalTreeVariable  
)
inlinevirtual

Replace variables.

Replace all variables with the specified names by a new interval variable.


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