ATLAS Offline Software
|
A wrapper around std::aligned_alloc. More...
#include <AlignedDynArray.h>
Public Types | |
typedef T | value_type |
typedef T * | pointer |
typedef const T * | const_pointer |
typedef value_type & | reference |
typedef const value_type & | const_reference |
typedef value_type * | iterator |
typedef const value_type * | const_iterator |
typedef std::size_t | size_type |
typedef std::ptrdiff_t | difference_type |
Public Member Functions | |
AlignedDynArray ()=delete | |
Deleted default constructor. More... | |
AlignedDynArray (AlignedDynArray const &)=delete | |
Deleted default copy constructor. More... | |
AlignedDynArray & | operator= (AlignedDynArray const &)=delete |
Deleted default assignment operator. More... | |
AlignedDynArray (const size_type n) | |
Constructor with default initializing elements. More... | |
AlignedDynArray (const size_type n, const T &value) | |
Constructor initializing elements to value. More... | |
AlignedDynArray (AlignedDynArray &&) noexcept | |
Move copy constructor. More... | |
AlignedDynArray & | operator= (AlignedDynArray &&) noexcept |
Move assignment operator. More... | |
~AlignedDynArray () | |
Destructor. More... | |
pointer | buffer () noexcept |
Get the underlying buffer. More... | |
const_pointer | buffer () const noexcept |
Get the underlying buffer (const) More... | |
reference | operator[] (size_type pos) noexcept |
index array operator More... | |
const_reference | operator[] (size_type pos) const noexcept |
index array operator (const) More... | |
iterator | begin () noexcept |
iterator pointing to the first element More... | |
const_iterator | begin () const noexcept |
const iterator pointing to the first element More... | |
iterator | end () noexcept |
iterator pointing to the past-the-end element More... | |
const_iterator | end () const noexcept |
const iterator pointing to the past-the-end element More... | |
size_type | size () const noexcept |
number of elements/size More... | |
bool | empty () const noexcept |
returns true is size == 0 More... | |
Private Member Functions | |
void | cleanup () |
Helper method for calling the dtor for the elements. More... | |
Private Attributes | |
pointer | m_buffer = nullptr |
Pointer to the underlying buffer. More... | |
size_type | m_size = 0 |
Num of elements/size. More... | |
A wrapper around std::aligned_alloc.
The main usage is to create an alligned buffer array to be used with vector instructions
Provides
Definition at line 29 of file AlignedDynArray.h.
typedef const value_type* GSFUtils::AlignedDynArray< T, ALIGNMENT >::const_iterator |
Definition at line 53 of file AlignedDynArray.h.
typedef const T* GSFUtils::AlignedDynArray< T, ALIGNMENT >::const_pointer |
Definition at line 49 of file AlignedDynArray.h.
typedef const value_type& GSFUtils::AlignedDynArray< T, ALIGNMENT >::const_reference |
Definition at line 51 of file AlignedDynArray.h.
typedef std::ptrdiff_t GSFUtils::AlignedDynArray< T, ALIGNMENT >::difference_type |
Definition at line 55 of file AlignedDynArray.h.
typedef value_type* GSFUtils::AlignedDynArray< T, ALIGNMENT >::iterator |
Definition at line 52 of file AlignedDynArray.h.
typedef T* GSFUtils::AlignedDynArray< T, ALIGNMENT >::pointer |
Definition at line 48 of file AlignedDynArray.h.
typedef value_type& GSFUtils::AlignedDynArray< T, ALIGNMENT >::reference |
Definition at line 50 of file AlignedDynArray.h.
typedef std::size_t GSFUtils::AlignedDynArray< T, ALIGNMENT >::size_type |
Definition at line 54 of file AlignedDynArray.h.
typedef T GSFUtils::AlignedDynArray< T, ALIGNMENT >::value_type |
Definition at line 47 of file AlignedDynArray.h.
|
delete |
Deleted default constructor.
|
delete |
Deleted default copy constructor.
|
explicit |
Constructor with default initializing elements.
|
explicit |
Constructor initializing elements to value.
|
noexcept |
Move copy constructor.
GSFUtils::AlignedDynArray< T, ALIGNMENT >::~AlignedDynArray | ( | ) |
Destructor.
|
noexcept |
const iterator pointing to the first element
|
noexcept |
iterator pointing to the first element
|
noexcept |
Get the underlying buffer (const)
|
noexcept |
Get the underlying buffer.
|
private |
Helper method for calling the dtor for the elements.
|
noexcept |
returns true is size == 0
|
noexcept |
const iterator pointing to the past-the-end element
|
noexcept |
iterator pointing to the past-the-end element
|
noexcept |
Move assignment operator.
|
delete |
Deleted default assignment operator.
|
noexcept |
index array operator (const)
|
noexcept |
index array operator
|
noexcept |
number of elements/size
|
private |
Pointer to the underlying buffer.
Definition at line 117 of file AlignedDynArray.h.
|
private |
Num of elements/size.
Definition at line 120 of file AlignedDynArray.h.