MIP_SDK
latest-2-g34f3e39
MicroStrain Communications Library for embedded systems
|
Represents a list of zero or more actions and their results. More...
#include <composite_result.hpp>
Classes | |
struct | Entry |
Public Member Functions | |
CompositeResult ()=default | |
CompositeResult (bool success) | |
CompositeResult (CmdResult result) | |
CompositeResult (CompositeDescriptor cmd, CmdResult result) | |
CompositeResult (const Entry &result) | |
bool | isEmpty () const |
bool | notEmpty () const |
size_t | count () const |
bool | allSuccessful () const |
bool | allFailed () const |
bool | anySuccessful () const |
bool | anyFailed () const |
bool | noneSuccessful () const |
bool | noneFailed () const |
bool | allMatch (CmdResult result) const |
bool | anyMatch (CmdResult result) const |
bool | noneMatch (CmdResult result) const |
operator bool () const | |
bool | operator! () const |
CmdResult | summary () const |
void | clear () |
void | append (CmdResult result, CompositeDescriptor desc=0x0000) |
void | append (Entry result) |
template<class MipType > | |
void | append (CmdResult result, uint16_t index=0) |
void | extend (const CompositeResult &other) |
CompositeResult & | operator+= (bool result) |
CompositeResult & | operator+= (CmdResult result) |
CompositeResult & | operator+= (Entry result) |
bool | appendAndCheckThisCmd (bool result, uint32_t id) |
bool | appendAndCheckThisCmd (CmdResult result, CompositeDescriptor desc) |
bool | appendAndCheckThisCmd (Entry result) |
const Entry & | first () const |
Entry & | first () |
const Entry & | last () const |
Entry & | last () |
CmdResult | firstResult () const |
CmdResult | lastResult () const |
std::vector< Entry >::iterator | begin () |
std::vector< Entry >::iterator | end () |
std::vector< Entry >::const_iterator | begin () const |
std::vector< Entry >::const_iterator | end () const |
Represents a list of zero or more actions and their results.
|
default |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |