OpenMS
_Alloc_base< _Tp, _Alloc > Class Template Reference

#include <OpenMS/DATASTRUCTURES/KDTree.h>

Inheritance diagram for _Alloc_base< _Tp, _Alloc >:
[legend]
Collaboration diagram for _Alloc_base< _Tp, _Alloc >:
[legend]

Classes

class  NoLeakAlloc
 

Public Types

typedef _Node< _Tp > _Node_
 
typedef _Node_::_Base_ptr _Base_ptr
 
typedef _Alloc allocator_type
 

Public Member Functions

 _Alloc_base (allocator_type const &__A)
 
allocator_type get_allocator () const
 

Protected Member Functions

_Node__M_allocate_node ()
 
void _M_deallocate_node (_Node_ *const __P)
 
void _M_construct_node (_Node_ *__p, _Tp const __V=_Tp(), _Base_ptr const __PARENT=NULL, _Base_ptr const __LEFT=NULL, _Base_ptr const __RIGHT=NULL)
 
void _M_destroy_node (_Node_ *__p)
 

Protected Attributes

allocator_type _M_node_allocator
 

Member Typedef Documentation

◆ _Base_ptr

◆ _Node_

typedef _Node<_Tp> _Node_

◆ allocator_type

typedef _Alloc allocator_type

Constructor & Destructor Documentation

◆ _Alloc_base()

_Alloc_base ( allocator_type const &  __A)
inline

Member Function Documentation

◆ _M_allocate_node()

_Node_* _M_allocate_node ( )
inlineprotected

◆ _M_construct_node()

void _M_construct_node ( _Node_ __p,
_Tp const  __V = _Tp(),
_Base_ptr const  __PARENT = NULL,
_Base_ptr const  __LEFT = NULL,
_Base_ptr const  __RIGHT = NULL 
)
inlineprotected

◆ _M_deallocate_node()

void _M_deallocate_node ( _Node_ *const  __P)
inlineprotected

◆ _M_destroy_node()

void _M_destroy_node ( _Node_ __p)
inlineprotected

◆ get_allocator()

allocator_type get_allocator ( ) const
inline

Member Data Documentation

◆ _M_node_allocator