xgboost
Classes | Namespaces | Macros | Functions
result.h File Reference
#include <cstdint>
#include <memory>
#include <string>
#include <system_error>
#include <utility>
Include dependency graph for result.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

struct  xgboost::collective::detail::ResultImpl
 
struct  xgboost::collective::Result
 An error type that's easier to handle than throwing dmlc exception. We can record and propagate the system error code. More...
 

Namespaces

 xgboost
 Learner interface that integrates objective, gbm and evaluation together. This is the user facing XGBoost training module.
 
 xgboost::collective
 
 xgboost::collective::detail
 

Macros

#define __builtin_FILE()   nullptr
 
#define __builtin_LINE()   (-1)
 

Functions

std::string xgboost::collective::detail::MakeMsg (std::string &&msg, char const *file, std::int32_t line)
 
Result xgboost::collective::operator+ (Result &&lhs, Result &&rhs)
 
auto xgboost::collective::Success () noexcept(true)
 Return success. More...
 
auto xgboost::collective::Fail (std::string msg, char const *file=__builtin_FILE(), std::int32_t line=__builtin_LINE())
 Return failure. More...
 
auto xgboost::collective::Fail (std::string msg, std::error_code errc, char const *file=__builtin_FILE(), std::int32_t line=__builtin_LINE())
 Return failure with errno. More...
 
auto xgboost::collective::Fail (std::string msg, Result &&prev, char const *file=__builtin_FILE(), std::int32_t line=__builtin_LINE())
 Return failure with a previous error. More...
 
auto xgboost::collective::Fail (std::string msg, std::error_code errc, Result &&prev, char const *file=__builtin_FILE(), std::int32_t line=__builtin_LINE())
 Return failure with a previous error and a new errno. More...
 
template<typename Fn >
std::enable_if_t< std::is_invocable_v< Fn >, Result > xgboost::collective::operator<< (Result &&r, Fn &&fn)
 
void xgboost::collective::SafeColl (Result const &rc, char const *file=__builtin_FILE(), std::int32_t line=__builtin_LINE())
 

Macro Definition Documentation

◆ __builtin_FILE

#define __builtin_FILE ( )    nullptr

◆ __builtin_LINE

#define __builtin_LINE ( )    (-1)