Dash Core Source Documentation (0.16.0.1)

Find detailed information regarding the Dash Core source code.

pooled_secure_allocator< T > Struct Template Reference

#include <pooled_secure.h>

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

Classes

struct  internal_secure_allocator
 

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

 pooled_secure_allocator (const size_type nrequested_size=32, const size_type nnext_size=32, const size_type nmax_size=0) noexcept
 
 ~pooled_secure_allocator () noexcept
 
T * allocate (std::size_t n, const void *hint=0)
 
void deallocate (T *p, std::size_t n)
 

Private Attributes

boost::pool< internal_secure_allocatorpool
 

Detailed Description

template<typename T>
struct pooled_secure_allocator< T >

Definition at line 21 of file pooled_secure.h.

Member Typedef Documentation

◆ base

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

Definition at line 23 of file pooled_secure.h.

◆ const_pointer

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

Definition at line 27 of file pooled_secure.h.

◆ const_reference

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

Definition at line 29 of file pooled_secure.h.

◆ difference_type

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

Definition at line 25 of file pooled_secure.h.

◆ pointer

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

Definition at line 26 of file pooled_secure.h.

◆ reference

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

Definition at line 28 of file pooled_secure.h.

◆ size_type

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

Definition at line 24 of file pooled_secure.h.

◆ value_type

template<typename T>
typedef base::value_type pooled_secure_allocator< T >::value_type

Definition at line 30 of file pooled_secure.h.

Constructor & Destructor Documentation

◆ pooled_secure_allocator()

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

Definition at line 31 of file pooled_secure.h.

◆ ~pooled_secure_allocator()

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

Definition at line 35 of file pooled_secure.h.

Member Function Documentation

◆ allocate()

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

Definition at line 37 of file pooled_secure.h.

◆ deallocate()

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

Definition at line 43 of file pooled_secure.h.

Member Data Documentation

◆ pool

template<typename T>
boost::pool<internal_secure_allocator> pooled_secure_allocator< T >::pool
private

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