PairWriter Class Template Reference
[Item Readers and Writers]

#include <lemon/bits/item_writer.h>

List of all members.


Detailed Description

template<typename _Pair, typename _FirstWriter = DefaultWriter<typename _Pair::first_type>, typename _SecondWriter = DefaultWriter<typename _Pair::second_type>>
class lemon::PairWriter< _Pair, _FirstWriter, _SecondWriter >

Writer for standard pairs. The representation of a pair is
 ( first_value => second_value ) 
.
Author:
Balazs Dezso


Public Member Functions

 PairWriter (const FirstWriter &_first_writer=FirstWriter(), const SecondWriter &_second_writer=SecondWriter())
 Constructor.
void write (std::ostream &os, const Value &value) const
 Writes the pair from the given stream.


Constructor & Destructor Documentation

PairWriter ( const FirstWriter &  _first_writer = FirstWriter(),
const SecondWriter &  _second_writer = SecondWriter() 
) [inline]

Constructor for the PairWriter.


Member Function Documentation

void write ( std::ostream &  os,
const Value &  value 
) const [inline]

Writes the pair from the given stream.


The documentation for this class was generated from the following file:
Generated on Tue Oct 31 09:51:29 2006 for LEMON by  doxygen 1.5.1