Public Types |
Public Member Functions |
Static Public Attributes |
Private Member Functions |
Private Attributes |
List of all members
mn::container::basic_array< T, TAllocator, TDeleter > Class Template Reference
Lightweight c++11 array implementation. More...
#include <mn_array.hpp>
Collaboration diagram for mn::container::basic_array< T, TAllocator, TDeleter >:
Public Types | |
using | value_type = T |
using | pointer = T * |
using | reference = T & |
using | const_reference = const T & |
using | difference_type = mn::ptrdiff_t |
using | size_type = mn::size_t |
using | allocator_type = TAllocator |
using | deleter_type = TDeleter |
using | iterator = basic_array_iterator< T > |
using | const_iterator = basic_array_iterator< const T > |
using | self_type = basic_array< T, TAllocator, TDeleter > |
Public Member Functions | |
basic_array () | |
basic_array (pointer _ptrData, unsigned int _sSize) | |
basic_array (const self_type &other) | |
~basic_array () | |
iterator | begin () |
const_iterator | begin () const |
iterator | end () |
const_iterator | end () const |
reference | front () noexcept |
const_reference | front () const noexcept |
reference | back () noexcept |
const_reference | back () const noexcept |
size_type | size () const noexcept |
reference | at (size_type pos) |
const_reference | at (size_type pos) const |
constexpr bool | is_empty () const noexcept |
constexpr bool | is_full () const noexcept |
int | push (value_type entry) |
reference | pop () |
bool | resize (size_type newSize) |
bool | is_equele (const self_type &other, bool bWithPos=false) |
void | swap (self_type &other) noexcept |
reference | operator[] (size_type pos) noexcept |
constexpr const_reference | operator[] (size_type pos) const noexcept |
void | fill (const value_type &val) |
Static Public Attributes | |
static const size_type | TypeSize = sizeof(value_type) |
Private Member Functions | |
pointer | construct (size_type n) |
void | deconstruct (pointer ptr, size_type size) |
Private Attributes | |
pointer | m_arData |
size_type | m_szSize |
size_type | m_szCurPos |
allocator_type | m_alloCator |
deleter_type | m_dDeleter |
Detailed Description
template<typename T, class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
class mn::container::basic_array< T, TAllocator, TDeleter >
Lightweight c++11 array implementation.
Member Typedef Documentation
◆ allocator_type
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
using mn::container::basic_array< T, TAllocator, TDeleter >::allocator_type = TAllocator |
◆ const_iterator
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
using mn::container::basic_array< T, TAllocator, TDeleter >::const_iterator = basic_array_iterator<const T> |
◆ const_reference
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
using mn::container::basic_array< T, TAllocator, TDeleter >::const_reference = const T& |
◆ deleter_type
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
using mn::container::basic_array< T, TAllocator, TDeleter >::deleter_type = TDeleter |
◆ difference_type
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
using mn::container::basic_array< T, TAllocator, TDeleter >::difference_type = mn::ptrdiff_t |
◆ iterator
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
using mn::container::basic_array< T, TAllocator, TDeleter >::iterator = basic_array_iterator<T> |
◆ pointer
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
using mn::container::basic_array< T, TAllocator, TDeleter >::pointer = T* |
◆ reference
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
using mn::container::basic_array< T, TAllocator, TDeleter >::reference = T& |
◆ self_type
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
using mn::container::basic_array< T, TAllocator, TDeleter >::self_type = basic_array<T, TAllocator, TDeleter> |
◆ size_type
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
using mn::container::basic_array< T, TAllocator, TDeleter >::size_type = mn::size_t |
◆ value_type
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
using mn::container::basic_array< T, TAllocator, TDeleter >::value_type = T |
Constructor & Destructor Documentation
◆ basic_array() [1/3]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ basic_array() [2/3]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ basic_array() [3/3]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ ~basic_array()
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
Member Function Documentation
◆ at() [1/2]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ at() [2/2]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ back() [1/2]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inlinenoexcept |
◆ back() [2/2]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inlinenoexcept |
◆ begin() [1/2]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ begin() [2/2]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ construct()
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inlineprivate |
◆ deconstruct()
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inlineprivate |
◆ end() [1/2]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ end() [2/2]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ fill()
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ front() [1/2]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inlinenoexcept |
◆ front() [2/2]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inlinenoexcept |
◆ is_empty()
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inlineconstexprnoexcept |
◆ is_equele()
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ is_full()
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inlineconstexprnoexcept |
◆ operator[]() [1/2]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inlineconstexprnoexcept |
◆ operator[]() [2/2]
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inlinenoexcept |
◆ pop()
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ push()
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ resize()
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inline |
◆ size()
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inlinenoexcept |
◆ swap()
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
inlinenoexcept |
Member Data Documentation
◆ m_alloCator
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
private |
◆ m_arData
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
private |
◆ m_dDeleter
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
private |
◆ m_szCurPos
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
private |
◆ m_szSize
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
private |
◆ TypeSize
template<typename T , class TAllocator = memory::default_allocator, class TDeleter = mn::memory::default_delete<T, TAllocator>>
|
static |
The documentation for this class was generated from the following file: