Limi
Public Member Functions | List of all members
Limi::printer_base< Key > Struct Template Referenceabstract

The printer base is what custom printers need to inherit from. More...

#include <generics.h>

Inheritance diagram for Limi::printer_base< Key >:
Inheritance graph
[legend]

Public Member Functions

virtual void print (const Key &item, std::ostream &out) const =0
 Prints an item to the out stream. More...
 

Detailed Description

template<class Key>
struct Limi::printer_base< Key >

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.

Template Parameters
KeyThe class of the items that should be printed.

Member Function Documentation

template<class Key>
virtual void Limi::printer_base< Key >::print ( const Key &  item,
std::ostream &  out 
) const
pure virtual

Prints an item to the out stream.

This class needs to be overridden.

Implemented in Limi::printer< Key >, and Limi::printer< unsigned >.


The documentation for this struct was generated from the following file: