unlink the links

This commit is contained in:
Сергей Маринкевич
2025-07-23 17:44:25 +07:00
parent d17c80a195
commit 55ef99c848
10 changed files with 58 additions and 44 deletions
+7 -2
View File
@@ -1,11 +1,16 @@
#pragma once
#include <memory>
#include "decls.h"
#include "ifaces/ILink.h"
class ILinkMixin;
using MixinPtr = std::shared_ptr<ILinkMixin>;
using LinkPtr = std::shared_ptr<ILink<ILinkMixin>>;
class ILinkMixin {
public:
virtual ~ILinkMixin() = default;
virtual void linkChild(const NodePtr& child) = 0;
virtual void linkChild(const MixinPtr& child) = 0;
virtual void unlinkParent() = 0;
virtual LinkPtr getLink() = 0;
};