Weak reference type. More...
#include <shared_object.hpp>
A weak reference to a GenericShared
Extra doc: https://github.com/casadi/casadi/wiki/L_ax
Definition at line 114 of file shared_object.hpp.


Public Member Functions | |
| WeakRef (int dummy=0) | |
| WeakRef (SharedObject shared) | |
| SharedObject | shared () const |
| Get a shared (owning) reference. More... | |
| bool | alive () const |
| Check if alive. More... | |
| bool | shared_if_alive (SharedObject &shared) const |
| Thread-safe alternative to alive()/shared() More... | |
| GenericWeakRefInternal< SharedObject, SharedObjectInternal > * | operator-> () |
| Access functions of the node. More... | |
| const GenericWeakRefInternal< SharedObject, SharedObjectInternal > * | operator-> () const |
| Const access functions of the node. More... | |
| void | own (SharedObjectInternal *node) |
| void | assign (SharedObjectInternal *node) |
| Assign the node to a node class pointer without reference counting. More... | |
| SharedObjectInternal * | 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< SharedObject, SharedObjectInternal > * | weak () |
| Get a weak reference to the object. More... | |
Protected Member Functions | |
| void | count_up () |
| void | count_down () |
|
inline |
Definition at line 117 of file shared_object.hpp.
|
inline |
Definition at line 119 of file shared_object.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 123 of file generic_shared_impl.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_b1
Definition at line 165 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 96 of file generic_shared_impl.hpp.
|
protectedinherited |
Definition at line 133 of file generic_shared_impl.hpp.
|
protectedinherited |
Definition at line 132 of file generic_shared_impl.hpp.
|
inherited |
Definition at line 112 of file generic_shared_impl.hpp.
|
inherited |
Definition at line 99 of file generic_shared_impl.hpp.
|
inherited |
Definition at line 102 of file generic_shared_impl.hpp.
|
inherited |
Definition at line 116 of file generic_shared_impl.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_b2
Definition at line 175 of file generic_shared_impl.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_b3
Definition at line 180 of file generic_shared_impl.hpp.
|
inherited |
Assign the node to a node class pointer (or null)
Definition at line 89 of file generic_shared_impl.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_b0
Definition at line 160 of file generic_shared_impl.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_29i
Definition at line 170 of file generic_shared_impl.hpp.
|
inherited |
Definition at line 105 of file generic_shared_impl.hpp.
|
inherited |
Extra doc: https://github.com/casadi/casadi/wiki/L_aw
Definition at line 130 of file generic_shared_impl.hpp.