rippled
Classes | Public Member Functions | Static Public Attributes | Private Attributes | List of all members
ripple::detail::qalloc_impl< class > Class Template Reference
Collaboration diagram for ripple::detail::qalloc_impl< class >:
Collaboration graph
[legend]

Classes

class  block
 

Public Member Functions

 qalloc_impl ()=default
 
 qalloc_impl (qalloc_impl const &)=delete
 
qalloc_imploperator= (qalloc_impl const &)=delete
 
 ~qalloc_impl ()
 
void * allocate (std::size_t bytes, std::size_t align)
 
void deallocate (void *p)
 

Static Public Attributes

static constexpr auto block_size = kilobytes(256)
 

Private Attributes

blockused_ = nullptr
 
blockfree_ = nullptr
 

Detailed Description

template<class = void>
class ripple::detail::qalloc_impl< class >

Definition at line 40 of file qalloc.h.

Constructor & Destructor Documentation

◆ qalloc_impl() [1/2]

template<class = void>
ripple::detail::qalloc_impl< class >::qalloc_impl ( )
default

◆ qalloc_impl() [2/2]

template<class = void>
ripple::detail::qalloc_impl< class >::qalloc_impl ( qalloc_impl< class > const &  )
delete

◆ ~qalloc_impl()

template<class _ >
ripple::detail::qalloc_impl< _ >::~qalloc_impl

Definition at line 217 of file qalloc.h.

Member Function Documentation

◆ operator=()

template<class = void>
qalloc_impl& ripple::detail::qalloc_impl< class >::operator= ( qalloc_impl< class > const &  )
delete

◆ allocate()

template<class _ >
void * ripple::detail::qalloc_impl< _ >::allocate ( std::size_t  bytes,
std::size_t  align 
)

Definition at line 235 of file qalloc.h.

◆ deallocate()

template<class _ >
void ripple::detail::qalloc_impl< _ >::deallocate ( void *  p)

Definition at line 270 of file qalloc.h.

Member Data Documentation

◆ used_

template<class = void>
block* ripple::detail::qalloc_impl< class >::used_ = nullptr
private

Definition at line 67 of file qalloc.h.

◆ free_

template<class = void>
block* ripple::detail::qalloc_impl< class >::free_ = nullptr
private

Definition at line 68 of file qalloc.h.

◆ block_size

template<class = void>
constexpr auto ripple::detail::qalloc_impl< class >::block_size = kilobytes(256)
staticconstexpr

Definition at line 71 of file qalloc.h.