25 template <
typename StoredType>
30 template <
typename StoredType>
37 template <
typename StoredType>
44 return (StoredType&)(ostr.pword(
index()));
52 template <
typename StoredType>
54 : slot_(slot), data_(data)
57 template <
typename StoredType>
64 template <
typename StoredType>
76 template <
typename StoredType>
82 template <
typename StoredType>
89 template <
typename StoredType>
101 template <
typename StoredType>
106 template <
typename StoredType>
113 template <
typename StoredType>
swap_type swap(StoredType &data) const
A swapper.
get_type get(StoredType &data) const
A getter.
std::ostream & operator<<(std::ostream &os, direction d)
Pretty-printing.
void swap(config::config_value &first, config::config_value &second)
long int index() const ATTRIBUTE_PURE
The xalloc index.
StoredType & data_
Variable in which we return the xalloc data.
swap_type(const xalloc &slot, StoredType &data)
Set data_ to data.
const xalloc & slot_
The xalloced data.
Defines the operator() for the classes get_type, set_type and swap_type.
void operator()(std::ostream &ostr) const
Get the data from the xalloced place.
void operator()(std::ostream &ostr) const
Swap the data from the xalloced place for a given one.
const xalloc & slot_
The xalloced data.
void operator()(std::ostream &ostr) const
Set the data in the xalloced place.
Handle the data to put in the xalloced place.
set_type set(StoredType &data) const
A setter.
const long int index_
The index of the slot.
StoredType & operator()(std::ostream &ostr) const
The stored data as an lvalue.
get_type(const xalloc &slot, StoredType &data)
Set data_ to data.
Swap the data stored in the stream for a given one.
Allocate slots in std::ostreams.
const xalloc & slot_
The xalloced data.
xalloc()
Allocates the slot.
StoredType & data_
Data to put in the stream.
set_type(const xalloc &slot, StoredType &data)
Set data_ to data.
Handle the data to get from the xalloced place.
StoredType & data_
Variable in which we store the data to be swapped.