Base class for objects that have a natural string representation. More...
#include <printable_object.hpp>
Public Member Functions | |
std::string | getDescription () const |
Return a string with a destription (for SWIG) More... | |
std::string | getRepresentation () const |
Return a string with a representation (for SWIG) More... | |
virtual void | print (std::ostream &stream=std::cout) const |
Print a destription of the object. More... | |
virtual void | repr (std::ostream &stream=std::cout) const |
Print a representation of the object. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const PrintableObject &obj) |
Print a representation of the object to a stream. More... | |
Base class for objects that have a natural string representation.
Definition at line 38 of file printable_object.hpp.
string CasADi::PrintableObject::getDescription | ( | ) | const |
Return a string with a destription (for SWIG)
Definition at line 52 of file printable_object.cpp.
string CasADi::PrintableObject::getRepresentation | ( | ) | const |
Return a string with a representation (for SWIG)
Definition at line 46 of file printable_object.cpp.
|
virtual |
Print a destription of the object.
Reimplemented in CasADi::SharedObject.
Definition at line 41 of file printable_object.cpp.
|
virtual |
Print a representation of the object.
Reimplemented in CasADi::SharedObject.
Definition at line 36 of file printable_object.cpp.
|
friend |
Print a representation of the object to a stream.