DNA Calib 1.1
Project brief
|
Resizable array-like abstraction for trivial-types only. More...
#include <DynArray.h>
Public Types | |
using | value_type = T |
using | allocator_type = TAllocator |
Public Member Functions | |
DynArray (const allocator_type &allocator) | |
DynArray () | |
DynArray (std::size_t size, const allocator_type &allocator=allocator_type{}) | |
DynArray (std::size_t size, const value_type &value, const allocator_type &allocator=allocator_type{}) | |
DynArray (const value_type *source, std::size_t size, const allocator_type &allocator=allocator_type{}) | |
template<typename TIterator > | |
DynArray (TIterator start, TIterator end, const allocator_type &allocator=allocator_type{}) | |
~DynArray ()=default | |
DynArray (const DynArray &rhs) | |
DynArray & | operator= (const DynArray &rhs) |
DynArray (DynArray &&rhs) noexcept | |
DynArray & | operator= (DynArray &&rhs) noexcept |
allocator_type | get_allocator () const noexcept |
void | clear () |
value_type * | data () |
const value_type * | data () const |
std::size_t | size () const |
bool | empty () const |
value_type & | operator[] (std::size_t index) |
const value_type & | operator[] (std::size_t index) const |
value_type * | begin () |
value_type * | end () |
const value_type * | cbegin () const |
const value_type * | cend () const |
const value_type * | begin () const |
const value_type * | end () const |
void | resize (std::size_t size, const value_type &value) |
void | resize (std::size_t size) |
void | resize_uninitialized (std::size_t size) |
template<typename TIterator > | |
void | assign (TIterator start, TIterator end) |
Private Types | |
using | pointer_type = std::unique_ptr< value_type, std::function< void(value_type *)> > |
Static Private Member Functions | |
static pointer_type | create (std::size_t size, allocator_type alloc) |
Private Attributes | |
allocator_type | alloc |
std::size_t | sz |
pointer_type | ptr |
Resizable array-like abstraction for trivial-types only.
using terse::DynArray< T, TAllocator >::allocator_type = TAllocator |
|
private |
using terse::DynArray< T, TAllocator >::value_type = T |
|
inlineexplicit |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
default |
|
inline |
References terse::DynArray< T, TAllocator >::data(), and terse::DynArray< T, TAllocator >::size().
|
inlinenoexcept |
|
inline |
References extd::copy(), terse::DynArray< T, TAllocator >::data(), terse::DynArray< T, TAllocator >::end(), terse::DynArray< T, TAllocator >::resize_uninitialized(), and terse::DynArray< T, TAllocator >::size().
|
inline |
|
inline |
References terse::DynArray< T, TAllocator >::cbegin().
|
inline |
References terse::DynArray< T, TAllocator >::data().
Referenced by terse::DynArray< T, TAllocator >::begin().
|
inline |
References terse::DynArray< T, TAllocator >::data(), and terse::DynArray< T, TAllocator >::sz.
Referenced by terse::DynArray< T, TAllocator >::end().
|
inline |
|
inlinestaticprivate |
References terse::DynArray< T, TAllocator >::alloc, and terse::DynArray< T, TAllocator >::size().
Referenced by terse::DynArray< T, TAllocator >::resize(), and terse::DynArray< T, TAllocator >::resize_uninitialized().
|
inline |
References terse::DynArray< T, TAllocator >::ptr.
Referenced by terse::DynArray< T, TAllocator >::assign(), terse::DynArray< T, TAllocator >::begin(), terse::DynArray< T, TAllocator >::cbegin(), terse::DynArray< T, TAllocator >::cend(), terse::Blob< T, TAllocator >::data(), terse::DynArray< T, TAllocator >::DynArray(), terse::DynArray< T, TAllocator >::end(), and terse::DynArray< T, TAllocator >::operator[]().
|
inline |
References terse::DynArray< T, TAllocator >::ptr.
|
inline |
References terse::DynArray< T, TAllocator >::sz.
Referenced by dna::JointFilter::apply(), dnac::JointFilter::apply(), and dna::FilteredInputArchive::process().
|
inline |
|
inline |
References terse::DynArray< T, TAllocator >::cend().
|
inlinenoexcept |
References terse::DynArray< T, TAllocator >::alloc.
Referenced by terse::Blob< T, TAllocator >::get_allocator().
|
inline |
References terse::DynArray< T, TAllocator >::alloc, terse::DynArray< T, TAllocator >::ptr, and terse::DynArray< T, TAllocator >::sz.
|
inlinenoexcept |
References terse::DynArray< T, TAllocator >::alloc, terse::DynArray< T, TAllocator >::ptr, and terse::DynArray< T, TAllocator >::sz.
|
inline |
|
inline |
|
inline |
References terse::DynArray< T, TAllocator >::resize(), and terse::DynArray< T, TAllocator >::size().
|
inline |
References terse::DynArray< T, TAllocator >::alloc, terse::DynArray< T, TAllocator >::begin(), terse::DynArray< T, TAllocator >::create(), terse::DynArray< T, TAllocator >::ptr, terse::DynArray< T, TAllocator >::size(), and terse::DynArray< T, TAllocator >::sz.
Referenced by dna::JointFilter::apply(), dnac::JointFilter::apply(), terse::ExtendableJSONInputArchive< TExtender, TStream, TSize, TOffset >::process(), and terse::DynArray< T, TAllocator >::resize().
|
inline |
References terse::DynArray< T, TAllocator >::alloc, terse::DynArray< T, TAllocator >::create(), terse::DynArray< T, TAllocator >::ptr, terse::DynArray< T, TAllocator >::size(), and terse::DynArray< T, TAllocator >::sz.
Referenced by dna::JointFilter::apply(), dnac::JointFilter::apply(), terse::DynArray< T, TAllocator >::assign(), terse::ExtendableJSONInputArchive< TExtender, TStream, TSize, TOffset >::process(), terse::ExtendableBinaryInputArchive< TExtender, TStream, TSize, TOffset, EByteOrder >::resize(), and terse::Blob< T, TAllocator >::setSize().
|
inline |
References terse::DynArray< T, TAllocator >::sz.
Referenced by dna::JointFilter::apply(), dnac::JointFilter::apply(), terse::DynArray< T, TAllocator >::assign(), terse::DynArray< T, TAllocator >::create(), terse::DynArray< T, TAllocator >::DynArray(), terse::DynArray< T, TAllocator >::operator[](), terse::ExtendableBinaryOutputArchive< TExtender, TStream, TSize, TOffset, EByteOrder >::process(), terse::ExtendableJSONInputArchive< TExtender, TStream, TSize, TOffset >::process(), dna::FilteredInputArchive::process(), terse::DynArray< T, TAllocator >::resize(), terse::DynArray< T, TAllocator >::resize_uninitialized(), dna::RawTextureCoordinateVector::size(), dna::RawVertexLayoutVector::size(), dnac::RawTextureCoordinateVector::size(), dnac::RawVertexLayoutVector::size(), and terse::Blob< T, TAllocator >::size().
|
private |
|
private |
|
private |
Referenced by terse::DynArray< T, TAllocator >::cend(), terse::DynArray< T, TAllocator >::clear(), terse::DynArray< T, TAllocator >::empty(), terse::DynArray< T, TAllocator >::end(), terse::DynArray< T, TAllocator >::operator=(), terse::DynArray< T, TAllocator >::resize(), terse::DynArray< T, TAllocator >::resize_uninitialized(), and terse::DynArray< T, TAllocator >::size().