|
CBMC
|
Holds either a valid parsed response or response sub-tree of type. More...
#include <response_or_error.h>
Collaboration diagram for response_or_errort< smtt >:Public Member Functions | |
| response_or_errort (smtt smt) | |
| response_or_errort (std::string message) | |
| 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. More... | |
| const std::vector< std::string > * | get_if_error () const |
| Gets the error messages if the response is invalid, or returns nullptr otherwise. More... | |
Private Attributes | |
| optionalt< smtt > | smt |
| std::vector< std::string > | 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.
|
inlineexplicit |
Definition at line 28 of file response_or_error.h.
|
inline |
Gets the error messages if the response is invalid, or returns nullptr otherwise.
Definition at line 46 of file response_or_error.h.
|
inline |
Gets the smt response if the response is valid, or returns nullptr otherwise.
Definition at line 35 of file response_or_error.h.
|
private |
Definition at line 61 of file response_or_error.h.
|
private |
Definition at line 60 of file response_or_error.h.