530be96b36
.FIX T67 .FIX T65 Modifed astar main for benchmark. Experimented with map of best visited and confirmed: -it is faster by 25% -observed that it founds best resoult -loses some non best resoults Added convinent method at() to get property from RecordAccessor. Method requires value_ref() method on property object.
29 lines
597 B
C++
29 lines
597 B
C++
#pragma once
|
|
|
|
#include "storage/model/properties/property.hpp"
|
|
|
|
class Bool : public Property
|
|
{
|
|
public:
|
|
static constexpr Flags type = Flags::Bool;
|
|
|
|
Bool(bool value);
|
|
Bool(const Bool &other) = default;
|
|
|
|
bool value() const;
|
|
|
|
bool const &value_ref() const;
|
|
|
|
explicit operator bool() const;
|
|
|
|
bool operator==(const Property &other) const override;
|
|
|
|
bool operator==(const Bool &other) const;
|
|
|
|
bool operator==(bool v) const;
|
|
|
|
std::ostream &print(std::ostream &stream) const override;
|
|
|
|
friend std::ostream &operator<<(std::ostream &stream, const Bool &prop);
|
|
};
|