GKD.RoboCtrl
载入中...
搜索中...
未找到
roboctrl::multiton::details::multiton_impl< owner_type > 模板结构体 参考final

详细描述

template<typename owner_type>
struct roboctrl::multiton::details::multiton_impl< owner_type >

在文件 multiton.hpp101 行定义.

类 roboctrl::multiton::details::multiton_impl< owner_type > 继承关系图:
roboctrl::utils::immovable_base roboctrl::utils::not_copyable_base

Public 类型

using key_type = typename owner_type::info_type::key_type
 
using info_type = typename owner_type::info_type
 

静态 Public 成员函数

static void init (const info_type &info)
 
static bool contains (const key_type &key)
 
static auto get (const key_type &key) -> owner_type &
 

静态 Public 属性

static std::mutex mutex_ {}
 
static std::unordered_map< key_type, std::unique_ptr< owner_type > > instances
 

额外继承的成员函数

- Public 成员函数 继承自 roboctrl::utils::immovable_base
 immovable_base (immovable_base &&)=delete
 
immovable_baseoperator= (immovable_base &&)=delete
 
- Public 成员函数 继承自 roboctrl::utils::not_copyable_base
 not_copyable_base (const not_copyable_base &)=delete
 
not_copyable_baseoperator= (const not_copyable_base &)=delete
 

成员类型定义说明

◆ info_type

template<typename owner_type >
using roboctrl::multiton::details::multiton_impl< owner_type >::info_type = typename owner_type::info_type

在文件 multiton.hpp110 行定义.

◆ key_type

template<typename owner_type >
using roboctrl::multiton::details::multiton_impl< owner_type >::key_type = typename owner_type::info_type::key_type

在文件 multiton.hpp105 行定义.

成员函数说明

◆ contains()

template<typename owner_type >
static bool roboctrl::multiton::details::multiton_impl< owner_type >::contains ( const key_type &  key)
inlinestatic

在文件 multiton.hpp121 行定义.

◆ get()

template<typename owner_type >
static auto roboctrl::multiton::details::multiton_impl< owner_type >::get ( const key_type &  key) -> owner_type&
inlinestatic

在文件 multiton.hpp126 行定义.

◆ init()

template<typename owner_type >
static void roboctrl::multiton::details::multiton_impl< owner_type >::init ( const info_type &  info)
inlinestatic

在文件 multiton.hpp112 行定义.

类成员变量说明

◆ instances

template<typename owner_type >
std::unordered_map<key_type, std::unique_ptr<owner_type> > roboctrl::multiton::details::multiton_impl< owner_type >::instances
static

在文件 multiton.hpp108 行定义.

◆ mutex_

template<typename owner_type >
std::mutex roboctrl::multiton::details::multiton_impl< owner_type >::mutex_ {}
static

在文件 multiton.hpp107 行定义.


该结构体的文档由以下文件生成: