NIM 跨平台 C++ SDK
载入中...
搜索中...
未找到
phmap::priv::node_handle_base< PolicyTraits, Alloc > 模板类 参考

#include <phmap_base.h>

类 phmap::priv::node_handle_base< PolicyTraits, Alloc > 继承关系图:
phmap::priv::node_handle< Policy, PolicyTraits, Alloc, typename > phmap::priv::node_handle< Policy, PolicyTraits, Alloc, phmap::void_t< typename Policy::mapped_type > >

struct  move_tag_t
 
struct  transfer_tag_t
 

Public 类型

using allocator_type = Alloc
 

Public 成员函数

constexpr node_handle_base ()
 
 node_handle_base (node_handle_base &&other) noexcept
 
 ~node_handle_base ()
 
node_handle_baseoperator= (node_handle_base &&other) noexcept
 
bool empty () const noexcept
 
 operator bool () const noexcept
 
allocator_type get_allocator () const
 

Protected 类型

using slot_type = typename PolicyTraits::slot_type
 

Protected 成员函数

 node_handle_base (transfer_tag_t, const allocator_type &a, slot_type *s)
 
 node_handle_base (move_tag_t, const allocator_type &a, slot_type *s)
 
 node_handle_base (const allocator_type &a, slot_type *s)
 
void destroy ()
 
void reset ()
 
slot_typeslot () const
 
allocator_typealloc ()
 

Private 属性

phmap::optional< allocator_typealloc_
 
phmap::aligned_storage_t< sizeof(slot_type), alignof(slot_type)> slot_space_
 

友元

struct CommonAccess
 

成员类型定义说明

◆ allocator_type

template<typename PolicyTraits , typename Alloc >
using phmap::priv::node_handle_base< PolicyTraits, Alloc >::allocator_type = Alloc

◆ slot_type

template<typename PolicyTraits , typename Alloc >
using phmap::priv::node_handle_base< PolicyTraits, Alloc >::slot_type = typename PolicyTraits::slot_type
protected

构造及析构函数说明

◆ node_handle_base() [1/5]

template<typename PolicyTraits , typename Alloc >
constexpr phmap::priv::node_handle_base< PolicyTraits, Alloc >::node_handle_base ( )
inlineconstexpr

◆ node_handle_base() [2/5]

template<typename PolicyTraits , typename Alloc >
phmap::priv::node_handle_base< PolicyTraits, Alloc >::node_handle_base ( node_handle_base< PolicyTraits, Alloc > && other)
inlinenoexcept

◆ ~node_handle_base()

template<typename PolicyTraits , typename Alloc >
phmap::priv::node_handle_base< PolicyTraits, Alloc >::~node_handle_base ( )
inline

◆ node_handle_base() [3/5]

template<typename PolicyTraits , typename Alloc >
phmap::priv::node_handle_base< PolicyTraits, Alloc >::node_handle_base ( transfer_tag_t ,
const allocator_type & a,
slot_type * s )
inlineprotected

◆ node_handle_base() [4/5]

template<typename PolicyTraits , typename Alloc >
phmap::priv::node_handle_base< PolicyTraits, Alloc >::node_handle_base ( move_tag_t ,
const allocator_type & a,
slot_type * s )
inlineprotected

◆ node_handle_base() [5/5]

template<typename PolicyTraits , typename Alloc >
phmap::priv::node_handle_base< PolicyTraits, Alloc >::node_handle_base ( const allocator_type & a,
slot_type * s )
inlineprotected

成员函数说明

◆ alloc()

template<typename PolicyTraits , typename Alloc >
allocator_type * phmap::priv::node_handle_base< PolicyTraits, Alloc >::alloc ( )
inlineprotected

◆ destroy()

template<typename PolicyTraits , typename Alloc >
void phmap::priv::node_handle_base< PolicyTraits, Alloc >::destroy ( )
inlineprotected

◆ empty()

template<typename PolicyTraits , typename Alloc >
bool phmap::priv::node_handle_base< PolicyTraits, Alloc >::empty ( ) const
inlinenoexcept

◆ get_allocator()

template<typename PolicyTraits , typename Alloc >
allocator_type phmap::priv::node_handle_base< PolicyTraits, Alloc >::get_allocator ( ) const
inline

◆ operator bool()

template<typename PolicyTraits , typename Alloc >
phmap::priv::node_handle_base< PolicyTraits, Alloc >::operator bool ( ) const
inlineexplicitnoexcept

◆ operator=()

template<typename PolicyTraits , typename Alloc >
node_handle_base & phmap::priv::node_handle_base< PolicyTraits, Alloc >::operator= ( node_handle_base< PolicyTraits, Alloc > && other)
inlinenoexcept

◆ reset()

template<typename PolicyTraits , typename Alloc >
void phmap::priv::node_handle_base< PolicyTraits, Alloc >::reset ( )
inlineprotected

◆ slot()

template<typename PolicyTraits , typename Alloc >
slot_type * phmap::priv::node_handle_base< PolicyTraits, Alloc >::slot ( ) const
inlineprotected

友元及相关函数文档

◆ CommonAccess

template<typename PolicyTraits , typename Alloc >
friend struct CommonAccess
friend

类成员变量说明

◆ alloc_

template<typename PolicyTraits , typename Alloc >
phmap::optional<allocator_type> phmap::priv::node_handle_base< PolicyTraits, Alloc >::alloc_
private

◆ slot_space_

template<typename PolicyTraits , typename Alloc >
phmap::aligned_storage_t<sizeof(slot_type), alignof(slot_type)> phmap::priv::node_handle_base< PolicyTraits, Alloc >::slot_space_
mutableprivate

该类的文档由以下文件生成: