![]() |
ATLAS Offline Software
|
To test handling of non-standard memory allocators. More...
#include <TestAlloc.h>
Classes | |
| struct | Head |
Public Types | |
| typedef T * | pointer |
| Standard STL allocator typedefs. More... | |
| typedef const T * | const_pointer |
| typedef T & | reference |
| typedef const T & | const_reference |
| typedef T | value_type |
| typedef size_t | size_type |
| typedef ptrdiff_t | difference_type |
Public Member Functions | |
| pointer | allocate (size_type n, const void *=0) |
| void | deallocate (pointer p, size_type n) |
| size_type | max_size () const throw () |
| template<class... Args> | |
| void | construct (pointer p, Args &&... args) |
| void | destroy (pointer p) |
| pointer | address (reference x) const |
| const_pointer | address (const_reference x) const |
| bool | operator== (const TestAlloc &) const |
Static Public Attributes | |
| constexpr static size_t | MAGIC = 0xdeadbeeffeedabba |
To test handling of non-standard memory allocators.
This is an allocator that adds a header to each block allocated, and then checks it on free. This ensures that the frees are matched with the allocations.
Definition at line 28 of file TestAlloc.h.
| typedef const T* Athena_test::TestAlloc< T >::const_pointer |
Definition at line 33 of file TestAlloc.h.
| typedef const T& Athena_test::TestAlloc< T >::const_reference |
Definition at line 35 of file TestAlloc.h.
| typedef ptrdiff_t Athena_test::TestAlloc< T >::difference_type |
Definition at line 38 of file TestAlloc.h.
| typedef T* Athena_test::TestAlloc< T >::pointer |
Standard STL allocator typedefs.
Definition at line 32 of file TestAlloc.h.
| typedef T& Athena_test::TestAlloc< T >::reference |
Definition at line 34 of file TestAlloc.h.
| typedef size_t Athena_test::TestAlloc< T >::size_type |
Definition at line 37 of file TestAlloc.h.
| typedef T Athena_test::TestAlloc< T >::value_type |
Definition at line 36 of file TestAlloc.h.
|
inline |
Definition at line 95 of file TestAlloc.h.
|
inline |
Definition at line 90 of file TestAlloc.h.
|
inline |
|
inline |
Definition at line 72 of file TestAlloc.h.
|
inline |
|
inline |
Definition at line 85 of file TestAlloc.h.
|
inline | |||||||||||||
Definition at line 66 of file TestAlloc.h.
|
inline |
Definition at line 101 of file TestAlloc.h.
|
staticconstexpr |
Definition at line 40 of file TestAlloc.h.
1.8.18