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;
114 get_type get(StoredType& data) const;
123 #include <vcsn/misc/xalloc.hxx> Allocate slots in std::ostreams.
Handle the data to get from the xalloced place.
const xalloc & slot_
The xalloced data.
Request the set implementation (bool weights).
std::ostream & operator<<(std::ostream &os, direction d)
Pretty-printing.
StoredType & data_
Variable in which we store the data to be swapped.
StoredType & data_
Variable in which we return the xalloc data.
Handle the data to put in the xalloced place.
Swap the data stored in the stream for a given one.
virtual void operator()(std::ostream &o) const =0
const xalloc & slot_
The xalloced data.
StoredType & data_
Data to put in the stream.
void swap(config::value &first, config::value &second)
const xalloc & slot_
The xalloced data.
Defines the operator() for the classes get_type, set_type and swap_type.
const long int index_
The index of the slot.