25 #include "shared_object.hpp"
26 #include "generic_shared_impl.hpp"
32 return (*this)->class_name();
39 (*this)->disp(stream, more);
50 #ifdef CASADI_WITH_THREADSAFE_SYMBOLICS
51 std::lock_guard<std::mutex> lock(*mutex_);
56 shared.
disp(stream, more);
60 #pragma GCC diagnostic push
61 #pragma GCC diagnostic ignored "-Wattributes"
66 #pragma GCC diagnostic pop
SharedObjectInternal * get() const
Get a const pointer to the node.
bool is_null() const
Is a null pointer?
SharedObjectInternal * raw_
GenericShared implements a reference counting framework similar for efficient and.
std::string class_name() const
Get class name.
void disp(std::ostream &stream, bool more=false) const
Print a description of the object.
void print_ptr(std::ostream &stream=casadi::uout()) const
void disp(std::ostream &stream, bool more) const override
Print a description of the object.