Class SubGraphVars#

Inheritance Relationships#

Base Type#

Class Documentation#

class SubGraphVars : public Karana::Dynamics::SubTreeVars#

The Vars for the SubGraph class.

Public Functions

SubGraphVars(const kc::ks_ptr<SubGraph> &sg)#

SubGraphVars constructor. The constructor is not meant to be called directly. Please use the create(…) method instead to create an instance.

Parameters:

sg – The subgraph associated with this SubGraphVars.

~SubGraphVars()#

Destructor.

virtual kc::NestedVars getAllVars() const override#

Get all the Vars that this VarHolder has.

Returns:

A map of Vars, where the Var name is the key and the Var is the value.

Public Members

kc::ks_ptr<Karana::Core::Var_T<int>> cutjoints_n_Q#

The cutjoints nQ.

kc::ks_ptr<Karana::Core::Var_T<int>> cutjoints_n_U#

The cutjoints nU.

Public Static Functions

static kc::ks_ptr<SubGraphVars> create(const kc::ks_ptr<SubGraph> &sg)#

Create an instance of the SubGraphVars.

Parameters:

sg – The subgraph associated with this SubGraphVars.

Returns:

A pointer to the newly created instance of SubGraphVars.