![]() |
Audacity 3.2.0
|
Namespaces | |
| namespace | detail |
Classes | |
| struct | Deleter |
| Deleter for an array of elements and optional contiguous header structure. More... | |
| struct | Ptr |
| Smart pointer type that deallocates with Deleter. More... | |
| struct | Traits |
| Primary template used in Deleter that can be specialized. More... | |
| struct | Traits< AudioBufferList > |
| struct | Traits< AudioUnitCocoaViewInfo > |
Functions | |
| template<typename Type , template< typename > typename BaseDeleter> | |
| size_t | Count (const Ptr< Type, BaseDeleter > &p) |
| Find out how many elements were allocated with a Ptr. More... | |
| template<typename Type , template< typename > typename BaseDeleter> | |
| auto | begin (const Ptr< Type, BaseDeleter > &p) |
| Enables range-for. More... | |
| template<typename Type , template< typename > typename BaseDeleter> | |
| auto | end (const Ptr< Type, BaseDeleter > &p) |
| Enables range-for. More... | |
| template<typename Type > | |
| auto | AllocateBytes (size_t enlarged) |
Allocate a Ptr<Type> holding at least enlarged bytes. More... | |
| template<typename Type > | |
| auto | AllocateCount (size_t count) |
Allocate a Ptr<Type> holding count elements. More... | |
| auto PackedArray::AllocateBytes | ( | size_t | enlarged | ) |
Allocate a Ptr<Type> holding at least enlarged bytes.
Usage: AllocateBytes<Type>(bytes)(constructor arguments for Type) Meant to resemble placement-new syntax with separation of allocator and constructor arguments
Definition at line 192 of file PackedArray.h.
References PackedArrayArg, and safenew.
| auto PackedArray::AllocateCount | ( | size_t | count | ) |
Allocate a Ptr<Type> holding count elements.
Usage: AllocateCount<Type>(count)(constructor arguments for Type) Meant to resemble placement-new syntax with separation of allocator and constructor arguments
If Traits<Type> defines a nonempty header, the result always holds at least one element
Definition at line 212 of file PackedArray.h.
|
inline |
Enables range-for.
Definition at line 150 of file PackedArray.h.
References begin().
Referenced by begin(), end(), and PackedArray::Ptr< Type, BaseDeleter >::operator[]().
|
inline |
Find out how many elements were allocated with a Ptr.
Definition at line 143 of file PackedArray.h.
Referenced by end(), AudioUnitEffectBase::InitializePlugin(), EffectRepeat::PopulateOrExchange(), AudioUnitInstance::ProcessBlock(), and AudioUnitInstance::Render().
|
inline |
Enables range-for.
Definition at line 159 of file PackedArray.h.
References begin(), and Count().