Public Member Functions | Friends | List of all members
CasADi::PrintableObject Class Reference

Base class for objects that have a natural string representation. More...

#include <printable_object.hpp>

Inheritance diagram for CasADi::PrintableObject:
Inheritance graph
[legend]

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...
 

Detailed Description

Base class for objects that have a natural string representation.

Author
Joel Andersson
Date
2010

Definition at line 38 of file printable_object.hpp.

Member Function Documentation

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.

Friends And Related Function Documentation

std::ostream& operator<< ( std::ostream &  stream,
const PrintableObject obj 
)
friend

Print a representation of the object to a stream.


The documentation for this class was generated from the following files:


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:35:27