dlvhex
2.5.0
|
Printable object base class. More...
#include <include/dlvhex2/Printhelpers.h>
Public Types | |
typedef boost::function < std::ostream &(std::ostream &)> | PrintFn |
Public Member Functions | |
print_method_container (const PrintFn &fn) | |
Copy-constructor. | |
virtual | ~print_method_container () |
Destructor. | |
virtual std::ostream & | print (std::ostream &o) const |
Printer for an object to be implement by subclasses. | |
Data Fields | |
PrintFn | fn |
Printer function. |
Printable object base class.
Definition at line 130 of file Printhelpers.h.
typedef boost::function<std::ostream& (std::ostream&)> print_method_container::PrintFn |
Definition at line 134 of file Printhelpers.h.
print_method_container::print_method_container | ( | const PrintFn & | fn | ) | [inline] |
Copy-constructor.
t | print_method_container. |
Definition at line 139 of file Printhelpers.h.
virtual print_method_container::~print_method_container | ( | ) | [inline, virtual] |
Destructor.
Definition at line 141 of file Printhelpers.h.
virtual std::ostream& print_method_container::print | ( | std::ostream & | o | ) | const [inline, virtual] |
Printer for an object to be implement by subclasses.
o | Output stream to print to. |
o
. Implements print_container.
Definition at line 142 of file Printhelpers.h.
References fn.