libTriton version 1.0 build 1592
Loading...
Searching...
No Matches
Public Types | Public Member Functions | List of all members
util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType > Class Template Reference
Inheritance diagram for util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >:

Public Types

using allocator_type = typename std::allocator_traits<AllocatorType>::template rebind_alloc<ValueType>
 
using value_type = typename allocator_type::value_type
 
using reference = value_type &
 
using const_reference = const value_type &
 
using iterator = value_type *
 
using const_iterator = const value_type*
 
using pointer = value_type *
 
using const_pointer = const value_type*
 
using size_type = SizeType
 
using difference_type = DiffType
 
using reverse_iterator = std::reverse_iterator<iterator>
 
using const_reverse_iterator = std::reverse_iterator<const_iterator>
 

Public Member Functions

WIDE_INTEGER_CONSTEXPR dynamic_array (size_type count, const_reference v=value_type(), const allocator_type &a=allocator_type())
 
WIDE_INTEGER_CONSTEXPR dynamic_array (const dynamic_array &other)
 
template<typename input_iterator >
WIDE_INTEGER_CONSTEXPR dynamic_array (input_iterator first, input_iterator last, const allocator_type &a=allocator_type())
 
WIDE_INTEGER_CONSTEXPR dynamic_array (std::initializer_list< value_type > lst, const allocator_type &a=allocator_type())
 
WIDE_INTEGER_CONSTEXPR dynamic_array (dynamic_array &&other) noexcept
 
WIDE_INTEGER_CONSTEXPR auto operator= (const dynamic_array &other) -> dynamic_array &
 
WIDE_INTEGER_CONSTEXPR auto operator= (dynamic_array &&other) noexcept -> dynamic_array &
 
WIDE_INTEGER_CONSTEXPR auto begin () -> iterator
 
WIDE_INTEGER_CONSTEXPR auto end () -> iterator
 
WIDE_INTEGER_CONSTEXPR auto begin () const -> const_iterator
 
WIDE_INTEGER_CONSTEXPR auto end () const -> const_iterator
 
WIDE_INTEGER_CONSTEXPR auto cbegin () const -> const_iterator
 
WIDE_INTEGER_CONSTEXPR auto cend () const -> const_iterator
 
WIDE_INTEGER_CONSTEXPR auto rbegin () -> reverse_iterator
 
WIDE_INTEGER_CONSTEXPR auto rend () -> reverse_iterator
 
WIDE_INTEGER_CONSTEXPR auto rbegin () const -> const_reverse_iterator
 
WIDE_INTEGER_CONSTEXPR auto rend () const -> const_reverse_iterator
 
WIDE_INTEGER_CONSTEXPR auto crbegin () const -> const_reverse_iterator
 
WIDE_INTEGER_CONSTEXPR auto crend () const -> const_reverse_iterator
 
WIDE_INTEGER_CONSTEXPR auto data () -> pointer
 
WIDE_INTEGER_CONSTEXPR auto data () const -> const_pointer
 
constexpr auto size () const -> size_type
 
constexpr auto max_size () const -> size_type
 
constexpr auto empty () const -> bool
 
WIDE_INTEGER_CONSTEXPR auto operator[] (const size_type i) -> reference
 
WIDE_INTEGER_CONSTEXPR auto operator[] (const size_type i) const -> const_reference
 
WIDE_INTEGER_CONSTEXPR auto front () -> reference
 
WIDE_INTEGER_CONSTEXPR auto front () const -> const_reference
 
WIDE_INTEGER_CONSTEXPR auto back () -> reference
 
WIDE_INTEGER_CONSTEXPR auto back () const -> const_reference
 
WIDE_INTEGER_CONSTEXPR auto at (const size_type i) -> reference
 
WIDE_INTEGER_CONSTEXPR auto at (const size_type i) const -> const_reference
 
WIDE_INTEGER_CONSTEXPR void fill (const value_type &v)
 
WIDE_INTEGER_CONSTEXPR void swap (dynamic_array &other)
 
WIDE_INTEGER_CONSTEXPR void swap (dynamic_array &&other)
 

Detailed Description

template<typename ValueType, typename AllocatorType, typename SizeType, typename DiffType>
class util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >

Definition at line 129 of file uintwide_t.h.

Member Typedef Documentation

◆ allocator_type

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
using util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::allocator_type = typename std::allocator_traits<AllocatorType>::template rebind_alloc<ValueType>

Definition at line 133 of file uintwide_t.h.

◆ const_iterator

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
using util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::const_iterator = const value_type*

Definition at line 138 of file uintwide_t.h.

◆ const_pointer

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
using util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::const_pointer = const value_type*

Definition at line 140 of file uintwide_t.h.

◆ const_reference

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
using util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::const_reference = const value_type &

Definition at line 136 of file uintwide_t.h.

◆ const_reverse_iterator

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
using util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::const_reverse_iterator = std::reverse_iterator<const_iterator>

Definition at line 144 of file uintwide_t.h.

◆ difference_type

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
using util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::difference_type = DiffType

Definition at line 142 of file uintwide_t.h.

◆ iterator

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
using util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::iterator = value_type *

Definition at line 137 of file uintwide_t.h.

◆ pointer

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
using util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::pointer = value_type *

Definition at line 139 of file uintwide_t.h.

◆ reference

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
using util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::reference = value_type &

Definition at line 135 of file uintwide_t.h.

◆ reverse_iterator

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
using util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::reverse_iterator = std::reverse_iterator<iterator>

Definition at line 143 of file uintwide_t.h.

◆ size_type

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
using util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::size_type = SizeType

Definition at line 141 of file uintwide_t.h.

◆ value_type

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
using util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::value_type = typename allocator_type::value_type

Definition at line 134 of file uintwide_t.h.

Constructor & Destructor Documentation

◆ dynamic_array() [1/6]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
constexpr util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::dynamic_array ( )
inlineconstexpr

Definition at line 147 of file uintwide_t.h.

◆ dynamic_array() [2/6]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::dynamic_array ( size_type count,
const_reference v = value_type(),
const allocator_type & a = allocator_type() )
inlineexplicit

Definition at line 150 of file uintwide_t.h.

◆ dynamic_array() [3/6]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::dynamic_array ( const dynamic_array< ValueType, AllocatorType, SizeType, DiffType > & other)
inline

Definition at line 173 of file uintwide_t.h.

◆ dynamic_array() [4/6]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
template<typename input_iterator >
WIDE_INTEGER_CONSTEXPR util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::dynamic_array ( input_iterator first,
input_iterator last,
const allocator_type & a = allocator_type() )
inline

Definition at line 188 of file uintwide_t.h.

◆ dynamic_array() [5/6]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::dynamic_array ( std::initializer_list< value_type > lst,
const allocator_type & a = allocator_type() )
inline

Definition at line 204 of file uintwide_t.h.

◆ dynamic_array() [6/6]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::dynamic_array ( dynamic_array< ValueType, AllocatorType, SizeType, DiffType > && other)
inlinenoexcept

Definition at line 220 of file uintwide_t.h.

◆ ~dynamic_array()

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
virtual WIDE_INTEGER_CONSTEXPR util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::~dynamic_array ( )
inlinevirtual

Definition at line 228 of file uintwide_t.h.

Member Function Documentation

◆ at() [1/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::at ( const size_type i) -> reference
inline

Definition at line 321 of file uintwide_t.h.

◆ at() [2/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::at ( const size_type i) const -> const_reference
inline

Definition at line 322 of file uintwide_t.h.

◆ back() [1/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::back ( ) -> reference
inline

Definition at line 318 of file uintwide_t.h.

◆ back() [2/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::back ( ) const -> const_reference
inline

Definition at line 319 of file uintwide_t.h.

◆ begin() [1/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::begin ( ) -> iterator
inline

Definition at line 289 of file uintwide_t.h.

◆ begin() [2/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::begin ( ) const -> const_iterator
inline

Definition at line 291 of file uintwide_t.h.

◆ cbegin()

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::cbegin ( ) const -> const_iterator
inline

Definition at line 293 of file uintwide_t.h.

◆ cend()

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::cend ( ) const -> const_iterator
inline

Definition at line 294 of file uintwide_t.h.

◆ crbegin()

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::crbegin ( ) const -> const_reverse_iterator
inline

Definition at line 299 of file uintwide_t.h.

◆ crend()

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::crend ( ) const -> const_reverse_iterator
inline

Definition at line 300 of file uintwide_t.h.

◆ data() [1/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::data ( ) -> pointer
inline

Definition at line 303 of file uintwide_t.h.

◆ data() [2/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::data ( ) const -> const_pointer
inline

Definition at line 304 of file uintwide_t.h.

◆ empty()

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
constexpr auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::empty ( ) const -> bool
inlineconstexpr

Definition at line 309 of file uintwide_t.h.

◆ end() [1/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::end ( ) -> iterator
inline

Definition at line 290 of file uintwide_t.h.

◆ end() [2/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::end ( ) const -> const_iterator
inline

Definition at line 292 of file uintwide_t.h.

◆ fill()

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR void util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::fill ( const value_type & v)
inline

Definition at line 325 of file uintwide_t.h.

◆ front() [1/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::front ( ) -> reference
inline

Definition at line 315 of file uintwide_t.h.

◆ front() [2/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::front ( ) const -> const_reference
inline

Definition at line 316 of file uintwide_t.h.

◆ max_size()

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
constexpr auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::max_size ( ) const -> size_type
inlineconstexpr

Definition at line 308 of file uintwide_t.h.

◆ operator=() [1/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::operator= ( const dynamic_array< ValueType, AllocatorType, SizeType, DiffType > & other) -> dynamic_array &
inline

Definition at line 248 of file uintwide_t.h.

◆ operator=() [2/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::operator= ( dynamic_array< ValueType, AllocatorType, SizeType, DiffType > && other) -> dynamic_array &
inlinenoexcept

Definition at line 261 of file uintwide_t.h.

◆ operator[]() [1/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::operator[] ( const size_type i) -> reference
inline

Definition at line 312 of file uintwide_t.h.

◆ operator[]() [2/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::operator[] ( const size_type i) const -> const_reference
inline

Definition at line 313 of file uintwide_t.h.

◆ rbegin() [1/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::rbegin ( ) -> reverse_iterator
inline

Definition at line 295 of file uintwide_t.h.

◆ rbegin() [2/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::rbegin ( ) const -> const_reverse_iterator
inline

Definition at line 297 of file uintwide_t.h.

◆ rend() [1/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::rend ( ) -> reverse_iterator
inline

Definition at line 296 of file uintwide_t.h.

◆ rend() [2/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::rend ( ) const -> const_reverse_iterator
inline

Definition at line 298 of file uintwide_t.h.

◆ size()

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
constexpr auto util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::size ( ) const -> size_type
inlineconstexpr

Definition at line 307 of file uintwide_t.h.

◆ swap() [1/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR void util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::swap ( dynamic_array< ValueType, AllocatorType, SizeType, DiffType > && other)
inline

Definition at line 343 of file uintwide_t.h.

◆ swap() [2/2]

template<typename ValueType , typename AllocatorType , typename SizeType , typename DiffType >
WIDE_INTEGER_CONSTEXPR void util::dynamic_array< ValueType, AllocatorType, SizeType, DiffType >::swap ( dynamic_array< ValueType, AllocatorType, SizeType, DiffType > & other)
inline

Definition at line 330 of file uintwide_t.h.


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