#include <generic_shared.hpp>
Definition at line 142 of file generic_shared.hpp.
Public Member Functions | |
GenericWeakRef (int dummy=0) | |
Default constructor. More... | |
GenericWeakRef (Shared shared) | |
Construct from a shared object (also implicit type conversion) More... | |
Shared | shared () const |
Get a shared (owning) reference. More... | |
bool | alive () const |
Check if alive. More... | |
bool | shared_if_alive (Shared &shared) const |
Thread-safe alternative to alive()/shared() More... | |
GenericWeakRefInternal< Shared, Internal > * | operator-> () |
Access functions of the node. More... | |
const GenericWeakRefInternal< Shared, Internal > * | operator-> () const |
Const access functions of the node. More... | |
void | own (Internal *node) |
void | assign (Internal *node) |
Assign the node to a node class pointer without reference counting. More... | |
Internal * | get () const |
Get a const pointer to the node. More... | |
casadi_int | getCount () const |
Get the reference count. More... | |
void | swap (GenericShared &other) |
Swap content with another instance. More... | |
std::string | debug_repr () const |
bool | is_null () const |
Is a null pointer? More... | |
casadi_int | __hash__ () const |
Returns a number that is unique for a given Node. More... | |
GenericWeakRef< Shared, Internal > * | weak () |
Get a weak reference to the object. More... | |
Protected Member Functions | |
void | count_up () |
void | count_down () |
Friends | |
class | GenericSharedInternal< Shared, Internal > |
casadi::GenericWeakRef< Shared, Internal >::GenericWeakRef | ( | int | dummy = 0 | ) |
Extra doc: https://github.com/casadi/casadi/wiki/L_ay
Definition at line 142 of file generic_shared_impl.hpp.
casadi::GenericWeakRef< Shared, Internal >::GenericWeakRef | ( | Shared | shared | ) |
Extra doc: https://github.com/casadi/casadi/wiki/L_az
Definition at line 189 of file generic_shared_impl.hpp.
|
inherited |
If the Object does not point to any node, "0" is returned.
Extra doc: https://github.com/casadi/casadi/wiki/L_av
Definition at line 137 of file generic_shared_impl.hpp.
bool casadi::GenericWeakRef< Shared, Internal >::alive |
Extra doc: https://github.com/casadi/casadi/wiki/L_b1
Definition at line 147 of file generic_shared_impl.hpp.
|
inherited |
improper use will cause memory leaks!
Extra doc: https://github.com/casadi/casadi/wiki/L_at
Definition at line 75 of file generic_shared_impl.hpp.
|
protectedinherited |
Definition at line 42 of file generic_shared_impl.hpp.
|
protectedinherited |
Definition at line 32 of file generic_shared_impl.hpp.
|
inherited |
Definition at line 80 of file generic_shared_impl.hpp.
|
inherited |
Definition at line 104 of file generic_shared_impl.hpp.
Referenced by casadi::CallSX::get_output().
|
inherited |
Definition at line 127 of file generic_shared_impl.hpp.
Referenced by casadi::MXNode::~MXNode().
|
inherited |
Definition at line 109 of file generic_shared_impl.hpp.
Referenced by casadi::FunctionInternal::add_embedded(), casadi::FunctionInternal::alloc(), casadi::Nlpsol::callback(), casadi::DaeBuilderInternal::clear_cache(), casadi::Switch::codegen_body(), casadi::Conic::Conic(), casadi::conic_debug(), casadi::DaeBuilderInternal::export_fmu(), casadi::FunctionInternal::finalize(), casadi::Switch::find(), casadi::FunctionInternal::FunctionInternal(), casadi::FunctionInternal::get_n_in(), casadi::Switch::get_n_in(), casadi::FunctionInternal::get_n_out(), casadi::Switch::get_n_out(), casadi::FunctionInternal::get_name_in(), casadi::FunctionInternal::get_name_out(), casadi::FunctionInternal::get_partition(), casadi::FunctionInternal::get_sparsity_in(), casadi::Switch::get_sparsity_in(), casadi::FunctionInternal::get_sparsity_out(), casadi::Switch::get_sparsity_out(), casadi::MXFunction::get_stats(), casadi::Integrator::init(), casadi::Nlpsol::init(), casadi::Rootfinder::init(), casadi::Switch::init(), casadi::SLEQPInterface::init(), casadi::SnoptInterface::init(), casadi::SundialsInterface::init(), casadi::FastNewton::init(), casadi::Newton::init(), casadi::Scpgen::init(), casadi::BonminInterface::intermediate_callback(), casadi::IpoptInterface::intermediate_callback(), casadi::XFunction< DerivedType, MatType, NodeType >::jac(), casadi::FunctionInternal::jac_is_symm(), casadi::FunctionInternal::jac_sparsity(), casadi::OracleFunction::jit_dependencies(), casadi::SparsityInternal::maxtrans(), casadi::BlazingSplineFunction::merge(), casadi::Function::operator==(), casadi::DaeBuilderInternal::oracle(), casadi::SLEQPInterface::set_work(), casadi::SnoptInterface::set_work(), casadi::OptiNode::solve(), casadi::KnitroInterface::solve(), casadi::SLEQPInterface::solve(), casadi::WorhpInterface::solve(), casadi::FunctionInternal::sp_forward_block(), casadi::FunctionInternal::sp_reverse(), and casadi::Sparsity::uni_coloring().
GenericWeakRefInternal< Shared, Internal > * casadi::GenericWeakRef< Shared, Internal >::operator-> |
Extra doc: https://github.com/casadi/casadi/wiki/L_b2
Definition at line 183 of file generic_shared_impl.hpp.
References casadi::GenericShared< Shared, Internal >::operator->().
const GenericWeakRefInternal< Shared, Internal > * casadi::GenericWeakRef< Shared, Internal >::operator-> |
Extra doc: https://github.com/casadi/casadi/wiki/L_b3
Definition at line 176 of file generic_shared_impl.hpp.
References casadi::GenericShared< Shared, Internal >::operator->().
|
inherited |
Assign the node to a node class pointer (or null)
Definition at line 68 of file generic_shared_impl.hpp.
Referenced by casadi::Fmu::create(), casadi::Function::create(), casadi::Importer::create(), casadi::Linsol::create(), casadi::Resource::create(), casadi::GenericType::create(), casadi::Sparsity::create(), casadi::FunctionInternal::deserialize(), casadi::Linsol::deserialize(), casadi::FmuFunction::factory(), casadi::FmuFunction::get_forward(), casadi::FmuFunction::get_jacobian(), casadi::LinearInterpolant::get_jacobian(), casadi::CallSX::get_output(), casadi::FmuFunction::get_reverse(), and casadi::MXFunction::init().
Shared casadi::GenericWeakRef< Shared, Internal >::shared |
Extra doc: https://github.com/casadi/casadi/wiki/L_b0
Definition at line 152 of file generic_shared_impl.hpp.
bool casadi::GenericWeakRef< Shared, Internal >::shared_if_alive | ( | Shared & | shared | ) | const |
Extra doc: https://github.com/casadi/casadi/wiki/L_29i
Definition at line 161 of file generic_shared_impl.hpp.
Referenced by casadi::Nlpsol::kkt().
|
inherited |
Definition at line 120 of file generic_shared_impl.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_aw
Definition at line 132 of file generic_shared_impl.hpp.
|
friend |
Definition at line 136 of file generic_shared.hpp.