Lines Matching refs:m_array
31 m_array(array), m_size(size) {} in pod_array_adaptor()
34 const T& operator [] (unsigned i) const { return m_array[i]; }
35 T& operator [] (unsigned i) { return m_array[i]; }
36 const T& at(unsigned i) const { return m_array[i]; } in at()
37 T& at(unsigned i) { return m_array[i]; } in at()
38 T value_at(unsigned i) const { return m_array[i]; } in value_at()
41 T* m_array;
56 memcpy(m_array, c, sizeof(T) * Size); in pod_auto_array()
61 memcpy(m_array, c, sizeof(T) * Size);
66 const T& operator [] (unsigned i) const { return m_array[i]; }
67 T& operator [] (unsigned i) { return m_array[i]; }
68 const T& at(unsigned i) const { return m_array[i]; } in at()
69 T& at(unsigned i) { return m_array[i]; } in at()
70 T value_at(unsigned i) const { return m_array[i]; } in value_at()
73 T m_array[Size];
88 void add(const T& v) { m_array[m_size++] = v; } in add()
89 void push_back(const T& v) { m_array[m_size++] = v; } in push_back()
93 const T& operator [] (unsigned i) const { return m_array[i]; }
94 T& operator [] (unsigned i) { return m_array[i]; }
95 const T& at(unsigned i) const { return m_array[i]; } in at()
96 T& at(unsigned i) { return m_array[i]; } in at()
97 T value_at(unsigned i) const { return m_array[i]; } in value_at()
100 T m_array[Size];
112 ~pod_array() { pod_allocator<T>::deallocate(m_array, m_size); } in ~pod_array()
113 pod_array() : m_array(0), m_size(0) {} in pod_array()
116 m_array(pod_allocator<T>::allocate(size)), in pod_array()
121 m_array(pod_allocator<T>::allocate(v.m_size)), in pod_array()
124 memcpy(m_array, v.m_array, sizeof(T) * m_size); in pod_array()
131 pod_allocator<T>::deallocate(m_array, m_size); in resize()
132 m_array = pod_allocator<T>::allocate(m_size = size); in resize()
138 memcpy(m_array, v.m_array, sizeof(T) * m_size);
143 const T& operator [] (unsigned i) const { return m_array[i]; }
144 T& operator [] (unsigned i) { return m_array[i]; }
145 const T& at(unsigned i) const { return m_array[i]; } in at()
146 T& at(unsigned i) { return m_array[i]; } in at()
147 T value_at(unsigned i) const { return m_array[i]; } in value_at()
149 const T* data() const { return m_array; } in data()
150 T* data() { return m_array; } in data()
152 T* m_array;
167 ~pod_vector() { pod_allocator<T>::deallocate(m_array, m_capacity); } in ~pod_vector()
168 pod_vector() : m_size(0), m_capacity(0), m_array(0) {} in pod_vector()
188 memset(m_array, 0, sizeof(T) * m_size); in zero()
191 void add(const T& v) { m_array[m_size++] = v; } in add()
192 void push_back(const T& v) { m_array[m_size++] = v; } in push_back()
199 const T& operator [] (unsigned i) const { return m_array[i]; }
200 T& operator [] (unsigned i) { return m_array[i]; }
201 const T& at(unsigned i) const { return m_array[i]; } in at()
202 T& at(unsigned i) { return m_array[i]; } in at()
203 T value_at(unsigned i) const { return m_array[i]; } in value_at()
205 const T* data() const { return m_array; } in data()
206 T* data() { return m_array; } in data()
215 T* m_array; variable
225 pod_allocator<T>::deallocate(m_array, m_capacity); in capacity()
227 m_array = m_capacity ? pod_allocator<T>::allocate(m_capacity) : 0; in capacity()
249 memcpy(data, m_array, m_size * sizeof(T)); in resize()
250 pod_allocator<T>::deallocate(m_array, m_capacity); in resize()
251 m_array = data; in resize()
264 m_array(pod_allocator<T>::allocate(m_capacity)) {} in pod_vector()
270 m_array(v.m_capacity ? pod_allocator<T>::allocate(v.m_capacity) : 0) in pod_vector()
272 memcpy(m_array, v.m_array, sizeof(T) * v.m_size); in pod_vector()
280 if(v.m_size) memcpy(m_array, v.m_array, sizeof(T) * v.m_size);
287 if(m_size) memcpy(ptr, m_array, m_size * sizeof(T)); in serialize()
296 if(byte_size) memcpy(m_array, data, byte_size * sizeof(T)); in deserialize()
305 m_array[m_size] = val; in insert_at()
309 memmove(m_array + pos + 1, m_array + pos, (m_size - pos) * sizeof(T)); in insert_at()
310 m_array[pos] = val; in insert_at()
1090 m_array(array), m_start(start), m_size(size) in range_adaptor()
1094 const value_type& operator [] (unsigned i) const { return m_array[m_start + i]; }
1095 value_type& operator [] (unsigned i) { return m_array[m_start + i]; }
1096 const value_type& at(unsigned i) const { return m_array[m_start + i]; } in at()
1097 value_type& at(unsigned i) { return m_array[m_start + i]; } in at()
1098 value_type value_at(unsigned i) const { return m_array[m_start + i]; } in value_at()
1101 Array& m_array;