Interface for checks. More...
#include <roboptim/core/result-analyzer.hh>
Public Member Functions | |
bool | operator_bool () const |
Evaluate the query. More... | |
virtual bool | isValid () const =0 |
Whether the input data is valid w.r.t. that query. More... | |
virtual std::ostream & | print (std::ostream &o) const =0 |
Print method. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &o, const QueryData &d) |
Override operator<< to display data. More... | |
Interface for checks.
Note: we use the safe-bool idiom, which is deprecated in C++11.
|
pure virtual |
Whether the input data is valid w.r.t. that query.
Implemented in roboptim::ResultAnalyzer< T >::NullGradientData, roboptim::ResultAnalyzer< T >::KKTData, and roboptim::ResultAnalyzer< T >::LICQData.
Referenced by roboptim::ResultAnalyzer< T >::QueryData::operator_bool().
bool roboptim::ResultAnalyzer< T >::QueryData::operator_bool | ( | ) | const |
Evaluate the query.
References roboptim::ResultAnalyzer< T >::QueryData::isValid().
|
pure virtual |
Print method.
Implemented in roboptim::ResultAnalyzer< T >::NullGradientData, roboptim::ResultAnalyzer< T >::KKTData, and roboptim::ResultAnalyzer< T >::LICQData.
|
friend |
Override operator<< to display data.
o | output stream. |
d | data. |