Dash Core Source Documentation (0.16.0.1)
Find detailed information regarding the Dash Core source code.
#include <mt_pooled_secure.h>
Classes | |
struct | internal_pool |
Public Types | |
typedef std::allocator< T > | base |
typedef base::size_type | size_type |
typedef base::difference_type | difference_type |
typedef base::pointer | pointer |
typedef base::const_pointer | const_pointer |
typedef base::reference | reference |
typedef base::const_reference | const_reference |
typedef base::value_type | value_type |
Public Member Functions | |
mt_pooled_secure_allocator (size_type nrequested_size=32, size_type nnext_size=32, size_type nmax_size=0) noexcept | |
~mt_pooled_secure_allocator () noexcept | |
T * | allocate (std::size_t n, const void *hint=0) |
void | deallocate (T *p, std::size_t n) |
Private Member Functions | |
size_t | get_bucket () |
Private Attributes | |
std::vector< std::unique_ptr< internal_pool > > | pools |
Detailed Description
template<typename T>
struct mt_pooled_secure_allocator< T >
Definition at line 18 of file mt_pooled_secure.h.
Member Typedef Documentation
◆ base
typedef std::allocator<T> mt_pooled_secure_allocator< T >::base |
Definition at line 20 of file mt_pooled_secure.h.
◆ const_pointer
typedef base::const_pointer mt_pooled_secure_allocator< T >::const_pointer |
Definition at line 24 of file mt_pooled_secure.h.
◆ const_reference
typedef base::const_reference mt_pooled_secure_allocator< T >::const_reference |
Definition at line 26 of file mt_pooled_secure.h.
◆ difference_type
typedef base::difference_type mt_pooled_secure_allocator< T >::difference_type |
Definition at line 22 of file mt_pooled_secure.h.
◆ pointer
typedef base::pointer mt_pooled_secure_allocator< T >::pointer |
Definition at line 23 of file mt_pooled_secure.h.
◆ reference
typedef base::reference mt_pooled_secure_allocator< T >::reference |
Definition at line 25 of file mt_pooled_secure.h.
◆ size_type
typedef base::size_type mt_pooled_secure_allocator< T >::size_type |
Definition at line 21 of file mt_pooled_secure.h.
◆ value_type
typedef base::value_type mt_pooled_secure_allocator< T >::value_type |
Definition at line 27 of file mt_pooled_secure.h.
Constructor & Destructor Documentation
◆ mt_pooled_secure_allocator()
|
inlinenoexcept |
Definition at line 28 of file mt_pooled_secure.h.
References mt_pooled_secure_allocator< T >::pools.
◆ ~mt_pooled_secure_allocator()
|
inlinenoexcept |
Definition at line 41 of file mt_pooled_secure.h.
Member Function Documentation
◆ allocate()
|
inline |
Definition at line 43 of file mt_pooled_secure.h.
References mt_pooled_secure_allocator< T >::get_bucket(), and mt_pooled_secure_allocator< T >::pools.
◆ deallocate()
|
inline |
Definition at line 52 of file mt_pooled_secure.h.
References mt_pooled_secure_allocator< T >::pools.
◆ get_bucket()
|
inlineprivate |
Definition at line 64 of file mt_pooled_secure.h.
References mt_pooled_secure_allocator< T >::pools.
Referenced by mt_pooled_secure_allocator< T >::allocate().
Member Data Documentation
◆ pools
|
private |
Definition at line 82 of file mt_pooled_secure.h.
Referenced by mt_pooled_secure_allocator< T >::allocate(), mt_pooled_secure_allocator< T >::deallocate(), mt_pooled_secure_allocator< T >::get_bucket(), and mt_pooled_secure_allocator< T >::mt_pooled_secure_allocator().
The documentation for this struct was generated from the following file:
- src/support/allocators/mt_pooled_secure.h