Vcsn  2.0
Be Rational
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
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<class 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 83 of file xalloc.hh.

Constructor & Destructor Documentation

template<class 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<class 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<class StoredType >
StoredType& vcsn::xalloc< StoredType >::swap_type::data_
private

Variable in which we store the data to be swapped.

Definition at line 95 of file xalloc.hh.

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

The xalloced data.

Definition at line 93 of file xalloc.hh.


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