Lines Matching defs:WuKongTree
25 class WuKongTree {
27 static const std::shared_ptr<WuKongTree> GetRoot(const std::shared_ptr<WuKongTree>& child)
36 WuKongTree() : nodeId_(0), index_(0), inputCount_(0), parent_(), children_(0)
39 virtual ~WuKongTree()
63 * @return WuKongTree shared pointer.
65 virtual const std::shared_ptr<WuKongTree> GetParent()
73 * @return WuKongTree vector.
75 virtual const std::vector<std::shared_ptr<WuKongTree>>& GetChildren()
90 * @param other WuKongTree shared pointer.
93 virtual bool IsEqual(const std::shared_ptr<WuKongTree>& other)
108 virtual void SetParent(const std::shared_ptr<WuKongTree>& parent)
112 virtual void AddChild(const std::shared_ptr<WuKongTree>& child)
139 std::weak_ptr<WuKongTree> parent_;
143 std::vector<std::shared_ptr<WuKongTree>> children_;