Direct-BT
2.3.1
Direct-BT - Direct Bluetooth Programming.
|
Performance counter std::allocator specialization. More...
#include <counting_allocator.hpp>
Classes | |
struct | rebind |
Public Types | |
typedef T | value_type |
Public Member Functions | |
std::string | toString (const nsize_t mem_width=0, const nsize_t count_width=0) |
counting_allocator () noexcept | |
counting_allocator (const counting_allocator &other) noexcept | |
template<typename U > | |
counting_allocator (const counting_allocator< U > &other) noexcept | |
~counting_allocator () | |
value_type * | allocate (std::size_t n, const void *hint) |
value_type * | allocate (std::size_t n) |
void | deallocate (value_type *p, std::size_t n) |
Public Attributes | |
bool | old_stats |
std::size_t | memory_usage |
std::size_t | alloc_count |
std::size_t | dealloc_count |
ssize_t | alloc_balance |
Performance counter std::allocator specialization.
This class shall be compliant with C++ named requirements for Allocator.
Not overriding deprecated (C++17) and removed (C++20) methods: address(), max_size(), construct() and destroy().
Definition at line 47 of file counting_allocator.hpp.
typedef T jau::counting_allocator< T >::value_type |
Definition at line 53 of file counting_allocator.hpp.
|
inlinenoexcept |
Definition at line 94 of file counting_allocator.hpp.
|
inlinenoexcept |
Definition at line 111 of file counting_allocator.hpp.
|
inlinenoexcept |
Definition at line 133 of file counting_allocator.hpp.
|
inline |
Definition at line 146 of file counting_allocator.hpp.
|
inline |
Definition at line 168 of file counting_allocator.hpp.
|
inline |
Definition at line 150 of file counting_allocator.hpp.
|
inline |
Definition at line 186 of file counting_allocator.hpp.
|
inline |
ssize_t jau::counting_allocator< T >::alloc_balance |
Definition at line 60 of file counting_allocator.hpp.
std::size_t jau::counting_allocator< T >::alloc_count |
Definition at line 58 of file counting_allocator.hpp.
std::size_t jau::counting_allocator< T >::dealloc_count |
Definition at line 59 of file counting_allocator.hpp.
std::size_t jau::counting_allocator< T >::memory_usage |
Definition at line 57 of file counting_allocator.hpp.
bool jau::counting_allocator< T >::old_stats |
Definition at line 56 of file counting_allocator.hpp.