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.
32 lines
734 B
C++
32 lines
734 B
C++
#pragma once
|
|
|
|
#include "storage/model/properties/property.hpp"
|
|
|
|
class String : public Property
|
|
{
|
|
public:
|
|
static constexpr Flags type = Flags::String;
|
|
|
|
String(const String &) = default;
|
|
String(String &&) = default;
|
|
|
|
String(const std::string &value);
|
|
String(std::string &&value);
|
|
|
|
operator const std::string &() const;
|
|
|
|
bool operator==(const Property &other) const override;
|
|
|
|
bool operator==(const String &other) const;
|
|
|
|
bool operator==(const std::string &other) const;
|
|
|
|
friend std::ostream &operator<<(std::ostream &stream, const String &prop);
|
|
|
|
std::ostream &print(std::ostream &stream) const override;
|
|
|
|
std::string const &value_ref() const { return value; }
|
|
|
|
std::string value;
|
|
};
|