|
jaulib v1.5.0
Jau Support Library (C++, Java, ..)
|
Performance counter jau::callocator specialization. More...
#include <counting_callocator.hpp>
Classes | |
| struct | rebind |
Public Types | |
| typedef T | value_type |
Public Types inherited from jau::callocator< T > | |
| typedef const T * | const_pointer |
| typedef const T & | const_reference |
| typedef std::ptrdiff_t | difference_type |
| typedef std::true_type | is_always_equal |
| typedef T * | pointer |
| typedef std::true_type | propagate_on_container_move_assignment |
| typedef T & | reference |
| typedef std::size_t | size_type |
| typedef T | value_type |
Public Member Functions | |
| counting_callocator () noexcept | |
| counting_callocator (const counting_callocator &other) noexcept | |
| template<typename U> | |
| counting_callocator (const counting_callocator< U > &other) noexcept | |
| ~counting_callocator ()=default | |
| value_type * | allocate (std::size_t n) |
| value_type * | allocate (std::size_t n, const void *hint) |
| void | deallocate (value_type *p, std::size_t n) |
| constexpr value_type * | reallocate (value_type *p, std::size_t old_size, std::size_t new_size) |
| std::string | toString () |
Public Member Functions inherited from jau::callocator< T > | |
| callocator () noexcept=default | |
| callocator (const callocator &) noexcept | |
| template<typename U> | |
| callocator (const callocator< U > &) noexcept | |
| ~callocator ()=default | |
| value_type * | allocate (std::size_t n) |
| value_type * | allocate (std::size_t n, const void *) |
| void | deallocate (value_type *p, std::size_t) noexcept |
| constexpr value_type * | reallocate (value_type *p, std::size_t, std::size_t new_size) |
Public Attributes | |
| ssize_t | alloc_balance |
| std::size_t | alloc_count |
| std::size_t | dealloc_count |
| std::size_t | memory_usage |
| bool | old_stats |
| std::size_t | realloc_count |
Performance counter jau::callocator 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 45 of file counting_callocator.hpp.
| typedef T jau::counting_callocator< T >::value_type |
Definition at line 51 of file counting_callocator.hpp.
|
inlinenoexcept |
Definition at line 93 of file counting_callocator.hpp.
|
inlinenoexcept |
Definition at line 110 of file counting_callocator.hpp.
|
inlinenoexcept |
Definition at line 132 of file counting_callocator.hpp.
|
default |
|
inline |
Definition at line 88 of file counting_callocator.hpp.
|
inline |
Definition at line 149 of file counting_callocator.hpp.
|
inline |
Definition at line 167 of file counting_callocator.hpp.
|
inlinenodiscardconstexpr |
Definition at line 176 of file counting_callocator.hpp.
|
inline |
Definition at line 196 of file counting_callocator.hpp.
| bool jau::counting_callocator< T >::old_stats |
Definition at line 54 of file counting_callocator.hpp.
| std::size_t jau::counting_callocator< T >::memory_usage |
Definition at line 55 of file counting_callocator.hpp.
| std::size_t jau::counting_callocator< T >::alloc_count |
Definition at line 56 of file counting_callocator.hpp.
| std::size_t jau::counting_callocator< T >::dealloc_count |
Definition at line 57 of file counting_callocator.hpp.
| std::size_t jau::counting_callocator< T >::realloc_count |
Definition at line 58 of file counting_callocator.hpp.
| ssize_t jau::counting_callocator< T >::alloc_balance |
Definition at line 59 of file counting_callocator.hpp.