forked from mixxxdj/mixxx
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
merge changes from acolombier, clear and set owned by parent flag, mo…
…re clear transfer of waveformrendermarknode
- Loading branch information
m0dB
authored and
m0dB
committed
Nov 1, 2024
1 parent
b8f2268
commit 3c76b1b
Showing
12 changed files
with
259 additions
and
185 deletions.
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,26 @@ | ||
#pragma once | ||
|
||
#include "backend/basenode.h" | ||
#include "rendergraph/assert.h" | ||
|
||
namespace rendergraph { | ||
|
||
template<class T_Node> | ||
class NodeInterface : public T_Node { | ||
public: | ||
void appendChildNode(std::unique_ptr<BaseNode> pNode) { | ||
BaseNode* pRawNode = pNode.release(); | ||
pRawNode->setFlag(QSNode::OwnedByParent, true); | ||
T_Node::appendChildNode(pRawNode); | ||
DEBUG_ASSERT(pNode->flags() & QSNode::OwnedByParent); | ||
} | ||
std::unique_ptr<BaseNode> detachChildNode(BaseNode* pNode) { | ||
DEBUG_ASSERT(pNode->flags() & QSNode::OwnedByParent); | ||
pNode->setFlag(QSNode::OwnedByParent, false); | ||
T_Node::removeChildNode(pNode); | ||
DEBUG_ASSERT(!pNode->flags() & QSNode::OwnedByParent); | ||
return std::unique_ptr<BaseNode>(pNode); | ||
} | ||
}; | ||
|
||
} // namespace rendergraph |
Oops, something went wrong.