C3D Toolkit  Kernel - 117982, Vision - 2.9.2.2

Interval variable as a node of a binary tree. More...

#include <pars_equation_tree.h>

+ Inheritance diagram for IntervalIdentNode:
+ Collaboration diagram for IntervalIdentNode:

Public Member Functions

 IntervalIdentNode (ItIntervalTreeVariable &ident)
 Constructor. More...
 
 IntervalIdentNode (const IntervalIdentNode &other)
 Copy-constructor.
 
Functions of the interval expression tree node.
TeIntervalNodeType IsA () const override
 Get type of a tree node.
 
IntervalIdentNodeDuplicate () const override
 Get a copy of the object.
 
EquTreeResCode GetFirstValue (double &) const override
 Get the first variable.

 
EquTreeResCode GetSecondValue (double &) const override
 Get the second variable.
 
void GetString (c3d::string_t &) const override
 Get a string.
 
std::pair< bool, bool > 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 &, ItTreeVariable &) override
 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

Interval variable as a node of a binary tree.

Tree node is an interval variable.

Constructor & Destructor Documentation

◆ IntervalIdentNode()

IntervalIdentNode::IntervalIdentNode ( ItIntervalTreeVariable ident)
inline

Constructor.

Constructor by an interval variable.

Parameters
[in]ident- Interval variable.

Member Function Documentation

◆ SetValue()

std::pair<bool, bool> IntervalIdentNode::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 IntervalIdentNode::ReplaceParVariable ( const c3d::string_t varName,
ItTreeVariable newVar 
)
inlineoverridevirtual

Replace variables.

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

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

Implements TreeIntervalNode.


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