#include <Answer.h>
Used to compare answers.
Definition at line 143 of file Answer.h.
◆ operator()() [1/2]
bool knowrob::AnswerComparator::operator() |
( |
const AnswerPtr & |
v0, |
|
|
const AnswerPtr & |
v1 |
|
) |
| const |
Definition at line 143 of file Answer.cpp.
145 if (!v1)
return false;
147 }
else if (!v1 || v0 == v1) {
149 }
else if (v0->isCertain() != v1->isCertain()) {
150 return v0->isCertain() < v1->isCertain();
151 }
else if (v0->isPositive() != v1->isPositive()) {
152 return v0->isPositive() < v1->isPositive();
153 }
else if (v0->isNegative() != v1->isNegative()) {
154 return v0->isNegative() > v1->isNegative();
156 return v0->hashOfAnswer() < v1->hashOfAnswer();
◆ operator()() [2/2]
bool knowrob::AnswerComparator::operator() |
( |
const AnswerPtr & |
v0, |
|
|
const AnswerPtr & |
v1 |
|
) |
| const |
The documentation for this struct was generated from the following files:
- build/_CPack_Packages/Linux/DEB/knowrob-2.1.0-Linux/usr/include/knowrob/queries/Answer.h
- src/queries/Answer.cpp