dlvhex  2.5.0
print_stream_container< T > Struct Template Reference

Printable object base class. More...

#include <include/dlvhex2/Printhelpers.h>

Inheritance diagram for print_stream_container< T >:
Collaboration diagram for print_stream_container< T >:

Public Member Functions

 print_stream_container (const T &t)
 Copy-constructor.
virtual ~print_stream_container ()
 Destructor.
virtual std::ostream & print (std::ostream &o) const
 Printer for an object to be implement by subclasses.

Data Fields

t
 Element to print.

Detailed Description

template<typename T>
struct print_stream_container< T >

Printable object base class.

Definition at line 115 of file Printhelpers.h.


Constructor & Destructor Documentation

template<typename T >
print_stream_container< T >::print_stream_container ( const T &  t) [inline]

Copy-constructor.

Parameters:
tprint_container.

Definition at line 122 of file Printhelpers.h.

template<typename T >
virtual print_stream_container< T >::~print_stream_container ( ) [inline, virtual]

Destructor.

Definition at line 124 of file Printhelpers.h.


Member Function Documentation

template<typename T >
virtual std::ostream& print_stream_container< T >::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 125 of file Printhelpers.h.

References print_stream_container< T >::t.


Field Documentation

template<typename T >
T print_stream_container< T >::t

Element to print.

Definition at line 119 of file Printhelpers.h.

Referenced by print_stream_container< T >::print().


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