Searched refs:AllocAndInit (Results 1 – 7 of 7) sorted by relevance
/external/libtextclassifier/native/utils/grammar/parsing/ |
D | chart_test.cc | 45 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()
|
D | parser.cc | 107 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()
|
D | matcher_test.cc | 257 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()
|
D | matcher.cc | 342 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/ |
D | value.h | 42 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/ |
D | utils.h | 120 return arena_.AllocAndInit<SemanticValue>( in CreateSemanticValue() 132 return arena_.AllocAndInit<SemanticValue>(value); in CreatePrimitiveSemanticValue()
|
/external/libtextclassifier/native/utils/base/ |
D | arena.h | 207 T* AllocAndInit(Args&&... args) { in AllocAndInit() function
|