First largely untested draft of a working verifier.

This commit is contained in:
David Given
2021-07-19 00:13:06 +02:00
parent d51160babb
commit b887bebb26
28 changed files with 177 additions and 47 deletions

View File

@@ -30,3 +30,18 @@ Sector::Status Sector::stringToStatus(const std::string& value)
return Status::INTERNAL_ERROR;
}
bool sectorPointerSortPredicate(std::shared_ptr<Sector>& lhs, std::shared_ptr<Sector>& rhs)
{
return *lhs < *rhs;
}
bool sectorPointerEqualsPredicate(std::shared_ptr<Sector>& lhs, std::shared_ptr<Sector>& rhs)
{
if (!lhs && !rhs)
return true;
if (!lhs || !rhs)
return false;
return *lhs == *rhs;
}