CBMC
|
Holds either a valid parsed response or response sub-tree of type. More...
#include <response_or_error.h>
Public Member Functions | |
response_or_errort (smtt smt) | |
response_or_errort (std::vector< std::string > messages) | |
const smtt * | get_if_valid () const |
Gets the smt response if the response is valid, or returns nullptr otherwise. | |
const std::vector< std::string > * | get_if_error () const |
Gets the error messages if the response is invalid, or returns nullptr otherwise. | |
Private Attributes | |
std::variant< smtt, std::vector< std::string > > | smt_or_messages |
Holds either a valid parsed response or response sub-tree of type.
smtt | or a collection of message strings explaining why the given input was not valid. |
Definition at line 16 of file response_or_error.h.
|
inlineexplicit |
Definition at line 19 of file response_or_error.h.
|
inlineexplicit |
Definition at line 23 of file response_or_error.h.
|
inline |
Gets the error messages if the response is invalid, or returns nullptr otherwise.
Definition at line 37 of file response_or_error.h.
Gets the smt response if the response is valid, or returns nullptr otherwise.
Definition at line 30 of file response_or_error.h.
|
private |
Definition at line 43 of file response_or_error.h.