25 #include "shared_object.hpp"
26 #include "generic_shared_impl.hpp"
32 return (*this)->class_name();
39 (*this)->disp(stream, more);
56 #pragma GCC diagnostic push
57 #pragma GCC diagnostic ignored "-Wattributes"
62 #pragma GCC diagnostic pop
SharedObjectInternal * get() const
Get a const pointer to the node.
bool is_null() const
Is a null pointer?
SharedObjectInternal * raw_
virtual void disp(std::ostream &stream, bool more) const =0
Print a description of the object.
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.