18 virtual void operator()(std::ostream& o)
const = 0;
37 template <
typename StoredType>
104 long int index() const ATTRIBUTE_PURE;
106 StoredType& operator()(
std::ostream& ostr) const;
123 #include <vcsn/misc/xalloc.hxx>
swap_type swap(StoredType &data) const
A swapper.
StoredType & data_
Variable in which we return the xalloc data.
Handle the data to get from the xalloced place.
set_type(const xalloc &slot, StoredType &data)
Set data_ to data.
const xalloc & slot_
The xalloced data.
xalloc()
Allocates the slot.
Swap the data stored in the stream for a given one.
Handle the data to put in the xalloced place.
std::ostream & operator<<(std::ostream &os, direction d)
Pretty-printing.
const xalloc & slot_
The xalloced data.
Allocate slots in std::ostreams.
StoredType & data_
Data to put in the stream.
const xalloc & slot_
The xalloced data.
void operator()(std::ostream &ostr) const
Swap the data from the xalloced place for a given one.
const long int index_
The index of the slot.
StoredType & data_
Variable in which we store the data to be swapped.
get_type get(StoredType &data) const
A getter.
void operator()(std::ostream &ostr) const
Set the data in the xalloced place.
long int index() const ATTRIBUTE_PURE
The xalloc index.
swap_type(const xalloc &slot, StoredType &data)
Set data_ to data.
set_type set(StoredType &data) const
A setter.
get_type(const xalloc &slot, StoredType &data)
Set data_ to data.
virtual void operator()(std::ostream &o) const =0
void operator()(std::ostream &ostr) const
Get the data from the xalloced place.
Defines the operator() for the classes get_type, set_type and swap_type.