24 template<
typename T,
unsigned S>
48 const_iterator
begin()
const;
50 const_iterator
end()
const;
56 size_type
size()
const;
60 const T&
get(
unsigned i)
const;
67 void set(
unsigned i,
const T& coord);
76 template<
typename TEXT_STREAM,
typename T,
unsigned S>
77 TEXT_STREAM& operator<<(TEXT_STREAM& os, const FixedArray<T, S>& coords);
91 template<
typename T,
unsigned S>
96 template<
typename T,
unsigned S>
99 std::copy(other.
begin(), other.
end(), this->begin());
102 template<
typename T,
unsigned S>
109 template<
typename T,
unsigned S>
116 template<
typename T,
unsigned S>
123 template<
typename T,
unsigned S>
130 template<
typename T,
unsigned S>
136 template<
typename T,
unsigned S>
143 template<
typename T,
unsigned S>
147 return this->max_size();;
150 template<
typename T,
unsigned S>
156 template<
typename T,
unsigned S>
162 template<
typename T,
unsigned S>
168 template<
typename T,
unsigned S>
174 template<
typename T,
unsigned S>
177 return &(m_vector[0]);
180 template<
typename T,
unsigned S>
183 return const_cast<T*
>(
static_cast<const FixedArray<T, S>*
>(
this)->cArray());
186 template<
typename T,
unsigned S>
192 template<
typename T,
unsigned S>
196 std::copy(other.
begin(), other.
end(), this->begin());
200 template<
typename TEXT_STREAM,
typename T,
unsigned S>
201 TEXT_STREAM& operator<<(TEXT_STREAM& os, const FixedArray<T, S>& coords)
204 for (
unsigned i = 0; i < S; i++) {
std::random_access_iterator_tag iterator_category
Definition: fixed_array.h:39
T value_type
Definition: fixed_array.h:34
T * pointer
Definition: fixed_array.h:32
const T * cArray() const
Definition: fixed_array.h:175
Definition: basic_shared_pointer.h:20
T & reference
Definition: fixed_array.h:33
size_type max_size() const
Definition: fixed_array.h:138
std::ptrdiff_t difference_type
Definition: fixed_array.h:38
FixedArray()
Definition: fixed_array.h:92
const T * const_pointer
Definition: fixed_array.h:36
Self_t & operator=(const Self_t &other)
Definition: fixed_array.h:193
const T * const_iterator
Definition: fixed_array.h:41
const T & const_reference
Definition: fixed_array.h:37
T & get(unsigned i)
Definition: fixed_array.h:151
const_iterator end() const
Definition: fixed_array.h:118
bool empty() const
Definition: fixed_array.h:131
unsigned size_type
Definition: fixed_array.h:35
Provides a generic fixed-size array of items.
Definition: fixed_array.h:25
void set(unsigned i, const T &coord)
Definition: fixed_array.h:187
T m_vector[S]
Definition: fixed_array.h:72
size_type size() const
Definition: fixed_array.h:145
T & operator[](unsigned i)
Definition: fixed_array.h:163
const_iterator begin() const
Definition: fixed_array.h:104
T * iterator
Definition: fixed_array.h:40