44 {
return c_outcome_value == to_compare.c_outcome_value; }
50 {
return c_outcome_value == to_compare; }
53 int value()
const {
return c_outcome_value; }
68 #define PROMOTE_OUTCOME(outc) \
69 if (outc != common::OKAY) return outc
80 #define DEFINE_OUTCOME(NAME, CURRENT_VALUE, INFO_STRING) \
90 #define DEFINE_API_OUTCOME(NAME, CURRENT_VALUE, INFO_STRING) \
Outcomes describe the state of completion for an operation.
bool equal_to(const outcome &to_compare) const
Returns true if this outcome is equal to "to_compare".
outcome(int value=0)
Represents the completion of an operation as a particular "value".
~outcome()
destructor resets outcome value.
int packed_size() const
a convenience function for those packing outcomes.
bool operator==(int to_compare) const
Returns true if this outcome is equal to the integer "to_compare".
Constants and objects used throughout HOOPLE.
The guards collection helps in testing preconditions and reporting errors.