Limi
|
The printer base is what custom printers need to inherit from. More...
#include <generics.h>
Public Member Functions | |
virtual void | print (const Key &item, std::ostream &out) const =0 |
Prints an item to the out stream. More... | |
The printer base is what custom printers need to inherit from.
Derived classes need to override the print method using the virtual keyword. For printer_base the << operater is implemented.
Key | The class of the items that should be printed. |
|
pure virtual |
Prints an item to the out stream.
This class needs to be overridden.
Implemented in Limi::printer< Key >, and Limi::printer< unsigned >.