33 #ifndef __H__UG_attachment_io_traits
34 #define __H__UG_attachment_io_traits
39 template <
class TAttachment>
84 out << v[0] <<
" " << v[1];
101 out << v[0] <<
" " << v[1] <<
" " << v[2];
105 in >> v[0] >> v[1] >> v[2];
118 out << v[0] <<
" " << v[1] <<
" " << v[2] <<
" " << v[3];
122 in >> v[0] >> v[1] >> v[2] >> v[3];
130 template <
typename T>
144 out << v.size() <<
" ";
145 for (
size_t i = 0; i < v.size(); ++i)
153 for (
size_t i = 0; i < sz; ++i)
A generic specialization of IAttachment.
Definition: attachment_pipe.h:263
a mathematical Vector with N entries.
Definition: math_vector.h:97
Definition: smart_pointer.h:814
attachment_value_traits< value_type >::const_reference const_reference_type
Definition: attachment_io_traits.h:53
static void read_value(std::istream &in, reference_type v)
Definition: attachment_io_traits.h:56
static void write_value(std::ostream &out, const_reference_type v)
Definition: attachment_io_traits.h:55
attachment_value_traits< value_type >::reference reference_type
Definition: attachment_io_traits.h:52
bool value_type
Definition: attachment_io_traits.h:51
attachment_value_traits< value_type >::const_reference const_reference_type
Definition: attachment_io_traits.h:140
std::vector< T > value_type
Definition: attachment_io_traits.h:138
static void read_value(std::istream &in, reference_type v)
Definition: attachment_io_traits.h:148
static void write_value(std::ostream &out, const_reference_type v)
Definition: attachment_io_traits.h:142
attachment_value_traits< value_type >::reference reference_type
Definition: attachment_io_traits.h:139
attachment_value_traits< value_type >::reference reference_type
Definition: attachment_io_traits.h:62
vector1 value_type
Definition: attachment_io_traits.h:61
attachment_value_traits< value_type >::const_reference const_reference_type
Definition: attachment_io_traits.h:63
static void write_value(std::ostream &out, const_reference_type v)
Definition: attachment_io_traits.h:65
static void read_value(std::istream &in, reference_type v)
Definition: attachment_io_traits.h:69
attachment_value_traits< value_type >::reference reference_type
Definition: attachment_io_traits.h:79
vector2 value_type
Definition: attachment_io_traits.h:78
attachment_value_traits< value_type >::const_reference const_reference_type
Definition: attachment_io_traits.h:80
static void write_value(std::ostream &out, const_reference_type v)
Definition: attachment_io_traits.h:82
static void read_value(std::istream &in, reference_type v)
Definition: attachment_io_traits.h:86
static void read_value(std::istream &in, reference_type v)
Definition: attachment_io_traits.h:103
static void write_value(std::ostream &out, const_reference_type v)
Definition: attachment_io_traits.h:99
vector3 value_type
Definition: attachment_io_traits.h:95
attachment_value_traits< value_type >::const_reference const_reference_type
Definition: attachment_io_traits.h:97
attachment_value_traits< value_type >::reference reference_type
Definition: attachment_io_traits.h:96
vector4 value_type
Definition: attachment_io_traits.h:112
static void write_value(std::ostream &out, const_reference_type v)
Definition: attachment_io_traits.h:116
attachment_value_traits< value_type >::const_reference const_reference_type
Definition: attachment_io_traits.h:114
static void read_value(std::istream &in, reference_type v)
Definition: attachment_io_traits.h:120
attachment_value_traits< value_type >::reference reference_type
Definition: attachment_io_traits.h:113
Definition: attachment_io_traits.h:40
static void write_value(std::ostream &out, const_reference_type v)
Definition: attachment_io_traits.h:45
static void read_value(std::istream &in, reference_type v)
Definition: attachment_io_traits.h:46
attachment_value_traits< value_type >::reference reference_type
Definition: attachment_io_traits.h:42
attachment_value_traits< value_type >::const_reference const_reference_type
Definition: attachment_io_traits.h:43
TAttachment::ValueType value_type
Definition: attachment_io_traits.h:41
TValue & reference
Definition: attachment_pipe.h:112
const TValue & const_reference
Definition: attachment_pipe.h:113