Printable Class Reference

#include <Printable.H>

List of all members.


Detailed Description

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

virtual Printable::~Printable (  )  [inline, virtual]


Member Function Documentation

virtual void Printable::print ( std::ostream &   )  const [pure virtual]

Referenced by operator<<().


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

Generated on Thu May 25 03:27:22 2017 for Chombo + EB + MF by  doxygen 1.5.5