载入中...
搜索中...
未找到
eve::container::ContainerId类 参考

Strong identity of one runtime or persistent container. 更多...

#include <Container.h>

Public 成员函数

 ContainerId ()=default
 Constructs a ContainerId.
 
 ContainerId (std::string value)
 Constructs a ContainerId.
 
bool isValid () const noexcept
 Return whether this ID is usable by a transfer request.
 
const std::string & value () const noexcept
 Return the owned stable spelling.
 

静态 Public 成员函数

static std::optional< ContainerId > from (std::string_view value)
 Construct a valid ID, rejecting an empty value.
 

友元

bool operator== (const ContainerId &, const ContainerId &) noexcept=default
 

详细描述

Strong identity of one runtime or persistent container.

在文件 Container.h 第 44 行定义.

构造及析构函数说明

◆ ContainerId() [1/2]

eve::container::ContainerId::ContainerId ( )
default

Constructs a ContainerId.

被这些函数引用 from().

◆ ContainerId() [2/2]

eve::container::ContainerId::ContainerId ( std::string  value)
inlineexplicit

Constructs a ContainerId.

在文件 Container.h 第 49 行定义.

成员函数说明

◆ from()

static std::optional< ContainerId > eve::container::ContainerId::from ( std::string_view  value)
inlinestatic

Construct a valid ID, rejecting an empty value.

Constructs a ContainerId.

在文件 Container.h 第 52 行定义.

引用了 ContainerId() , 以及 value().

◆ isValid()

◆ value()

const std::string & eve::container::ContainerId::value ( ) const
inlinenoexcept

Return the owned stable spelling.

在文件 Container.h 第 60 行定义.

被这些函数引用 from().

友元及相关函数文档

◆ operator==

bool operator== ( const ContainerId &  ,
const ContainerId &   
)
friend

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