Template Struct type_caster< Karana::Core::ks_ptr< Karana::Core::Var< T, quantity > > >

Template Struct type_caster< Karana::Core::ks_ptr< Karana::Core::Var< T, quantity > > >#

Inheritance Relationships#

Base Type#

  • public type_caster_holder< Karana::Core::Var< T, quantity >, Karana::Core::ks_ptr< Karana::Core::Var< T, quantity > > >

Struct Documentation#

template<typename T, Karana::Math::Quantity quantity>
struct type_caster<Karana::Core::ks_ptr<Karana::Core::Var<T, quantity>>> : public type_caster_holder<Karana::Core::Var<T, quantity>, Karana::Core::ks_ptr<Karana::Core::Var<T, quantity>>>#

Preserve quantity annotations for shared holders.

Template Parameters:
  • T – Numeric magnitude type.

  • quantity – Native Math quantity identifier.

Public Static Functions

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

Cast a held quantity Var and resolve its unit specification.

Parameters:
  • value – Native quantity holder.

  • policy – Python ownership policy.

  • parent – Parent Python object for reference policies.

Returns:

Python instance with resolved units.

Public Static Attributes

static auto name = make_caster<Karana::Core::Var<T, quantity>>::name#

Public annotation for the held quantity Var.