xgboost
公共成员函数 | 友元 | 所有成员列表
xgboost::collective::Result 结构体参考

一种比抛出 dmlc 异常更容易处理的错误类型。我们可以记录和传播系统错误代码。 更多...

#include <result.h>

xgboost::collective::Result 的协作图
Collaboration graph

公共成员函数

 Result () noexcept(true)=default
 
 Result (std::string msg)
 
 Result (std::string msg, std::error_code errc)
 
 Result (std::string msg, Result &&prev)
 
 Result (std::string msg, std::error_code errc, Result &&prev)
 
 Result (Result const &that)=delete
 
结果operator= (Result const &that)=delete
 
 Result (Result &&that)=default
 
结果operator= (Result &&that)=default
 
bool OK () const noexcept(true)
 
std::string Report () const
 
auto Code () const
 返回根系统错误。如果没有系统错误,这可能会返回成功。更多...
 
bool operator== (Result const &that) const noexcept(true)
 

友元

结果 operator+ (Result &&lhs, Result &&rhs)
 

详细描述

一种比抛出 dmlc 异常更容易处理的错误类型。我们可以记录并传播系统错误代码。

构造函数和析构函数文档

◆ Result() [1/7]

xgboost::collective::Result::Result ( )
defaultnoexcept

◆ Result() [2/7]

xgboost::collective::Result::Result ( std::string  msg)
内联显式

◆ Result() [3/7]

xgboost::collective::Result::Result ( std::string  msg,
std::error_code  errc 
)
内联显式

◆ Result() [4/7]

xgboost::collective::Result::Result ( std::string  msg,
结果 &&  prev 
)
inline

◆ Result() [5/7]

xgboost::collective::Result::Result ( std::string  msg,
std::error_code  errc,
结果 &&  prev 
)
inline

◆ Result() [6/7]

xgboost::collective::Result::Result ( Result const &  that)
删除

◆ Result() [7/7]

xgboost::collective::Result::Result ( 结果 &&  that)
默认

成员函数文档

◆ Code()

auto xgboost::collective::Result::Code ( ) const
inline

返回根系统错误。如果没有系统错误,这可能会返回成功。

◆ OK()

bool xgboost::collective::Result::OK ( ) const
inlinenoexcept

◆ operator=() [1/2]

Result& xgboost::collective::Result::operator= ( 结果 &&  that)
默认

◆ operator=() [2/2]

Result& xgboost::collective::Result::operator= ( Result const &  that)
删除

◆ operator==()

bool xgboost::collective::Result::operator== ( Result const &  that) const
inlinenoexcept

◆ Report()

std::string xgboost::collective::Result::Report ( ) const
inline

友元和相关函数文档

◆ operator+

Result operator+ ( 结果 &&  左侧,
结果 &&  rhs 
)
友元

此结构体的文档生成自以下文件: