Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

mt_pooled_secure_allocator< T > Struct Template Reference

#include <mt_pooled_secure.h>

+ Inheritance diagram for mt_pooled_secure_allocator< T >:
+ Collaboration diagram for mt_pooled_secure_allocator< T >:

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

template<typename T>
typedef std::allocator<T> mt_pooled_secure_allocator< T >::base

Definition at line 20 of file mt_pooled_secure.h.

◆ const_pointer

template<typename T>
typedef base::const_pointer mt_pooled_secure_allocator< T >::const_pointer

Definition at line 24 of file mt_pooled_secure.h.

◆ const_reference

template<typename T>
typedef base::const_reference mt_pooled_secure_allocator< T >::const_reference

Definition at line 26 of file mt_pooled_secure.h.

◆ difference_type

template<typename T>
typedef base::difference_type mt_pooled_secure_allocator< T >::difference_type

Definition at line 22 of file mt_pooled_secure.h.

◆ pointer

template<typename T>
typedef base::pointer mt_pooled_secure_allocator< T >::pointer

Definition at line 23 of file mt_pooled_secure.h.

◆ reference

template<typename T>
typedef base::reference mt_pooled_secure_allocator< T >::reference

Definition at line 25 of file mt_pooled_secure.h.

◆ size_type

template<typename T>
typedef base::size_type mt_pooled_secure_allocator< T >::size_type

Definition at line 21 of file mt_pooled_secure.h.

◆ value_type

template<typename T>
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()

template<typename T>
mt_pooled_secure_allocator< T >::mt_pooled_secure_allocator ( size_type  nrequested_size = 32,
size_type  nnext_size = 32,
size_type  nmax_size = 0 
)
inlinenoexcept

Definition at line 28 of file mt_pooled_secure.h.

References mt_pooled_secure_allocator< T >::pools.

◆ ~mt_pooled_secure_allocator()

template<typename T>
mt_pooled_secure_allocator< T >::~mt_pooled_secure_allocator ( )
inlinenoexcept

Definition at line 41 of file mt_pooled_secure.h.

Member Function Documentation

◆ allocate()

template<typename T>
T* mt_pooled_secure_allocator< T >::allocate ( std::size_t  n,
const void *  hint = 0 
)
inline

◆ deallocate()

template<typename T>
void mt_pooled_secure_allocator< T >::deallocate ( T *  p,
std::size_t  n 
)
inline

Definition at line 52 of file mt_pooled_secure.h.

References mt_pooled_secure_allocator< T >::pools.

◆ get_bucket()

template<typename T>
size_t mt_pooled_secure_allocator< T >::get_bucket ( )
inlineprivate

Member Data Documentation

◆ pools


The documentation for this struct was generated from the following file:
Released under the MIT license