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) | |
std::string | getRepresentation () const |
Return a string with a representation (for SWIG) | |
virtual void | print (std::ostream &stream=std::cout) const |
Print a destription of the object. | |
virtual void | repr (std::ostream &stream=std::cout) const |
Print a representation of the object. | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const PrintableObject &obj) |
Print a representation of the object to a stream. |
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.
void CasADi::PrintableObject::print | ( | std::ostream & | stream = std::cout | ) | const [virtual] |
Print a destription of the object.
Reimplemented in CasADi::SharedObject.
Definition at line 41 of file printable_object.cpp.
void CasADi::PrintableObject::repr | ( | std::ostream & | stream = std::cout | ) | const [virtual] |
Print a representation of the object.
Reimplemented in CasADi::SharedObject.
Definition at line 36 of file printable_object.cpp.
std::ostream& operator<< | ( | std::ostream & | stream, |
const PrintableObject & | obj | ||
) | [friend] |
Print a representation of the object to a stream.