You cannot select more than 25 topics
Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.
18 lines
434 B
C++
18 lines
434 B
C++
#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;
|
|
virtual NodePtr getNode() = 0;
|
|
};
|