|
RPNX::QueryGraph
Typed, memoized, concurrent query evaluation for C++23
|
Pending/value/error state specialization for operations returning no value. More...
#include <querygraph.hpp>
Public Member Functions | |
| result ()=default | |
| Construct a pending result. | |
| result (std::exception_ptr exception) | |
| Construct a failed result from an unexpected exception. | |
| void | test () const |
| Rethrow the stored error, if one exists. | |
| void | get () const |
| Verify successful completion or throw the stored error. | |
| void | value () const |
Alias for get(). | |
| void | set_value () |
| Replace any prior state with successful completion. | |
| void | set_error (error_result error) |
Replace any prior state with error. | |
| void | set_error (std::exception_ptr exception) |
| Replace any prior state with an unexpected exception. | |
| void | set_exception (std::exception_ptr exception) |
Compatibility spelling for set_error(exception). | |
| bool | has_result () const |
| Return whether evaluation produced success or an error. | |
| bool | has_value () const |
| Return whether evaluation completed successfully. | |
| bool | has_error () const |
| Return whether evaluation completed with an error. | |
| bool | has_exception () const |
Compatibility spelling for has_error(). | |
| bool | has_canonical_error () const |
| Return whether the result contains a canonical error. | |
| bool | has_unexpected_exception () const |
| Return whether the result contains an unexpected exception. | |
| error_result const & | get_error_result () const |
| Return the stored error state without throwing. | |
| std::exception_ptr | get_error () const |
| Materialize the stored error as an exception pointer. | |
| status | result_status () const |
| Return the status used when serializing this result. | |
| operator bool () const | |
| Return whether evaluation has reached any terminal state. | |
| result ()=default | |
| Construct a pending result. | |
| result (void value) | |
Construct a completed result from value. | |
| result (std::exception_ptr exception) | |
| Construct a failed result from an unexpected exception. | |
| void | test () const |
| Rethrow the stored error, if one exists. | |
| void & | get () & |
| Return the value or throw the stored error. | |
| void const & | get () const & |
| Return the value or throw the stored error. | |
| void && | get () && |
| Return the value or throw the stored error. | |
| void const && | get () const && |
| Return the value or throw the stored error. | |
| void & | value () & |
Alias for get() preserving the value category. | |
| void const & | value () const & |
Alias for get() preserving the value category. | |
| void && | value () && |
Alias for get() preserving the value category. | |
| void const && | value () const && |
Alias for get() preserving the value category. | |
| void | set_value (void value) |
| Replace any prior state with a completed value. | |
| void | set_error (error_result error) |
Replace any prior state with error. | |
| void | set_error (std::exception_ptr exception) |
| Replace any prior state with an unexpected exception. | |
| void | set_exception (std::exception_ptr exception) |
Compatibility spelling for set_error(exception). | |
| bool | has_result () const |
| Return whether evaluation produced either a value or an error. | |
| bool | has_value () const |
| Return whether evaluation completed successfully. | |
| bool | has_error () const |
| Return whether evaluation completed with an error. | |
| bool | has_exception () const |
Compatibility spelling for has_error(). | |
| bool | has_canonical_error () const |
| Return whether the result contains a canonical error. | |
| bool | has_unexpected_exception () const |
| Return whether the result contains an unexpected exception. | |
| error_result const & | get_error_result () const |
| Return the stored error state without throwing. | |
| std::exception_ptr | get_error () const |
| Materialize the stored error as an exception pointer. | |
| status | result_status () const |
| Return the status used when serializing this result. | |
| operator bool () const | |
| Return whether evaluation has reached any terminal state. | |
Pending/value/error state specialization for operations returning no value.
Definition at line 689 of file querygraph.hpp.
|
inline |
Construct a failed result from an unexpected exception.
Definition at line 699 of file querygraph.hpp.
|
inline |
Construct a completed result from value.
Definition at line 522 of file querygraph.hpp.
|
inline |
Construct a failed result from an unexpected exception.
Definition at line 527 of file querygraph.hpp.
|
inline |
Return the value or throw the stored error.
Definition at line 541 of file querygraph.hpp.
|
inline |
Return the value or throw the stored error.
Definition at line 557 of file querygraph.hpp.
|
inline |
Verify successful completion or throw the stored error.
Definition at line 713 of file querygraph.hpp.
References rpnx::querygraph::result< T >::test().
|
inline |
Return the value or throw the stored error.
Definition at line 549 of file querygraph.hpp.
|
inline |
Return the value or throw the stored error.
Definition at line 565 of file querygraph.hpp.
|
inline |
Materialize the stored error as an exception pointer.
Definition at line 665 of file querygraph.hpp.
|
inline |
Materialize the stored error as an exception pointer.
Definition at line 797 of file querygraph.hpp.
|
inline |
Return the stored error state without throwing.
Definition at line 659 of file querygraph.hpp.
|
inline |
Return the stored error state without throwing.
Definition at line 791 of file querygraph.hpp.
|
inline |
Return whether the result contains a canonical error.
Definition at line 647 of file querygraph.hpp.
|
inline |
Return whether the result contains a canonical error.
Definition at line 779 of file querygraph.hpp.
|
inline |
Return whether evaluation completed with an error.
Definition at line 635 of file querygraph.hpp.
|
inline |
Return whether evaluation completed with an error.
Definition at line 767 of file querygraph.hpp.
|
inline |
Compatibility spelling for has_error().
Definition at line 641 of file querygraph.hpp.
|
inline |
Compatibility spelling for has_error().
Definition at line 773 of file querygraph.hpp.
References rpnx::querygraph::result< T >::has_error().
|
inline |
Return whether evaluation produced either a value or an error.
Definition at line 623 of file querygraph.hpp.
|
inline |
Return whether evaluation produced success or an error.
Definition at line 755 of file querygraph.hpp.
|
inline |
Return whether the result contains an unexpected exception.
Definition at line 653 of file querygraph.hpp.
|
inline |
Return whether the result contains an unexpected exception.
Definition at line 785 of file querygraph.hpp.
|
inline |
Return whether evaluation completed successfully.
Definition at line 629 of file querygraph.hpp.
|
inline |
Return whether evaluation completed successfully.
Definition at line 761 of file querygraph.hpp.
|
inlineexplicit |
Return whether evaluation has reached any terminal state.
Definition at line 681 of file querygraph.hpp.
|
inlineexplicit |
Return whether evaluation has reached any terminal state.
Definition at line 813 of file querygraph.hpp.
References rpnx::querygraph::result< T >::has_result().
|
inline |
Return the status used when serializing this result.
Definition at line 671 of file querygraph.hpp.
|
inline |
Return the status used when serializing this result.
Definition at line 803 of file querygraph.hpp.
|
inline |
Replace any prior state with error.
Definition at line 604 of file querygraph.hpp.
|
inline |
Replace any prior state with error.
Definition at line 736 of file querygraph.hpp.
|
inline |
Replace any prior state with an unexpected exception.
Definition at line 611 of file querygraph.hpp.
|
inline |
Replace any prior state with an unexpected exception.
Definition at line 743 of file querygraph.hpp.
References rpnx::querygraph::result< T >::set_error(), and rpnx::querygraph::error_result::unexpected().
|
inline |
Compatibility spelling for set_error(exception).
Definition at line 617 of file querygraph.hpp.
|
inline |
Compatibility spelling for set_error(exception).
Definition at line 749 of file querygraph.hpp.
References rpnx::querygraph::result< T >::set_error().
|
inline |
Replace any prior state with successful completion.
Definition at line 729 of file querygraph.hpp.
|
inline |
Replace any prior state with a completed value.
Definition at line 597 of file querygraph.hpp.
|
inline |
Rethrow the stored error, if one exists.
Definition at line 532 of file querygraph.hpp.
|
inline |
Rethrow the stored error, if one exists.
Definition at line 704 of file querygraph.hpp.
|
inline |
Alias for get() preserving the value category.
Definition at line 573 of file querygraph.hpp.
|
inline |
Alias for get() preserving the value category.
Definition at line 585 of file querygraph.hpp.
|
inline |
Alias for get().
Definition at line 723 of file querygraph.hpp.
References rpnx::querygraph::result< T >::get().
|
inline |
Alias for get() preserving the value category.
Definition at line 579 of file querygraph.hpp.
|
inline |
Alias for get() preserving the value category.
Definition at line 591 of file querygraph.hpp.