object changes
This commit is contained in:
@@ -11,15 +11,15 @@ const attribute& object::create_attribute( std::string name, object& obj ) {
|
||||
return obj.attributes_.emplace_back(std::move(attr));
|
||||
}
|
||||
|
||||
void object::add_attribute( attribute attr ) {
|
||||
auto &ref = attributes_.emplace_back(std::move(attr));
|
||||
ref.owner_ = this;
|
||||
}
|
||||
|
||||
void object::add_constraint( class constraint c ) {
|
||||
auto &ref = constraints_.emplace_back(std::move(c));
|
||||
ref.owner_ = this;
|
||||
}
|
||||
// void object::add_attribute( attribute attr ) {
|
||||
// auto &ref = attributes_.emplace_back(std::move(attr));
|
||||
// ref.owner_ = this;
|
||||
// }
|
||||
//
|
||||
// void object::add_constraint( class constraint c ) {
|
||||
// auto &ref = constraints_.emplace_back(std::move(c));
|
||||
// ref.owner_ = this;
|
||||
// }
|
||||
|
||||
attribute* object::primary_key_attribute() const {
|
||||
return pk_attribute_;
|
||||
|
||||
Reference in New Issue
Block a user