| OpenMS 2.5.0

Classes | Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
_Alloc_base< _Tp, _Alloc > Class Template Reference

`#include <OpenMS/DATASTRUCTURES/KDTree.h>`

## 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

typedef _Node_::_Base_ptr _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 | ( |  | ) |

inline protected

## ◆ _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`
| ) |  |

inline protected

## ◆ _M_deallocate_node()

void _M_deallocate_node | ( | _Node_ *const | __P | ) |

inline protected

Referenced by _Alloc_base< _Tp, _Alloc >::NoLeakAlloc::~NoLeakAlloc().

## ◆ _M_destroy_node()

void _M_destroy_node | ( | _Node_ * | __p | ) |

inline protected

## ◆ get_allocator()

allocator_type get_allocator | ( |  | ) | const

inline

## Member Data Documentation

## ◆ _M_node_allocator

allocator_type _M_node_allocator

protected

Referenced by _Alloc_base< _Val, _Alloc >::_M_allocate_node(), _Alloc_base< _Val, _Alloc >::_M_deallocate_node(), _Alloc_base< _Val, _Alloc >::_M_destroy_node(), and _Alloc_base< _Val, _Alloc >::get_allocator().