preparations for object_generator (generating objects with attributes and constraints)
This commit is contained in:
@@ -17,12 +17,12 @@ class field {
|
||||
public:
|
||||
explicit field(std::string name);
|
||||
template<typename Type>
|
||||
field(std::string name, Type value, const utils::constraints type = utils::constraints::NONE, const size_t size = 0, const int index = -1)
|
||||
field(std::string name, Type value, const utils::constraints type = utils::constraints::None, const size_t size = 0, const int index = -1)
|
||||
: name_(std::move(name))
|
||||
, type_(type)
|
||||
, index_(index)
|
||||
, value_(value, size) {}
|
||||
field(std::string name, utils::basic_type dt, utils::constraints type = utils::constraints::NONE, size_t size = 0, int index = -1);
|
||||
field(std::string name, utils::basic_type dt, utils::constraints type = utils::constraints::None, size_t size = 0, int index = -1);
|
||||
field(const field &x) = default;
|
||||
field& operator=(const field &x) = default;
|
||||
field(field &&x) noexcept;
|
||||
@@ -71,7 +71,7 @@ private:
|
||||
friend class record;
|
||||
|
||||
std::string name_;
|
||||
utils::constraints type_{utils::constraints::NONE};
|
||||
utils::constraints type_{utils::constraints::None};
|
||||
int index_{-1};
|
||||
|
||||
utils::value value_;
|
||||
|
||||
Reference in New Issue
Block a user