#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... | |
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... | |
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 |
Definition at line 80 of file generic_shared_impl.hpp.
|
inherited |
Definition at line 109 of file generic_shared_impl.hpp.
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.
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.
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.
|
friend |
Definition at line 124 of file generic_shared.hpp.