|
Dev Essential
1.6.3
|
#include <result_description_decl.h>
Public Types | |
| typedef ReferenceCountedObjectInterface< DescriptionIntf > | ReferenceCountedDescriptionType |
| Reference counted error description type. | |
Public Member Functions | |
| ResultDescriptionTraits ()=delete | |
| Must not be constructed/copied/moved. | |
| ResultDescriptionTraits (const ResultDescriptionTraits &)=delete | |
| ResultDescriptionTraits & | operator= (const ResultDescriptionTraits &)=delete |
| ResultDescriptionTraits (ResultDescriptionTraits &&)=delete | |
| ResultDescriptionTraits & | operator= (ResultDescriptionTraits &&)=delete |
Static Public Member Functions | |
| static bool | isDetailedDescriptionSet (std::uint64_t value) |
| static bool | isErrorCodeSet (std::uint64_t value) |
| static constexpr std::uint64_t | toInternalErrorCode (std::int32_t error_code) noexcept |
| static constexpr std::int32_t | toExternalErrorCode (std::uint64_t error_code) noexcept |
| static constexpr const ReferenceCountedDescriptionType * | toInternalErrorPointer (std::uint64_t error_code) noexcept |
Static Public Attributes | |
| static const std::uint64_t | error_code_bit = 1ull << 63 |
| The error code bit indicating whether only the error code (1) was set or not (0) | |
| static const std::uint64_t | error_code_bitmask = ~error_code_bit |
| The error code bitmask to mask out the error code bit. | |
| static const std::uint64_t | error_code_serialize_bitmask = 0x00000000FFFFFFFF |
| The bitmask to serialize the error code to its internal representation. | |
| static const std::uint64_t | error_code_deserialize_bitmask = 0xFFFFFFFF00000000 |
| The bitmask to deserialize the internal error representation to its original value. | |
Traits type for the result description
| DescriptionIntf | The interface used to retrieve the error information |
|
inlinestatic |
Check whether the detailed description was allocated
| [in] | value | To check whether a detailed description was allocated |
true if detailed description was allocated (the error code bit is not set), false otherwise
|
inlinestatic |
Check whether only the error code was set
| [in] | value | Pointer to the description type that is checked for the error code bit. |
true if only the error code was set (the error code bit is set), false otherwise
|
inlinestaticconstexprnoexcept |
Get the external error code from the internal error code representation
| [in] | error_code | The internal error code representation. |
|
inlinestaticconstexprnoexcept |
Get the internal error code representation from the external error code
| [in] | error_code | The external error code |
error_code
|
inlinestaticconstexprnoexcept |
Get the internal error pointer representation from the internal error code representation
| [in] | error_code | The internal error code representation |