Closes #9
This commit is contained in:
1 parent
e5d818d9b2
commit
a533d9aa00
13 files changed
+527
-12
No files matched your search
+12
-1
@@ -24,8 +24,11 @@ TreeNode::TreeNode(const SignalInfo &signal)
|
||||
}
|
||||
|
||||
void TreeNode::AddChild(std::unique_ptr<TreeNode> child) {
|
||||
if (child)
|
||||
if (child) {
|
||||
m_children.push_back(std::move(child));
|
||||
m_children.back()->m_parent = this;
|
||||
m_children.back()->m_row = m_children.size() - 1U;
|
||||
}
|
||||
}
|
||||
|
||||
std::size_t TreeNode::GetChildCount() const {
|
||||
@@ -61,3 +64,11 @@ const FrameInfo *TreeNode::GetFrame() const {
|
||||
const SignalInfo *TreeNode::GetSignal() const {
|
||||
return m_signal.get();
|
||||
}
|
||||
|
||||
const TreeNode *TreeNode::GetParent() const {
|
||||
return m_parent;
|
||||
}
|
||||
|
||||
std::size_t TreeNode::GetRow() const {
|
||||
return m_row;
|
||||
}
|
||||
Reference in new issue
Block a user