Vcsn  2.2a
Be Rational
vcsn::xalloc< StoredType >::swap_type Class Reference

Swap the data stored in the stream for a given one. More...

Inheritance diagram for vcsn::xalloc< StoredType >::swap_type:
Collaboration diagram for vcsn::xalloc< StoredType >::swap_type:

Public Member Functions

 swap_type (const xalloc &slot, StoredType &data)
 Set data_ to data. More...
 
void operator() (std::ostream &ostr) const
 Swap the data from the xalloced place for a given one. More...
 

Private Attributes

const xallocslot_
 The xalloced data. More...
 
StoredType & data_
 Variable in which we store the data to be swapped. More...
 

Detailed Description

template<typename StoredType>
class vcsn::xalloc< StoredType >::swap_type

Swap the data stored in the stream for a given one.

This inner class is used only with the swap method.

Definition at line 82 of file xalloc.hh.

Constructor & Destructor Documentation

template<typename StoredType >
vcsn::xalloc< StoredType >::swap_type::swap_type ( const xalloc slot,
StoredType &  data 
)

Set data_ to data.

Definition at line 102 of file xalloc.hxx.

Member Function Documentation

template<typename StoredType >
void vcsn::xalloc< StoredType >::swap_type::operator() ( std::ostream &  ostr) const
virtual

Swap the data from the xalloced place for a given one.

Implements vcsn::iomanipulator.

Definition at line 108 of file xalloc.hxx.

Member Data Documentation

template<typename StoredType>
StoredType& vcsn::xalloc< StoredType >::swap_type::data_
private

Variable in which we store the data to be swapped.

Definition at line 94 of file xalloc.hh.

template<typename StoredType>
const xalloc& vcsn::xalloc< StoredType >::swap_type::slot_
private

The xalloced data.

Definition at line 92 of file xalloc.hh.


The documentation for this class was generated from the following files: