mn::container::basic_fixed_vector< T, TCapacity, TAllocator > Class Template Reference

#include <mn_fixed_vector.hpp>

+ Inheritance diagram for mn::container::basic_fixed_vector< T, TCapacity, TAllocator >:
+ Collaboration diagram for mn::container::basic_fixed_vector< T, TCapacity, TAllocator >:

Public Types

using iterator_category = random_access_iterator_tag
 
using value_type = T
 
using pointer = value_type *
 
using reference = value_type &
 
using difference_type = ptrdiff_t
 
using iterator = pointer
 
using const_iterator = const pointer
 
using allocator_type = TAllocator
 
using size_type = mn::size_t
 
using self_type = basic_fixed_vector< T, TCapacity, TAllocator >
 
- Public Types inherited from mn::container::basic_vector< T, memory::default_allocator, fixed_vector_storage< T, memory::default_allocator, TCapacity > >
using iterator_category = random_access_iterator_tag
 
using value_type = T
 
using pointer = T *
 
using reference = T &
 
using lreference = T &&
 
using const_reference = const T &
 
using difference_type = mn::ptrdiff_t
 
using iterator = pointer
 
using const_iterator = const pointer
 
using allocator_type = memory::default_allocator
 
using size_type = mn::size_t
 

Public Member Functions

 basic_fixed_vector (const allocator_type &allocator=allocator_type())
 
 basic_fixed_vector (size_type initialSize, const allocator_type &allocator=allocator_type())
 
 basic_fixed_vector (const pointer first, const pointer last, const allocator_type &allocator=allocator_type())
 
 basic_fixed_vector (const self_type &rhs, const allocator_type &allocator=allocator_type())
 
self_typeoperator= (const self_type &rhs)
 
iterator begin ()
 
iterator end ()
 
size_type size () const
 
bool empty () const
 
size_type capacity ()
 
void clear ()
 
const allocator_typeget_allocator () const
 
void set_allocator (const allocator_type &allocator)
 
- Public Member Functions inherited from mn::container::basic_vector< T, memory::default_allocator, fixed_vector_storage< T, memory::default_allocator, TCapacity > >
 basic_vector (const allocator_type &allocator=allocator_type())
 
 basic_vector (size_type initialSize, const allocator_type &allocator=allocator_type())
 
 basic_vector (const_iterator first, const_iterator last, const allocator_type &allocator=allocator_type())
 
 basic_vector (const basic_vector &rhs, const allocator_type &allocator=allocator_type())
 
 ~basic_vector ()
 
void copy (const basic_vector &rhs)
 
iterator begin ()
 
iterator end ()
 
size_type size () const
 
bool empty () const
 
size_type capacity ()
 
pointer data ()
 
reference front ()
 
const reference cfront ()
 
reference back ()
 
const reference cback ()
 
reference at (size_type i)
 
const reference const_at (size_type i)
 
void push_back (const_reference v)
 
void push_back (lreference v)
 
void push_back ()
 
void pop_back ()
 
void assign (const pointer first, const pointer last)
 
void insert (size_type index, size_type n, const reference val)
 
void insert (iterator it, size_type n, const reference val)
 
iterator insert (iterator it, const_reference val)
 
iterator erase (iterator it)
 
iterator erase (iterator first, iterator last)
 
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 reference item, size_type index=0) const
 
iterator find (const reference item)
 
const allocator_typeget_allocator () const
 
void set_allocator (const allocator_type &allocator)
 
bool validate_iterator (const_iterator it) const
 
basic_vectoroperator= (const basic_vector &rhs)
 
reference operator[] (size_type i)
 
const reference operator[] (size_type i) const
 

Private Types

using base_type = basic_vector< T, TAllocator, fixed_vector_storage< T, TAllocator, TCapacity > >
 

Additional Inherited Members

- Static Public Attributes inherited from mn::container::basic_vector< T, memory::default_allocator, fixed_vector_storage< T, memory::default_allocator, TCapacity > >
static const size_type npos
 
static const size_type kInitialCapacity
 

Member Typedef Documentation

◆ allocator_type

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
using mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::allocator_type = TAllocator

◆ base_type

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
using mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::base_type = basic_vector<T, TAllocator, fixed_vector_storage<T, TAllocator, TCapacity> >
private

◆ const_iterator

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
using mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::const_iterator = const pointer

◆ difference_type

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
using mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::difference_type = ptrdiff_t

◆ iterator

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
using mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::iterator = pointer

◆ iterator_category

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
using mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::iterator_category = random_access_iterator_tag

◆ pointer

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
using mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::pointer = value_type*

◆ reference

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
using mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::reference = value_type&

◆ self_type

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
using mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::self_type = basic_fixed_vector<T, TCapacity, TAllocator>

◆ size_type

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
using mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::size_type = mn::size_t

◆ value_type

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
using mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::value_type = T

Constructor & Destructor Documentation

◆ basic_fixed_vector() [1/4]

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::basic_fixed_vector ( const allocator_type allocator = allocator_type())
inlineexplicit

◆ basic_fixed_vector() [2/4]

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::basic_fixed_vector ( size_type  initialSize,
const allocator_type allocator = allocator_type() 
)
inlineexplicit

◆ basic_fixed_vector() [3/4]

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::basic_fixed_vector ( const pointer  first,
const pointer  last,
const allocator_type allocator = allocator_type() 
)
inline

◆ basic_fixed_vector() [4/4]

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::basic_fixed_vector ( const self_type rhs,
const allocator_type allocator = allocator_type() 
)
inline

Member Function Documentation

◆ begin()

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
iterator mn::container::basic_vector< T, TAllocator, TStorage >::begin
inline

◆ capacity()

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
size_type mn::container::basic_vector< T, TAllocator, TStorage >::capacity
inline

◆ clear()

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
void mn::container::basic_vector< T, TAllocator, TStorage >::clear
inline

◆ empty()

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
bool mn::container::basic_vector< T, TAllocator, TStorage >::empty ( void  )
inline

◆ end()

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
iterator mn::container::basic_vector< T, TAllocator, TStorage >::end
inline

◆ get_allocator()

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
const allocator_type& mn::container::basic_vector< T, TAllocator, TStorage >::get_allocator
inline

◆ operator=()

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
self_type& mn::container::basic_fixed_vector< T, TCapacity, TAllocator >::operator= ( const self_type rhs)
inline

◆ set_allocator()

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
void mn::container::basic_vector< T, TAllocator, TStorage >::set_allocator
inline

◆ size()

template<typename T , int TCapacity, class TAllocator = memory::default_allocator>
size_type mn::container::basic_vector< T, TAllocator, TStorage >::size
inline

The documentation for this class was generated from the following file: