fawkes::Printable Class Reference
Interface class for printable objects. More...
#include <geometry/printable.h>
Inheritance diagram for fawkes::Printable:

Public Member Functions | |
| Printable () | |
| Constructor. | |
| virtual | ~Printable () |
| Destructor. | |
Protected Member Functions | |
| virtual std::ostream & | print (std::ostream &stream) const =0 |
| This method is called by the overloaded <<-operator. | |
Friends | |
| std::ostream & | operator<< (std::ostream &stream, const Printable &p) |
| Overloaded <<-operator that calls the print() method of the given Printable object. | |
Detailed Description
Interface class for printable objects.Printable objects can be printed by means of the <<-operator.
Definition at line 37 of file printable.h.
Constructor & Destructor Documentation
| fawkes::Printable::Printable | ( | ) |
| fawkes::Printable::~Printable | ( | ) | [virtual] |
Member Function Documentation
| std::ostream & fawkes::Printable::print | ( | std::ostream & | stream | ) | const [protected, pure virtual] |
This method is called by the overloaded <<-operator.
- Parameters:
-
stream the output stream
- Returns:
- reference to the output stream
Implemented in fawkes::HomCoord, and fawkes::LineSegment.
Friends And Related Function Documentation
| std::ostream& operator<< | ( | std::ostream & | stream, | |
| const Printable & | p | |||
| ) | [friend] |
Overloaded <<-operator that calls the print() method of the given Printable object.
- Parameters:
-
stream the output stream p the Printable object
- Returns:
- the output stream
Definition at line 59 of file printable.cpp.
The documentation for this class was generated from the following files:
- src/libs/geometry/printable.h
- src/libs/geometry/printable.cpp

