Home
last modified time | relevance | path

Searched refs:TreeNode (Results 1 – 25 of 62) sorted by relevance

123

/external/pdfium/core/fxcrt/
Dretained_tree_node.h18 class RetainedTreeNode : public TreeNode<T> {
24 TreeNode<T>::AppendFirstChild(child.Get()); in AppendFirstChild()
28 TreeNode<T>::AppendLastChild(child.Get()); in AppendLastChild()
32 TreeNode<T>::InsertBefore(child.Get(), other); in InsertBefore()
36 TreeNode<T>::InsertAfter(child.Get(), other); in InsertAfter()
40 TreeNode<T>::RemoveChild(child.Get()); in RemoveChild()
44 if (T* parent = TreeNode<T>::GetParent()) { in RemoveSelfIfParented()
45 parent->TreeNode<T>::RemoveChild( in RemoveSelfIfParented()
53 while (auto* pChild = TreeNode<T>::GetFirstChild()) in ~RetainedTreeNode()
70 if (--m_nRefCount == 0 && !TreeNode<T>::GetParent()) in Release()
Dtree_node_unittest.cpp14 class TestTreeNode : public TreeNode<TestTreeNode> {};
19 TEST(TreeNode, SelfAppendFirstChild) { in TEST() argument
24 TEST(TreeNode, SelfAppendLastChild) { in TEST() argument
29 TEST(TreeNode, SelfInsertBeforeOther) { in TEST() argument
36 TEST(TreeNode, InsertOtherBeforeSelf) { in TEST() argument
43 TEST(TreeNode, SelfInsertAfterOther) { in TEST() argument
50 TEST(TreeNode, InsertOtherAfterSelf) { in TEST() argument
57 TEST(TreeNode, RemoveParentless) { in TEST() argument
62 TEST(TreeNode, RemoveFromWrongParent) { in TEST() argument
70 TEST(TreeNode, SafeRemove) { in TEST() argument
[all …]
Dtree_node.h15 class TreeNode {
17 TreeNode() = default;
18 virtual ~TreeNode() = default;
138 child->m_pParent->TreeNode<T>::RemoveChild(child); in BecomeParent()
153 using fxcrt::TreeNode;
/external/jackson-core/src/main/java/com/fasterxml/jackson/core/
DTreeCodec.java13 …public abstract <T extends TreeNode> T readTree(JsonParser p) throws IOException, JsonProcessingEx… in readTree()
14 …public abstract void writeTree(JsonGenerator g, TreeNode tree) throws IOException, JsonProcessingE… in writeTree()
19 public TreeNode missingNode() { in missingNode()
26 public TreeNode nullNode() { in nullNode()
30 public abstract TreeNode createArrayNode(); in createArrayNode()
31 public abstract TreeNode createObjectNode(); in createObjectNode()
32 public abstract JsonParser treeAsTokens(TreeNode node); in treeAsTokens()
DTreeNode.java34 public interface TreeNode interface
153 TreeNode get(String fieldName); in get()
173 TreeNode get(int index); in get()
187 TreeNode path(String fieldName); in path()
209 TreeNode path(int index); in path()
230 TreeNode at(JsonPointer ptr); in at()
250 TreeNode at(String jsonPointerExpression) throws IllegalArgumentException; in at()
DObjectCodec.java121 public abstract <T extends TreeNode> T readTree(JsonParser p) throws IOException; in readTree()
124 public abstract void writeTree(JsonGenerator gen, TreeNode tree) throws IOException; in writeTree()
131 public abstract TreeNode createObjectNode(); in createObjectNode()
138 public abstract TreeNode createArrayNode(); in createArrayNode()
146 public abstract JsonParser treeAsTokens(TreeNode n); in treeAsTokens()
159 public abstract <T> T treeToValue(TreeNode n, Class<T> valueType) in treeToValue()
/external/swiftshader/third_party/llvm-10.0/llvm/include/llvm/Object/
DWindowsResource.h155 class TreeNode;
162 const TreeNode &getTree() const { return Root; } in getTree()
168 class TreeNode {
171 using Children = std::map<T, std::unique_ptr<TreeNode>>;
190 static std::unique_ptr<TreeNode> createStringNode(uint32_t Index);
191 static std::unique_ptr<TreeNode> createIDNode();
193 static std::unique_ptr<TreeNode> createDataNode(uint16_t MajorVersion,
199 explicit TreeNode(uint32_t StringIndex);
200 TreeNode(uint16_t MajorVersion, uint16_t MinorVersion,
206 TreeNode *&Result);
[all …]
/external/llvm-project/llvm/include/llvm/Object/
DWindowsResource.h155 class TreeNode;
162 const TreeNode &getTree() const { return Root; } in getTree()
168 class TreeNode {
171 using Children = std::map<T, std::unique_ptr<TreeNode>>;
190 static std::unique_ptr<TreeNode> createStringNode(uint32_t Index);
191 static std::unique_ptr<TreeNode> createIDNode();
193 static std::unique_ptr<TreeNode> createDataNode(uint16_t MajorVersion,
199 explicit TreeNode(uint32_t StringIndex);
200 TreeNode(uint16_t MajorVersion, uint16_t MinorVersion,
206 TreeNode *&Result);
[all …]
/external/swiftshader/third_party/llvm-10.0/llvm/lib/Object/
DWindowsResource.cpp269 TreeNode *TypeNode = TypeIt->second.get(); in cleanUpManifests()
275 TreeNode *NameNode = NameIt->second.get(); in cleanUpManifests()
297 TreeNode *FirstNode = FirstIt->second.get(); in cleanUpManifests()
300 TreeNode *LastNode = LastIt->second.get(); in cleanUpManifests()
353 TreeNode *Node; in parse()
381 bool WindowsResourceParser::TreeNode::addEntry( in addEntry()
384 std::vector<std::vector<UTF16>> &StringTable, TreeNode *&Result) { in addEntry()
385 TreeNode &TypeNode = addTypeNode(Entry, StringTable); in addEntry()
386 TreeNode &NameNode = TypeNode.addNameNode(Entry, StringTable); in addEntry()
390 Error WindowsResourceParser::addChildren(TreeNode &Node, in addChildren()
[all …]
/external/llvm-project/llvm/lib/Object/
DWindowsResource.cpp269 TreeNode *TypeNode = TypeIt->second.get(); in cleanUpManifests()
275 TreeNode *NameNode = NameIt->second.get(); in cleanUpManifests()
297 TreeNode *FirstNode = FirstIt->second.get(); in cleanUpManifests()
300 TreeNode *LastNode = LastIt->second.get(); in cleanUpManifests()
353 TreeNode *Node; in parse()
381 bool WindowsResourceParser::TreeNode::addEntry( in addEntry()
384 std::vector<std::vector<UTF16>> &StringTable, TreeNode *&Result) { in addEntry()
385 TreeNode &TypeNode = addTypeNode(Entry, StringTable); in addEntry()
386 TreeNode &NameNode = TypeNode.addNameNode(Entry, StringTable); in addEntry()
390 Error WindowsResourceParser::addChildren(TreeNode &Node, in addChildren()
[all …]
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/util/
DTestDelegates.java32 public TreeNode treeWritten;
71 public <T extends TreeNode> T readTree(JsonParser p) { in readTree()
75 public void writeTree(JsonGenerator gen, TreeNode tree) throws IOException { in writeTree()
81 public TreeNode createObjectNode() { in createObjectNode()
85 public TreeNode createArrayNode() { in createArrayNode()
89 public TreeNode missingNode() { in missingNode()
94 public TreeNode nullNode() { in nullNode()
98 public JsonParser treeAsTokens(TreeNode n) { in treeAsTokens()
102 public <T> T treeToValue(TreeNode n, Class<T> valueType) { in treeToValue()
107 static class BogusTree implements TreeNode {
[all …]
/external/llvm-project/llvm/test/TableGen/
DTreeNames.td5 class TreeNode;
8 def set : TreeNode;
9 def plus : TreeNode;
10 def imm : TreeNode;
DTree.td5 class TreeNode;
8 def set : TreeNode;
9 def plus : TreeNode;
10 def imm : TreeNode;
/external/llvm/test/TableGen/
DTreeNames.td5 class TreeNode;
8 def set : TreeNode;
9 def plus : TreeNode;
10 def imm : TreeNode;
DTree.td5 class TreeNode;
8 def set : TreeNode;
9 def plus : TreeNode;
10 def imm : TreeNode;
/external/grpc-grpc/third_party/nanopb/tests/cyclic_messages/
Dcyclic.proto7 message TreeNode message
10 optional TreeNode left = 2;
11 optional TreeNode right = 3;
25 optional TreeNode treeValue = 5;
Dcyclic_callback.options1 TreeNode.left type:FT_CALLBACK
2 TreeNode.right type:FT_CALLBACK
/external/nanopb-c/tests/cyclic_messages/
Dcyclic.proto7 message TreeNode message
10 optional TreeNode left = 2;
11 optional TreeNode right = 3;
25 optional TreeNode treeValue = 5;
Dcyclic_callback.options1 TreeNode.left type:FT_CALLBACK
2 TreeNode.right type:FT_CALLBACK
/external/jackson-databind/src/test/java/com/fasterxml/jackson/databind/objectid/
DTestObjectIdSerialization.java134 static class TreeNode class in TestObjectIdSerialization
140 public TreeNode parent;
143 public TreeNode child;
145 public TreeNode() { } in TreeNode() method in TestObjectIdSerialization.TreeNode
146 public TreeNode(TreeNode p, int id, String name) { in TreeNode() method in TestObjectIdSerialization.TreeNode
306 TreeNode root = new TreeNode(null, 1, "root"); in testAlwaysIdForTree()
307 TreeNode leaf = new TreeNode(root, 2, "leaf"); in testAlwaysIdForTree()
/external/jackson-core/src/test/java/com/fasterxml/jackson/core/json/
DJsonFactoryTest.java52 public <T extends TreeNode> T readTree(JsonParser p) throws IOException { in readTree()
57 public void writeTree(JsonGenerator gen, TreeNode tree) throws IOException { in writeTree()
61 public TreeNode createObjectNode() { in createObjectNode()
66 public TreeNode createArrayNode() { in createArrayNode()
71 public JsonParser treeAsTokens(TreeNode n) { in treeAsTokens()
76 public <T> T treeToValue(TreeNode n, Class<T> valueType) throws JsonProcessingException { in treeToValue()
81 public TreeNode missingNode() { in missingNode()
86 public TreeNode nullNode() { in nullNode()
/external/opencensus-java/contrib/zpages/src/main/java/io/opencensus/contrib/zpages/
DStatszZPageHandler.java88 private final TreeNode root = new TreeNode();
172 TreeNode current = findNode(path); in emitHtmlBody()
186 Set<View> views, TreeNode root, Map<String, Measure> measures, Set<View> cachedViews) { in groupViewsByDirectoriesAndGetMeasures()
194 TreeNode node = root; in groupViewsByDirectoriesAndGetMeasures()
205 node.children.putIfAbsent(dir, new TreeNode()); in groupViewsByDirectoriesAndGetMeasures()
208 node.children.putIfAbsent(dir, new TreeNode(view.getName())); in groupViewsByDirectoriesAndGetMeasures()
219 /*@Nullable*/ TreeNode currentNode, in emitDirectoryTable()
234 for (Entry<String, TreeNode> entry : currentNode.children.entrySet()) { in emitDirectoryTable()
235 TreeNode child = entry.getValue(); in emitDirectoryTable()
259 private /*@Nullable*/ TreeNode findNode(/*@Nullable*/ String path) { in findNode()
[all …]
/external/python/cpython3/Lib/idlelib/idle_test/
Dtest_stackviewer.py8 from idlelib.tree import TreeNode, ScrolledCanvas
43 isi(stackviewer.node, TreeNode)
/external/python/cpython3/Lib/idlelib/
Dbrowser.py18 from idlelib.tree import TreeNode, TreeItem, ScrolledCanvas
120 self.node = node = TreeNode(sc.canvas, None, item)
238 class Nested_in_func(TreeNode):
/external/llvm-project/llvm/utils/TableGen/GlobalISel/
DGIMatchTree.cpp220 LLVM_DEBUG(dbgs() << "Building match tree node for " << TreeNode << "\n"); in runStep()
224 TreeNode->addPossibleLeaf(Leaf.getInfo(), Leaf.isFullyTraversed(), in runStep()
283 TreeNode->dropLeavesAfter( in runStep()
300 for (auto LeafPair : zip(Leaves, TreeNode->possible_leaves())) { in runStep()
343 TreeNode->setNumChildren(Partitioner->getNumPartitions()); in runStep()
344 for (auto &C : enumerate(TreeNode->children())) { in runStep()
349 TreeNode->setPartitioner(std::move(Partitioner)); in runStep()
374 TreeNode = TreeRoot.get(); in run()

123