Fawkes API
Fawkes Development Version
|
Interface class for printable objects. More...
#include <>>
Public Member Functions | |
Printable () | |
Constructor. More... | |
virtual | ~Printable () |
Destructor. More... | |
Protected Member Functions | |
virtual std::ostream & | print (std::ostream &stream) const =0 |
This method is called by the overloaded <<-operator. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &stream, const Printable &p) |
Overloaded <<-operator that calls the print() method of the given Printable object. More... | |
Interface class for printable objects.
Printable objects can be printed by means of the <<-operator.
Definition at line 37 of file printable.h.
fawkes::Printable::Printable | ( | ) |
Constructor.
Definition at line 42 of file printable.cpp.
|
virtual |
Destructor.
Definition at line 47 of file printable.cpp.
|
protectedpure virtual |
This method is called by the overloaded <<-operator.
stream | the output stream |
Implemented in fawkes::HomCoord, and fawkes::LineSegment.
|
friend |
Overloaded <<-operator that calls the print() method of the given Printable object.
stream | the output stream |
p | the Printable object |
Definition at line 59 of file printable.cpp.