26 #ifndef MLN_TRAIT_VALUE_PRINT_HH
27 # define MLN_TRAIT_VALUE_PRINT_HH
35 # include <mln/trait/value_.hh>
36 # include <mln/metal/is_a.hh>
44 template <
typename E>
struct Value;
54 void print(std::ostream& ostr);
57 void print(
const Value<V>& v, std::ostream& ostr);
60 # ifndef MLN_INCLUDE_ONLY
64 void print(std::ostream& ostr)
66 mlc_is_a(V, Value)::check();
67 typedef mln::trait::value_<V> the;
69 <<
typename the::nature().name() <<
", "
70 <<
typename the::kind() .name() <<
", "
71 <<
typename the::quant() .name() <<
", "
72 <<
"nbits=" << the::nbits <<
", "
73 <<
"card=" << the::card <<
", "
79 void print(
const Value<V>&, std::ostream& ostr)
84 # endif // ! MLN_INCLUDE_ONLY
93 #endif // ! MLN_TRAIT_VALUE_PRINT_HH