#include <generic_shared_internal.hpp>
Internal class for the reference counting framework, see comments on the public class.
Definition at line 43 of file generic_shared_internal.hpp.
Public Member Functions | |
| GenericSharedInternal () | |
| Default constructor. More... | |
| GenericSharedInternal (const GenericSharedInternal &node) | |
| Copy constructor. More... | |
| GenericSharedInternal & | operator= (const GenericSharedInternal &node) |
| Assignment operator. More... | |
| virtual | ~GenericSharedInternal ()=0 |
| Destructor. More... | |
| casadi_int | getCount () const |
| Get the reference count. More... | |
| std::string | debug_repr (const Internal *) const |
| GenericWeakRef< Shared, Internal > * | weak () |
| Get a weak reference to the object. More... | |
Protected Member Functions | |
| void | initSingleton () |
| void | destroySingleton () |
| template<class B > | |
| B | shared_from_this () |
| Get a shared object from the current internal object. More... | |
| template<class B > | |
| const B | shared_from_this () const |
| Get a shared object from the current internal object. More... | |
Friends | |
| class | GenericShared< Shared, Internal > |
| casadi::GenericSharedInternal< Shared, Internal >::GenericSharedInternal |
Definition at line 156 of file generic_shared_internal.hpp.
| casadi::GenericSharedInternal< Shared, Internal >::GenericSharedInternal | ( | const GenericSharedInternal< Shared, Internal > & | node | ) |
Definition at line 141 of file generic_shared_internal.hpp.
|
pure virtual |
Definition at line 168 of file generic_shared_internal.hpp.
| std::string casadi::GenericSharedInternal< Shared, Internal >::debug_repr | ( | const Internal * | i | ) | const |
Definition at line 162 of file generic_shared_internal.hpp.
References casadi::str().
|
inlineprotected |
Called in the destructor of singletons
Definition at line 77 of file generic_shared_internal.hpp.
| casadi_int casadi::GenericSharedInternal< Shared, Internal >::getCount |
Definition at line 186 of file generic_shared_internal.hpp.
|
inlineprotected |
Called in the constructor of singletons to avoid that the counter reaches zero
Definition at line 71 of file generic_shared_internal.hpp.
| GenericSharedInternal< Shared, Internal > & casadi::GenericSharedInternal< Shared, Internal >::operator= | ( | const GenericSharedInternal< Shared, Internal > & | node | ) |
Definition at line 149 of file generic_shared_internal.hpp.
|
inlineprotected |
Definition at line 83 of file generic_shared_internal.hpp.
|
inlineprotected |
Definition at line 92 of file generic_shared_internal.hpp.
| GenericWeakRef< Shared, Internal > * casadi::GenericSharedInternal< Shared, Internal >::weak |
Extra doc: https://github.com/casadi/casadi/wiki/L_1ai
Definition at line 191 of file generic_shared_internal.hpp.
|
friend |
Definition at line 208 of file generic_shared_internal.hpp.