reference column progress

This commit is contained in:
2025-02-09 20:49:00 +01:00
parent a4d6f68ee2
commit 504e111491
11 changed files with 269 additions and 188 deletions
+8 -7
View File
@@ -5,30 +5,31 @@
#include "matador/object/object_definition.hpp"
namespace matador::object {
class schema_node;
template<typename Type>
class object_info final : public basic_object_info {
public:
explicit object_info(schema_node &node, object_definition &&definition)
: basic_object_info(node, typeid(Type), std::move(definition)) {}
explicit object_info(schema_node &node, object_definition &&definition,
std::shared_ptr<attribute_definition> &&ref_column)
: basic_object_info(node, typeid(Type), std::move(definition), std::move(ref_column)) {
}
const Type &prototype() const { return prototype_; }
const Type &prototype() const { return prototype_; }
private:
Type prototype_;
Type prototype_;
};
template<typename Type>
using object_info_ref = std::reference_wrapper<const object_info<Type>>;
namespace detail {
struct null_type {};
struct null_type {
};
}
using null_info = object_info<detail::null_type>;
}
#endif //OBJECT_INFO_HPP