object changes

This commit is contained in:
Sascha Kühl
2025-12-09 14:47:08 +01:00
parent d4a8801cd2
commit 4fcbe9c064
19 changed files with 109 additions and 92 deletions
+9 -9
View File
@@ -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_;