Class CompoundBodyVars#

Inheritance Relationships#

Base Type#

Derived Type#

Class Documentation#

class CompoundBodyVars : public Karana::Core::LockingBaseVars#

The Vars for the CompoundBody class.

Subclassed by Karana::Dynamics::CECompoundBodyVars

Public Functions

CompoundBodyVars(const kc::ks_ptr<CompoundBody> &body)#

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

Parameters:

body – The body associated with this CompoundBodyVars.

~CompoundBodyVars()#

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 Static Functions

static kc::ks_ptr<CompoundBodyVars> create(const kc::ks_ptr<CompoundBody> &body)#

Create an instance of the CompoundBodyVars.

Parameters:

body – The body associated with this CompoundBodyVars.

Returns:

A pointer to the newly created instance of CompoundBodyVars.