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

Strong identity of an object which can have one container membership. 更多...

#include <Container.h>

Public 成员函数

 MembershipId ()=default
 Constructs a MembershipId.
 
 MembershipId (std::string value)
 Constructs a MembershipId.
 
bool isValid () const noexcept
 Return whether this identity is usable.
 
const std::string & value () const noexcept
 Return the owned stable spelling.
 

静态 Public 成员函数

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

友元

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

详细描述

Strong identity of an object which can have one container membership.

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

构造及析构函数说明

◆ MembershipId() [1/2]

eve::container::MembershipId::MembershipId ( )
default

Constructs a MembershipId.

被这些函数引用 from().

◆ MembershipId() [2/2]

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

Constructs a MembershipId.

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

成员函数说明

◆ from()

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

Construct a valid membership ID, rejecting an empty value.

Constructs a MembershipId.

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

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

被这些函数引用 eve::building::BuildingGarrisonContainerAdapter::snapshot().

◆ isValid()

bool eve::container::MembershipId::isValid ( ) const
inlinenoexcept

Return whether this identity is usable.

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

被这些函数引用 eve::vehicle::VehicleSeatContainerAdapter::exit().

◆ value()

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

Return the owned stable spelling.

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

被这些函数引用 from().

友元及相关函数文档

◆ operator==

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

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