memgraph/include/storage/model/properties/bool.hpp
Kruno Tomola Fabro 530be96b36 .FIX T68
.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.
2016-08-15 13:21:38 +01:00

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);
};