Template Struct type_caster< Karana::Core::ks_ptr< Karana::Core::NumericVar< T > > >

Template Struct type_caster< Karana::Core::ks_ptr< Karana::Core::NumericVar< T > > >#

Inheritance Relationships#

Base Type#

  • public type_caster_holder< Karana::Core::NumericVar< T >, Karana::Core::ks_ptr< Karana::Core::NumericVar< T > > >

Struct Documentation#

template<typename T>
struct type_caster<Karana::Core::ks_ptr<Karana::Core::NumericVar<T>>> : public type_caster_holder<Karana::Core::NumericVar<T>, Karana::Core::ks_ptr<Karana::Core::NumericVar<T>>>#

Emit the same generic annotation for Vars held by ks_ptr.

Template Parameters:

T – The value returned by the Var’s callable.

Public Static Functions

static inline handle cast(const Karana::Core::ks_ptr<Karana::Core::NumericVar<T>> &value, return_value_policy policy, handle parent)#

Cast a held numeric Var, resolving units for quantity subclasses.

Parameters:
  • value – Native shared holder.

  • policy – Python ownership policy.

  • parent – Parent Python object for reference policies.

Returns:

The registered Python instance for value.

Public Static Attributes

static auto name = make_caster<Karana::Core::NumericVar<T>>::name#

The public generic annotation for the held Var.