poperdolilo

This commit is contained in:
Сергей Маринкевич
2025-07-21 18:14:27 +07:00
parent 8b60fc0183
commit b2be9b51ca
10 changed files with 230 additions and 0 deletions
+16
View File
@@ -0,0 +1,16 @@
#pragma once
#include <memory>
// Forward declarations для избежания циклических #include
class INode;
class ILink;
using NodePtr = std::shared_ptr<INode>;
using LinkPtr = std::shared_ptr<ILink>;
class ILinkMixin {
public:
virtual ~ILinkMixin() = default;
virtual void linkChild(const NodePtr& child) = 0;
virtual void unlinkParent() = 0;
virtual LinkPtr getLink() = 0;
};