![]() |
The Gaudi Framework
v31r0 (aeb156f0)
|
#include "boost/preprocessor/facilities/overload.hpp"#include <ostream>#include <type_traits>#include <utility>#include "GaudiKernel/Kernel.h"
Go to the source code of this file.
Classes | |
| struct | is_StatusCode_enum< T > |
| class | StatusCode |
| This class is used for returning status codes from appropriate routines. More... | |
| class | StatusCode::Category |
| The category assigned to a StatusCode. More... | |
| class | StatusCode::ScopedDisableChecking |
| Simple RAII class to ignore unchecked StatusCode instances in a scope. More... | |
Macros | |
| #define | STATUSCODE_ENUM_DECL(ENUM) |
| Declare an enum to be used as StatusCode value. More... | |
| #define | STATUSCODE_ENUM_IMPL(...) BOOST_PP_OVERLOAD( STATUSCODE_ENUM_IMPL_, __VA_ARGS__ )( __VA_ARGS__ ) |
| Assign a category to the StatusCode enum declared with STATUSCODE_ENUM_DECL( ENUM ) More... | |
| #define | STATUSCODE_ENUM_IMPL_1(ENUM) const StatusCode::Category& is_StatusCode_enum<ENUM>::instance = StatusCode::default_category(); |
| #define | STATUSCODE_ENUM_IMPL_2(ENUM, CATEGORY) const StatusCode::Category& is_StatusCode_enum<ENUM>::instance = CATEGORY{}; |
Functions | |
| bool | operator== (const StatusCode &lhs, const StatusCode &rhs) |
| StatusCode | operator& (StatusCode lhs, const StatusCode &rhs) |
| Ternary AND operator. More... | |
| StatusCode | operator| (StatusCode lhs, const StatusCode &rhs) |
| Ternary OR operator. More... | |
| bool & | operator&= (bool &lhs, const StatusCode &sc) |
| Boolean AND assignment operator. More... | |
| bool & | operator|= (bool &lhs, const StatusCode &sc) |
| Boolean OR assignment operator. More... | |
| #define STATUSCODE_ENUM_DECL | ( | ENUM | ) |
Declare an enum to be used as StatusCode value.
| ENUM | enum class |
Definition at line 239 of file StatusCode.h.
| #define STATUSCODE_ENUM_IMPL | ( | ... | ) | BOOST_PP_OVERLOAD( STATUSCODE_ENUM_IMPL_, __VA_ARGS__ )( __VA_ARGS__ ) |
Assign a category to the StatusCode enum declared with STATUSCODE_ENUM_DECL( ENUM )
| ENUM | enum class |
| CATEGORY | (optional) category, otherwise use default StatusCode category |
Definition at line 248 of file StatusCode.h.
| #define STATUSCODE_ENUM_IMPL_1 | ( | ENUM | ) | const StatusCode::Category& is_StatusCode_enum<ENUM>::instance = StatusCode::default_category(); |
Definition at line 250 of file StatusCode.h.
| #define STATUSCODE_ENUM_IMPL_2 | ( | ENUM, | |
| CATEGORY | |||
| ) | const StatusCode::Category& is_StatusCode_enum<ENUM>::instance = CATEGORY{}; |
Definition at line 253 of file StatusCode.h.
|
inline |
|
inline |
|
inline |
0(FAILURE) and 1(SUCCESS) the category is ignored sc==StatusCode::SUCCESS is equivalent to sc.isSuccess() for all categories Definition at line 284 of file StatusCode.h.
|
inline |
|
inline |