Audacity 3.2.0
|
Deleter for an array of elements and optional contiguous header structure. More...
#include <PackedArray.h>
Public Types | |
using | managed_type = Type |
using | base_type = BaseDeleter< managed_type > |
using | traits_type = detail::ExtendedTraits< managed_type > |
using | header_type = typename traits_type::header_type |
using | element_type = typename traits_type::element_type |
Public Member Functions | |
Deleter (size_t size=0) noexcept | |
void | operator() (Type *p) const noexcept(noexcept((void) std::declval< element_type >().~element_type(),(void) std::declval< header_type >().~header_type(),(void) std::declval< base_type >()(p))) |
size_t | GetCount () const |
Private Attributes | |
size_t | mCount = 0 |
Deleter for an array of elements and optional contiguous header structure.
Type | is the type pointed to, and an explicit specialization of Traits<Type> may redefine the nested types for a non-empty header:
|
BaseDeleter | manages the main deallocation |
Definition at line 87 of file PackedArray.h.
using PackedArray::Deleter< Type, BaseDeleter >::base_type = BaseDeleter<managed_type> |
Definition at line 89 of file PackedArray.h.
using PackedArray::Deleter< Type, BaseDeleter >::element_type = typename traits_type::element_type |
Definition at line 92 of file PackedArray.h.
using PackedArray::Deleter< Type, BaseDeleter >::header_type = typename traits_type::header_type |
Definition at line 91 of file PackedArray.h.
using PackedArray::Deleter< Type, BaseDeleter >::managed_type = Type |
Definition at line 88 of file PackedArray.h.
using PackedArray::Deleter< Type, BaseDeleter >::traits_type = detail::ExtendedTraits<managed_type> |
Definition at line 90 of file PackedArray.h.
|
inlinenoexcept |
Nontrivial, implicit constructor of the deleter takes a size, which defaults to 0 to allow default contruction of the unique_ptr
Definition at line 96 of file PackedArray.h.
References PackedArray::detail::ExtendedTraits< T, typename >::element_offset(), and size.
|
inline |
Definition at line 120 of file PackedArray.h.
References PackedArray::Deleter< Type, BaseDeleter >::mCount.
|
inlinenoexcept |
Definition at line 103 of file PackedArray.h.
References PackedArray::detail::ExtendedTraits< T, typename >::element_ptr(), and PackedArray::Deleter< Type, BaseDeleter >::mCount.
|
private |
Definition at line 122 of file PackedArray.h.
Referenced by PackedArray::Deleter< Type, BaseDeleter >::GetCount(), and PackedArray::Deleter< Type, BaseDeleter >::operator()().