LRDE Tiger Compiler  1.34a $Id: 7fef12e1f5fa43449d667a0eec1d837c40fc1202 $
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
misc::xalloc< StoredType >::swap_type Class Reference

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

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

Public Member Functions

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

Private Attributes

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

Detailed Description

template<class StoredType>
class misc::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.

Constructor & Destructor Documentation

template<class StoredType>
misc::xalloc< StoredType >::swap_type::swap_type ( const xalloc slot,
StoredType &  data 
)

Set data_ to data.

Member Function Documentation

template<class StoredType >
void misc::xalloc< StoredType >::swap_type::operator() ( std::ostream &  ostr) const
overridevirtual

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

Implements misc::iomanipulator.

References misc::xalloc< StoredType >::swap().

Member Data Documentation

template<class StoredType>
StoredType& misc::xalloc< StoredType >::swap_type::data_
private

Variable in which we store the data to be swapped.

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

The xalloced data.


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