PairWriter< _Pair, _FirstWriter, _SecondWriter > Class Template Reference
[Item readers and writers]


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
#include <lemon/bits/item_writer.h>

List of all members.

Public Member Functions

 PairWriter (const FirstWriter &_first_writer=FirstWriter(), const SecondWriter &_second_writer=SecondWriter())
 Constructor.
void write (std::ostream &os, const Value &value) const


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.


Generated on Thu Jun 4 04:06:43 2009 for LEMON by  doxygen 1.5.9