Printable Class Reference
List of all members.
This class encapsulates the concept of `printability', it automatically associates the output operator to a derived class via a virtual method to get around the problem of polymorphic operator being illegal in C++.
Typical usage: (1) inherit from Printable Class A : Class Printable (2) define the method print() in A (3) use '<<' operator for objects of class A
Variants of print can be added for different flavors.
Public Member Functions
|virtual ||~Printable ()|
|virtual void ||print (std::ostream &) const =0|
Constructor & Destructor Documentation
Member Function Documentation
|virtual void Printable::print
The documentation for this class was generated from the following file: