26 #ifndef MLN_TRAIT_SITE_SET_PRINT_HH
27 # define MLN_TRAIT_SITE_SET_PRINT_HH
35 # include <mln/trait/site_sets.hh>
36 # include <mln/metal/is_a.hh>
44 template <
typename E>
struct Site_Set;
54 void print(std::ostream& ostr = std::cout);
57 void print(
const Site_Set<S>& ima, std::ostream& ostr = std::cout);
60 # ifndef MLN_INCLUDE_ONLY
64 void print(std::ostream& ostr)
66 mlc_is_a(S, Site_Set)::check();
67 typedef mln::trait::site_set_<S> the;
69 <<
typename the::nsites() .name() <<
", "
70 <<
typename the::bbox() .name() <<
", "
71 <<
typename the::contents().name() <<
", "
72 <<
typename the::arity() .name() <<
" }" << std::endl;
77 void print(
const Site_Set<S>&, std::ostream& ostr)
82 # endif // ! MLN_INCLUDE_ONLY
91 #endif // ! MLN_TRAIT_SITE_SET_PRINT_HH