Aleph-w 3.0
A C++ Library for Data Structures and Algorithms
Loading...
Searching...
No Matches
Aleph::ArenaTreeAllocator< Node > Struct Template Reference

#include <tpl_dynSetTree.H>

Inheritance diagram for Aleph::ArenaTreeAllocator< Node >:
[legend]
Collaboration diagram for Aleph::ArenaTreeAllocator< Node >:
[legend]

Public Member Functions

 ArenaTreeAllocator (const size_t &sz=1024 *1024)
 
 ArenaTreeAllocator (const char *base_addr, const size_t &sz)
 
Nodealloc_lval (const typename Node::key_type &key) override
 
Nodealloc_rval (typename Node::key_type &&key) override
 
void unalloc (Node *p) override
 
size_t allocated_size () const noexcept
 
size_t available_size () const noexcept
 
 ~ArenaTreeAllocator ()=default
 
- Public Member Functions inherited from Aleph::AbstractTreeNodeAllocator< Node >
 AbstractTreeNodeAllocator ()=default
 
virtual ~AbstractTreeNodeAllocator ()=default
 

Public Attributes

AhArenaAllocator arena
 

Detailed Description

template<typename Node>
struct Aleph::ArenaTreeAllocator< Node >

Definition at line 119 of file tpl_dynSetTree.H.

Constructor & Destructor Documentation

◆ ArenaTreeAllocator() [1/2]

template<typename Node >
Aleph::ArenaTreeAllocator< Node >::ArenaTreeAllocator ( const size_t sz = 1024 * 1024)
inline

Definition at line 123 of file tpl_dynSetTree.H.

◆ ArenaTreeAllocator() [2/2]

template<typename Node >
Aleph::ArenaTreeAllocator< Node >::ArenaTreeAllocator ( const char base_addr,
const size_t sz 
)
inline

Definition at line 129 of file tpl_dynSetTree.H.

◆ ~ArenaTreeAllocator()

Member Function Documentation

◆ alloc_lval()

template<typename Node >
Node * Aleph::ArenaTreeAllocator< Node >::alloc_lval ( const typename Node::key_type &  key)
inlineoverridevirtual

◆ alloc_rval()

template<typename Node >
Node * Aleph::ArenaTreeAllocator< Node >::alloc_rval ( typename Node::key_type &&  key)
inlineoverridevirtual

◆ allocated_size()

template<typename Node >
size_t Aleph::ArenaTreeAllocator< Node >::allocated_size ( ) const
inlinenoexcept

◆ available_size()

template<typename Node >
size_t Aleph::ArenaTreeAllocator< Node >::available_size ( ) const
inlinenoexcept

◆ unalloc()

template<typename Node >
void Aleph::ArenaTreeAllocator< Node >::unalloc ( Node p)
inlineoverridevirtual

Member Data Documentation

◆ arena


The documentation for this struct was generated from the following file: