unlink the links
This commit is contained in:
@@ -1,8 +1,9 @@
|
||||
#pragma once
|
||||
#include "links/BaseLink.h"
|
||||
|
||||
class OneToManyLink : public BaseLink {
|
||||
template <class TElem>
|
||||
class OneToManyLink : public BaseLink<TElem> {
|
||||
public:
|
||||
using BaseLink::BaseLink;
|
||||
void addChild(const NodePtr& child) override { children_.push_back(child); }
|
||||
OneToManyLink(std::shared_ptr<TElem> e) : BaseLink<TElem>(e) {}
|
||||
void addChild(const std::shared_ptr<TElem>& child) override { this->children_.push_back(child); }
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user