#include <fixed_vector.hpp>
|
| fixed_vector (const allocator_type &allocator=allocator_type()) |
|
| fixed_vector (size_type initialSize, const allocator_type &allocator=allocator_type()) |
|
| fixed_vector (const T *first, const T *last, const allocator_type &allocator=allocator_type()) |
|
| fixed_vector (const fixed_vector &rhs, const allocator_type &allocator=allocator_type()) |
|
| fixed_vector (e_noinitialize n) |
|
fixed_vector & | operator= (const fixed_vector &rhs) |
|
void | copy (const vector &rhs) |
|
iterator | begin () |
|
const_iterator | begin () const |
|
iterator | end () |
|
const_iterator | end () const |
|
size_type | size () const |
|
bool | empty () const |
|
size_type | capacity () const |
|
T * | data () |
|
const T * | data () const |
|
T & | front () |
|
const T & | front () const |
|
T & | back () |
|
const T & | back () const |
|
T & | operator[] (size_type i) |
|
const T & | operator[] (size_type i) const |
|
T & | at (size_type i) |
|
const T & | at (size_type i) const |
|
void | push_back (const T &v) |
|
void | push_back () |
|
void | pop_back () |
|
void | assign (const T *first, const T *last) |
|
void | insert (size_type index, size_type n, const T &val) |
|
void | insert (iterator it, size_type n, const T &val) |
|
iterator | insert (iterator it, const T &val) |
|
iterator | erase (iterator it) |
|
iterator | erase (iterator first, iterator last) |
|
void | erase_unostdred (iterator it) |
|
void | resize (size_type n) |
|
void | reserve (size_type n) |
|
void | clear () |
|
void | reset () |
|
void | set_capacity (size_type newCapacity) |
|
size_type | index_of (const T &item, size_type index=0) const |
|
iterator | find (const T &item) |
|
const allocator_type & | get_allocator () const |
|
void | set_allocator (const allocator_type &allocator) |
|
bool | validate_iterator (const_iterator it) const |
|
size_type | get_high_watermark () const |
|
template<typename T, int TCapacity, bool TGrowOnOverflow, class TAllocator = std::allocator>
class std::fixed_vector< T, TCapacity, TGrowOnOverflow, TAllocator >
◆ const_iterator
◆ iterator
◆ fixed_vector() [1/5]
template<typename T , int TCapacity, bool TGrowOnOverflow, class TAllocator = std::allocator>
129 : base_vector(allocator)
◆ fixed_vector() [2/5]
template<typename T , int TCapacity, bool TGrowOnOverflow, class TAllocator = std::allocator>
std::fixed_vector< T, TCapacity, TGrowOnOverflow, TAllocator >::fixed_vector |
( |
size_type |
initialSize, |
|
|
const allocator_type & |
allocator = allocator_type() |
|
) |
| |
|
inlineexplicit |
133 : base_vector(initialSize, allocator)
◆ fixed_vector() [3/5]
template<typename T , int TCapacity, bool TGrowOnOverflow, class TAllocator = std::allocator>
std::fixed_vector< T, TCapacity, TGrowOnOverflow, TAllocator >::fixed_vector |
( |
const T * |
first, |
|
|
const T * |
last, |
|
|
const allocator_type & |
allocator = allocator_type() |
|
) |
| |
|
inline |
137 : base_vector(first, last, allocator)
◆ fixed_vector() [4/5]
template<typename T , int TCapacity, bool TGrowOnOverflow, class TAllocator = std::allocator>
141 : base_vector(rhs, allocator)
◆ fixed_vector() [5/5]
template<typename T , int TCapacity, bool TGrowOnOverflow, class TAllocator = std::allocator>
◆ assign()
303 TStorage::record_high_watermark();
T * m_capacityEnd
Definition: fixed_vector.hpp:114
int size_type
Definition: vector.hpp:43
bool invariant() const
Definition: fixed_vector.hpp:95
void copy_n(const T *first, size_t n, T *result)
Definition: algorithm.hpp:35
void clear()
Definition: vector.hpp:442
T * m_begin
Definition: fixed_vector.hpp:111
bool validate_iterator(const_iterator it) const
Definition: vector.hpp:484
void reallocate_discard_old(base_vector::size_type newCapacity)
Definition: fixed_vector.hpp:70
T * m_end
Definition: fixed_vector.hpp:112
◆ at() [1/2]
size_type size() const
Definition: vector.hpp:197
T * m_begin
Definition: fixed_vector.hpp:111
◆ at() [2/2]
size_type size() const
Definition: vector.hpp:197
T * m_begin
Definition: fixed_vector.hpp:111
◆ back() [1/2]
bool empty() const
Definition: vector.hpp:201
iterator end()
Definition: vector.hpp:189
◆ back() [2/2]
bool empty() const
Definition: vector.hpp:201
iterator end()
Definition: vector.hpp:189
◆ begin() [1/2]
T * m_begin
Definition: fixed_vector.hpp:111
◆ begin() [2/2]
T * m_begin
Definition: fixed_vector.hpp:111
◆ capacity()
T * m_capacityEnd
Definition: fixed_vector.hpp:114
int size_type
Definition: vector.hpp:43
T * m_begin
Definition: fixed_vector.hpp:111
◆ clear()
bool invariant() const
Definition: fixed_vector.hpp:95
◆ copy()
void std::vector< T, TAllocator, fixed_vector_storage< T, TAllocator, TCapacity, TGrowOnOverflow > >::copy |
( |
const vector< T, TAllocator, fixed_vector_storage< T, TAllocator, TCapacity, TGrowOnOverflow > > & |
rhs | ) |
|
|
inlineinherited |
177 TStorage::record_high_watermark();
void copy_construct_n(T *first, size_t n, T *result)
Definition: algorithm.hpp:43
size_type capacity() const
Definition: vector.hpp:205
int size_type
Definition: vector.hpp:43
bool invariant() const
Definition: fixed_vector.hpp:95
T * m_begin
Definition: fixed_vector.hpp:111
void reallocate_discard_old(base_vector::size_type newCapacity)
Definition: fixed_vector.hpp:70
T * m_end
Definition: fixed_vector.hpp:112
◆ data() [1/2]
bool empty() const
Definition: vector.hpp:201
T * m_begin
Definition: fixed_vector.hpp:111
◆ data() [2/2]
bool empty() const
Definition: vector.hpp:201
T * m_begin
Definition: fixed_vector.hpp:111
◆ empty()
T * m_begin
Definition: fixed_vector.hpp:111
T * m_end
Definition: fixed_vector.hpp:112
◆ end() [1/2]
T * m_end
Definition: fixed_vector.hpp:112
◆ end() [2/2]
T * m_end
Definition: fixed_vector.hpp:112
◆ erase() [1/2]
395 move_down_1(it, int_to_type<has_trivial_copy<T>::value>());
void destruct(T *mem)
Definition: algorithm.hpp:31
bool invariant() const
Definition: fixed_vector.hpp:95
bool validate_iterator(const_iterator it) const
Definition: vector.hpp:484
T * m_end
Definition: fixed_vector.hpp:112
iterator end()
Definition: vector.hpp:189
◆ erase() [2/2]
413 move_down(last, first, int_to_type<has_trivial_copy<T>::value>());
414 shrink(
size() - toRemove);
size_type size() const
Definition: vector.hpp:197
int size_type
Definition: vector.hpp:43
bool invariant() const
Definition: fixed_vector.hpp:95
T * m_begin
Definition: fixed_vector.hpp:111
bool validate_iterator(const_iterator it) const
Definition: vector.hpp:484
iterator end()
Definition: vector.hpp:189
◆ erase_unostdred()
T * iterator
Definition: vector.hpp:123
void pop_back()
Definition: vector.hpp:283
bool invariant() const
Definition: fixed_vector.hpp:95
bool validate_iterator(const_iterator it) const
Definition: vector.hpp:484
iterator end()
Definition: vector.hpp:189
◆ find()
iterator begin()
Definition: vector.hpp:181
T * iterator
Definition: vector.hpp:123
iterator end()
Definition: vector.hpp:189
◆ front() [1/2]
iterator begin()
Definition: vector.hpp:181
bool empty() const
Definition: vector.hpp:201
◆ front() [2/2]
iterator begin()
Definition: vector.hpp:181
bool empty() const
Definition: vector.hpp:201
◆ get_allocator()
TAllocator m_allocator
Definition: fixed_vector.hpp:115
◆ get_high_watermark()
490 return TStorage::get_high_watermark();
◆ index_of()
460 assert(index >= 0 && index <
size());
461 for ( ; index <
size(); ++index)
size_type size() const
Definition: vector.hpp:197
static const size_type npos
Definition: vector.hpp:44
T * m_begin
Definition: fixed_vector.hpp:111
◆ insert() [1/3]
314 reallocate(compute_new_capacity(prevSize + n), prevSize);
316 if (indexEnd > prevSize)
318 const size_type numCopy = prevSize - index;
319 const size_type numAppend = indexEnd - prevSize;
320 assert(numCopy >= 0 && numAppend >= 0);
321 assert(numAppend + numCopy == n);
323 for (
size_type i = 0; i < numAppend; ++i, ++itOut)
333 std::move_n(insertPos, prevSize - indexEnd, insertPos + n);
338 TStorage::record_high_watermark();
size_type size() const
Definition: vector.hpp:197
void copy_construct_n(T *first, size_t n, T *result)
Definition: algorithm.hpp:43
void copy_construct(T *mem, const T &orig)
Definition: algorithm.hpp:23
void reallocate(base_vector::size_type newCapacity, base_vector::size_type oldSize)
Definition: fixed_vector.hpp:50
T * iterator
Definition: vector.hpp:123
T * m_capacityEnd
Definition: fixed_vector.hpp:114
int size_type
Definition: vector.hpp:43
bool invariant() const
Definition: fixed_vector.hpp:95
void move_n(const T *from, size_t n, T *result)
Definition: algorithm.hpp:47
T * m_begin
Definition: fixed_vector.hpp:111
T * m_end
Definition: fixed_vector.hpp:112
◆ insert() [2/3]
void insert(size_type index, size_type n, const T &val)
Definition: vector.hpp:307
int size_type
Definition: vector.hpp:43
bool invariant() const
Definition: fixed_vector.hpp:95
T * m_begin
Definition: fixed_vector.hpp:111
bool validate_iterator(const_iterator it) const
Definition: vector.hpp:484
◆ insert() [3/3]
365 if(!has_trivial_copy<T>::value)
368 assert(index <= prevSize);
369 const size_type toMove = prevSize - index;
376 const size_t n =
reinterpret_cast<uintptr_t
>(
m_end) - reinterpret_cast<uintptr_t>(it);
377 Sys::MemMove(it + 1, it, n);
383 TStorage::record_high_watermark();
size_type size() const
Definition: vector.hpp:197
void construct(T *mem)
Definition: algorithm.hpp:27
T * m_capacityEnd
Definition: fixed_vector.hpp:114
int size_type
Definition: vector.hpp:43
bool invariant() const
Definition: fixed_vector.hpp:95
T * m_begin
Definition: fixed_vector.hpp:111
bool validate_iterator(const_iterator it) const
Definition: vector.hpp:484
T * m_end
Definition: fixed_vector.hpp:112
void move_n(const T *from, size_t n, T *result, int_to_type< false >)
Definition: utility.hpp:92
◆ operator=()
template<typename T , int TCapacity, bool TGrowOnOverflow, class TAllocator = std::allocator>
void copy(const vector &rhs)
Definition: vector.hpp:168
◆ operator[]() [1/2]
T & at(size_type i)
Definition: vector.hpp:250
◆ operator[]() [2/2]
T & at(size_type i)
Definition: vector.hpp:250
◆ pop_back()
bool empty() const
Definition: vector.hpp:201
void destruct(T *mem)
Definition: algorithm.hpp:31
T * m_end
Definition: fixed_vector.hpp:112
◆ push_back() [1/2]
273 TStorage::record_high_watermark();
void copy_construct(T *mem, const T &orig)
Definition: algorithm.hpp:23
T * m_capacityEnd
Definition: fixed_vector.hpp:114
T * m_end
Definition: fixed_vector.hpp:112
◆ push_back() [2/2]
281 TStorage::record_high_watermark();
void construct(T *mem)
Definition: algorithm.hpp:27
T * m_capacityEnd
Definition: fixed_vector.hpp:114
T * m_end
Definition: fixed_vector.hpp:112
◆ reserve()
size_type size() const
Definition: vector.hpp:197
void reallocate(base_vector::size_type newCapacity, base_vector::size_type oldSize)
Definition: fixed_vector.hpp:50
size_type capacity() const
Definition: vector.hpp:205
◆ reset()
bool invariant() const
Definition: fixed_vector.hpp:95
◆ resize()
size_type size() const
Definition: vector.hpp:197
void insert(size_type index, size_type n, const T &val)
Definition: vector.hpp:307
T value_type
Definition: vector.hpp:122
T * m_end
Definition: fixed_vector.hpp:112
◆ set_allocator()
TAllocator m_allocator
Definition: fixed_vector.hpp:115
◆ set_capacity()
size_type size() const
Definition: vector.hpp:197
void reallocate(base_vector::size_type newCapacity, base_vector::size_type oldSize)
Definition: fixed_vector.hpp:50
◆ size()
int size_type
Definition: vector.hpp:43
T * m_begin
Definition: fixed_vector.hpp:111
T * m_end
Definition: fixed_vector.hpp:112
◆ validate_iterator()
486 return it >=
begin() && it <=
end();
iterator begin()
Definition: vector.hpp:181
iterator end()
Definition: vector.hpp:189
◆ kInitialCapacity
◆ npos
const size_type std::base_vector::npos = size_type(-1) |
|
staticinherited |
Die Dokumentation für diese Klasse wurde erzeugt aufgrund der Datei: