如何使用tree.hh进行父级化 [英] How to reparent using tree.hh
本文介绍了如何使用tree.hh进行父级化的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!
问题描述
在这里,我有一个包含行组列表的窗口.在上图中,路径2到6是Group1的子代.
Here I have a window with a list of groups of rows. In the image above, Path 2 to 6 are children of Group1.
http://i.stack.imgur.com/zb4FB.png
用于此树的容器是 tree.hh .我将使用什么函数使Group1(及其子级)成为路径10的子级.我不想删除行并将其放回去,只需重新父级即可.谢谢!
The container used for this tree is tree.hh. What function would I use to make Group1 (and its children) be child of Path 10. I don't want to delete rows and put them back again, just re-parent. Thanks!
推荐答案
我想您应该看看 ::move_after()
I guess you should look at ::move_after()
这篇关于如何使用tree.hh进行父级化的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!
查看全文