ADTF
3.18.2
|
Public API for ResultInfo type, functions and macros. More...
Go to the source code of this file.
Classes | |
struct | ResultInfo< T > |
Basic result information template, used by a_util::result::Result . More... | |
struct | ResultInfo< void > |
Implements basic success result information for usage with a_util::result::Result . More... | |
Namespaces | |
a_util | |
Serves as the root component, with common functionality documented in core functionality. | |
a_util::result | |
Serves as component for functionality handling error and return types. | |
Macros | |
#define | _MAKE_RESULT(_no, _label) |
Create a result type and a constant instance of this type in an unnamed namespace. More... | |
Functions | |
template<typename ResultType > | |
bool | isOk (const ResultType &result) |
Check whether a return value indicates a successful function execution. More... | |
template<typename ResultType > | |
bool | isFailed (const ResultType &result) |
Check whether a return value indicates an unsuccessful function execution. More... | |
template<typename ResultTypeLHS , typename ResultTypeRHS > | |
bool | operator== (const ResultInfo< ResultTypeLHS > &lhs, const ResultInfo< ResultTypeRHS > &rhs) |
Compare two specialized result information objects for equality. More... | |
template<typename ResultTypeLHS , typename ResultTypeRHS > | |
bool | operator!= (const ResultInfo< ResultTypeLHS > &lhs, const ResultInfo< ResultTypeRHS > &rhs) |
Compare two specialized result information objects for inequality. More... | |
template<typename ResultTypeLHS , typename ResultTypeRHS > | |
bool | operator< (const ResultInfo< ResultTypeLHS > &lhs, const ResultInfo< ResultTypeRHS > &rhs) |
Less-than operator for two specialized result information objects. More... | |
template<typename ResultTypeLHS , typename ResultTypeRHS > | |
bool | operator> (const ResultInfo< ResultTypeLHS > &lhs, const ResultInfo< ResultTypeRHS > &rhs) |
Greater-than operator for two specialized result information objects. More... | |
template<typename ResultTypeLHS , typename ResultTypeRHS > | |
bool | operator<= (const ResultInfo< ResultTypeLHS > &lhs, const ResultInfo< ResultTypeRHS > &rhs) |
Less-than-or-equal operator for two specialized result information objects. More... | |
template<typename ResultTypeLHS , typename ResultTypeRHS > | |
bool | operator>= (const ResultInfo< ResultTypeLHS > &lhs, const ResultInfo< ResultTypeRHS > &rhs) |
Greater-than-or-equal operator for two specialized result information objects. More... | |
Public API for ResultInfo type, functions and macros.
Copyright @ 2023 VW Group. All rights reserved. This Source Code Form is subject to the terms of the Mozilla Public License, v. 2.0. If a copy of the MPL was not distributed with this file, You can obtain one at https://mozilla.org/MPL/2.0/.
Definition in file result_info_decl.h.
#define _MAKE_RESULT | ( | _no, | |
_label | |||
) |
Create a result type and a constant instance of this type in an unnamed namespace.
[in] | _no | Numeric representation of the result type |
[in] | _label | Stringified version for the result type |
Definition at line 36 of file result_info_decl.h.