dlvhex  2.5.0
print_method_container Struct Reference

Printable object base class. More...

#include <include/dlvhex2/Printhelpers.h>

Inheritance diagram for print_method_container:
Collaboration diagram for print_method_container:

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.

Detailed Description

Printable object base class.

Definition at line 130 of file Printhelpers.h.


Member Typedef Documentation

typedef boost::function<std::ostream& (std::ostream&)> print_method_container::PrintFn

Definition at line 134 of file Printhelpers.h.


Constructor & Destructor Documentation

Copy-constructor.

Parameters:
tprint_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.


Member Function Documentation

virtual std::ostream& print_method_container::print ( std::ostream &  o) const [inline, virtual]

Printer for an object to be implement by subclasses.

Parameters:
oOutput stream to print to.
Returns:
o.

Implements print_container.

Definition at line 142 of file Printhelpers.h.

References fn.


Field Documentation

Printer function.

Definition at line 136 of file Printhelpers.h.

Referenced by print().


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