Home
last modified time | relevance | path

Searched refs:AllocAndInit (Results 1 – 7 of 7) sorted by relevance

/external/libtextclassifier/native/utils/grammar/parsing/
Dchart_test.cc45 ParseTree* m0 = arena_.AllocAndInit<ParseTree>(/*lhs=*/0, CodepointSpan{0, 1}, in TEST_F()
49 ParseTree* m1 = arena_.AllocAndInit<ParseTree>(/*lhs=*/1, CodepointSpan{0, 2}, in TEST_F()
53 ParseTree* m2 = arena_.AllocAndInit<ParseTree>(/*lhs=*/2, CodepointSpan{0, 2}, in TEST_F()
85 ParseTree* m0 = arena_.AllocAndInit<ParseTree>(/*lhs=*/0, CodepointSpan{0, 1}, in TEST_F()
89 ParseTree* m1 = arena_.AllocAndInit<ParseTree>(/*lhs=*/1, CodepointSpan{0, 2}, in TEST_F()
93 ParseTree* m2 = arena_.AllocAndInit<ParseTree>(/*lhs=*/2, CodepointSpan{0, 2}, in TEST_F()
Dparser.cc107 symbols.emplace_back(arena->AllocAndInit<ParseTree>( in SortedSymbolsForInput()
113 symbols.emplace_back(arena->AllocAndInit<ParseTree>( in SortedSymbolsForInput()
128 symbols.emplace_back(arena->AllocAndInit<ParseTree>( in SortedSymbolsForInput()
138 symbols.emplace_back(arena->AllocAndInit<ParseTree>( in SortedSymbolsForInput()
157 symbols.emplace_back(arena->AllocAndInit<ParseTree>( in SortedSymbolsForInput()
171 symbols.emplace_back(arena->AllocAndInit<AnnotationNode>( in SortedSymbolsForInput()
206 matcher->AddParseTree(arena->AllocAndInit<ParseTree>( in EmitSymbol()
219 matcher->AddParseTree(arena->AllocAndInit<ParseTree>( in EmitSymbol()
233 matcher->AddParseTree(arena->AllocAndInit<ParseTree>( in EmitSymbol()
248 matcher->AddParseTree(arena->AllocAndInit<ParseTree>( in EmitSymbol()
Dmatcher_test.cc257 matcher.AddParseTree(arena_.AllocAndInit<ParseTree>( in TEST_F()
320 matcher.AddParseTree(arena_.AllocAndInit<ParseTree>( in TEST_F()
332 matcher.AddParseTree(arena_.AllocAndInit<ParseTree>( in TEST_F()
364 matcher.AddParseTree(arena_.AllocAndInit<ParseTree>( in TEST_F()
376 matcher.AddParseTree(arena_.AllocAndInit<ParseTree>( in TEST_F()
386 matcher.AddParseTree(arena_.AllocAndInit<ParseTree>( in TEST_F()
418 matcher.AddParseTree(arena_.AllocAndInit<ParseTree>( in TEST_F()
432 matcher.AddParseTree(arena_.AllocAndInit<ParseTree>( in TEST_F()
Dmatcher.cc342 AssertionNode* assertion_node = arena_->AllocAndInit<AssertionNode>( in ExecuteLhsSet()
350 MappingNode* mapping_node = arena_->AllocAndInit<MappingNode>( in ExecuteLhsSet()
359 ExclusionNode* exclusion_node = arena_->AllocAndInit<ExclusionNode>( in ExecuteLhsSet()
368 arena_->AllocAndInit<SemanticExpressionNode>( in ExecuteLhsSet()
382 parse_tree = arena_->AllocAndInit<ParseTree>( in ExecuteLhsSet()
/external/libtextclassifier/native/utils/grammar/semantics/
Dvalue.h42 return arena->AllocAndInit<SemanticValue>( in Create()
51 return arena->AllocAndInit<SemanticValue>(reflection::BaseType::String, in Create()
57 return arena->AllocAndInit<SemanticValue>( in Create()
75 return arena->AllocAndInit<SemanticValue>(type, data); in Create()
81 return arena->AllocAndInit<SemanticValue>(base_type, data); in Create()
/external/libtextclassifier/native/utils/grammar/testing/
Dutils.h120 return arena_.AllocAndInit<SemanticValue>( in CreateSemanticValue()
132 return arena_.AllocAndInit<SemanticValue>(value); in CreatePrimitiveSemanticValue()
/external/libtextclassifier/native/utils/base/
Darena.h207 T* AllocAndInit(Args&&... args) { in AllocAndInit() function