#include <shared_object.hpp>
Definition at line 164 of file shared_object.hpp.
◆ weak_ref_type
◆ class_name()
std::string casadi::WeakRefInternal::class_name |
( |
| ) |
const |
|
inlineoverridevirtual |
◆ debug_repr()
Definition at line 62 of file generic_shared_internal.hpp.
164 return str( (casadi_int)(i)) +
"/" +
static_cast<const Internal*
>(
this)->class_name();
std::string str(const T &v)
String representation, any type.
◆ destroySingleton()
◆ disp()
void casadi::WeakRefInternal::disp |
( |
std::ostream & |
stream, |
|
|
bool |
more |
|
) |
| const |
|
overridevirtual |
◆ getCount()
◆ initSingleton()
Called in the constructor of singletons to avoid that the counter reaches zero
Definition at line 71 of file generic_shared_internal.hpp.
72 casadi_assert_dev(
static_cast<Internal*
>(
this)->count==0);
73 static_cast<Internal*
>(
this)->count++;
◆ shared_from_this() [1/2]
Definition at line 83 of file generic_shared_internal.hpp.
84 casadi_assert_dev(B::test_cast(
static_cast<Internal*
>(
this)));
86 ret.own(
static_cast<Internal*
>(
this));
◆ shared_from_this() [2/2]
Definition at line 92 of file generic_shared_internal.hpp.
93 casadi_assert_dev(B::test_cast(
static_cast<const Internal*
>(
this)));
95 ret.own(
const_cast<Internal*
>(
static_cast<const Internal*
>(
this)));
◆ weak()
◆ raw_
The documentation for this class was generated from the following files: