33 #ifndef __H__UG_field__
34 #define __H__UG_field__
37 #include <boost/serialization/split_member.hpp>
54 inline T&
at(
size_t x,
size_t y);
55 inline const T&
at(
size_t x,
size_t y)
const;
64 void fill(
size_t x,
size_t y,
size_t w,
size_t h,
const T& value);
66 void copy(
size_t x,
size_t y,
const Field& f);
70 inline size_t array_index(
size_t x,
size_t y)
const;
75 template <
class Archive>
76 void save( Archive& ar,
const unsigned int version)
const;
78 template <
class Archive>
79 void load( Archive& ar,
const unsigned int version);
81 BOOST_SERIALIZATION_SPLIT_MEMBER()
95 #include "field_impl.hpp"
size_t size() const
Definition: field.h:59
size_t width() const
Definition: field.h:57
T * m_data
Definition: field.h:87
size_t m_height
Definition: field.h:85
~Field()
Definition: field_impl.hpp:79
size_t capacity() const
Definition: field.h:60
T & at(size_t x, size_t y)
Definition: field_impl.hpp:113
void save(Archive &ar, const unsigned int version) const
Definition: field_impl.hpp:180
void copy(size_t x, size_t y, const Field &f)
Definition: field_impl.hpp:147
size_t array_index(size_t x, size_t y) const
Definition: field_impl.hpp:172
size_t m_width
Definition: field.h:84
const T * data() const
Definition: field.h:62
void fill_all(const T &value)
Definition: field_impl.hpp:139
size_t height() const
Definition: field.h:58
friend class boost::serialization::access
Definition: field.h:73
void fill(size_t x, size_t y, size_t w, size_t h, const T &value)
Definition: field_impl.hpp:123
Field()
Definition: field_impl.hpp:42
T * data()
Definition: field.h:61
size_t m_capacity
Definition: field.h:86
void load(Archive &ar, const unsigned int version)
Definition: field_impl.hpp:193
void swap(Field &f)
Definition: field_impl.hpp:162
void resize_no_copy(size_t width, size_t height)
Definition: field_impl.hpp:100
Field & operator=(const Field &field)
Definition: field_impl.hpp:85