#include <fixed_list.hpp>
template<typename T, size_t TCapacity>
class std::fixed_list< T, TCapacity >
◆ const_iterator
template<typename T , size_t TCapacity>
◆ index_type
template<typename T , size_t TCapacity>
◆ iterator
template<typename T , size_t TCapacity>
◆ size_type
template<typename T , size_t TCapacity>
◆ value_type
template<typename T , size_t TCapacity>
◆ fixed_list() [1/4]
template<typename T , size_t TCapacity>
◆ fixed_list() [2/4]
template<typename T , size_t TCapacity>
template<class InputIterator >
void assign(InputIterator first, InputIterator last)
Definition: fixed_list.hpp:237
◆ fixed_list() [3/4]
template<typename T , size_t TCapacity>
Definition: type_traits.hpp:45
◆ fixed_list() [4/4]
template<typename T , size_t TCapacity>
◆ ~fixed_list()
template<typename T , size_t TCapacity>
void clear()
Definition: fixed_list.hpp:244
◆ assign()
template<typename T , size_t TCapacity>
template<class InputIterator >
void std::fixed_list< T, TCapacity >::assign |
( |
InputIterator |
first, |
|
|
InputIterator |
last |
|
) |
| |
|
inline |
239 while (first != last) {
void clear()
Definition: fixed_list.hpp:244
void push_back(const T &value)
Definition: fixed_list.hpp:192
◆ back() [1/2]
template<typename T , size_t TCapacity>
172 { assert(!
empty());
return get_prev(get_root())->value; }
bool empty() const
Definition: fixed_list.hpp:257
◆ back() [2/2]
template<typename T , size_t TCapacity>
174 { assert(!
empty());
return get_prev(get_root())->value; }
bool empty() const
Definition: fixed_list.hpp:257
◆ begin() [1/2]
template<typename T , size_t TCapacity>
160 {
return iterator(get_next(get_root()),
this); }
node_iterator< node *, T *, T & > iterator
Definition: fixed_list.hpp:129
◆ begin() [2/2]
template<typename T , size_t TCapacity>
node_iterator< const node *, const T *, const T & > const_iterator
Definition: fixed_list.hpp:130
◆ clear()
template<typename T , size_t TCapacity>
245 node* root = get_root();
246 node* iter = get_next(root);
247 while (iter != root) {
248 node* next = get_next(iter);
◆ empty()
template<typename T , size_t TCapacity>
258 {
return m_num_nodes == 0; }
◆ end() [1/2]
template<typename T , size_t TCapacity>
164 {
return iterator(get_root(),
this); }
node_iterator< node *, T *, T & > iterator
Definition: fixed_list.hpp:129
◆ end() [2/2]
template<typename T , size_t TCapacity>
node_iterator< const node *, const T *, const T & > const_iterator
Definition: fixed_list.hpp:130
◆ erase() [1/2]
template<typename T , size_t TCapacity>
219 assert(it.node()->in_list());
220 assert(it.list() ==
this);
223 node* erase_node = it_erase.node();
224 m_free_indices[++m_free_index_top] = erase_node->index;
226 destruct_node(erase_node);
bool empty() const
Definition: fixed_list.hpp:257
node_iterator< node *, T *, T & > iterator
Definition: fixed_list.hpp:129
◆ erase() [2/2]
template<typename T , size_t TCapacity>
231 while (first != last)
232 first =
erase(first);
iterator erase(iterator it)
Definition: fixed_list.hpp:217
◆ front() [1/2]
template<typename T , size_t TCapacity>
168 { assert(!
empty());
return get_next(get_root())->value; }
bool empty() const
Definition: fixed_list.hpp:257
◆ front() [2/2]
template<typename T , size_t TCapacity>
170 { assert(!
empty());
return get_next(get_root())->value; }
bool empty() const
Definition: fixed_list.hpp:257
◆ insert()
template<typename T , size_t TCapacity>
210 assert(m_free_index_top > 0);
211 const int index = m_free_indices[m_free_index_top--];
212 node* new_node = construct_node(value, index);
213 link_before(new_node, pos.node());
node_iterator< node *, T *, T & > iterator
Definition: fixed_list.hpp:129
◆ operator=()
template<typename T , size_t TCapacity>
Definition: type_traits.hpp:45
◆ pop_back()
template<typename T , size_t TCapacity>
202 node* back_node = get_prev(get_root());
203 m_free_indices[++m_free_index_top] = back_node->index;
205 destruct_node(back_node);
bool empty() const
Definition: fixed_list.hpp:257
◆ pop_front()
template<typename T , size_t TCapacity>
186 node* front_node = get_next(get_root());
187 m_free_indices[++m_free_index_top] = front_node->index;
189 destruct_node(front_node);
bool empty() const
Definition: fixed_list.hpp:257
◆ push_back()
template<typename T , size_t TCapacity>
193 assert(m_free_index_top > 0);
194 const int index = m_free_indices[m_free_index_top--];
195 node* new_node = construct_node(value, index);
197 assert(m_num_nodes <= TCapacity + 1);
198 link_before(new_node, get_root());
◆ push_front()
template<typename T , size_t TCapacity>
177 assert(m_free_index_top > 0);
178 const int index = m_free_indices[m_free_index_top--];
179 node* new_node = construct_node(value, index);
181 assert(m_num_nodes <= TCapacity);
182 link_before(new_node, get_next(get_root()));
◆ size()
template<typename T , size_t TCapacity>
260 {
return m_num_nodes; }
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: