Searched refs:asSemanticTag (Results 1 – 4 of 4) sorted by relevance
/system/libcppbor/src/ |
D | cppbor.cpp | 356 return *asSemanticTag() == *(other.asSemanticTag()); in operator ==() 583 while (cur->mTaggedItem && (cur = cur->mTaggedItem->asSemanticTag()) != nullptr) ++levelCount; in semanticTagCount() 597 while (--levelCount > 0) cur = cur->mTaggedItem->asSemanticTag(); in semanticTag()
|
D | cppbor_parse.cpp | 188 if (item->asSemanticTag()) { in cast()
|
/system/libcppbor/tests/ |
D | cppbor_test.cpp | 883 EXPECT_NE(nullptr, item->asSemanticTag()); in TEST() 886 EXPECT_NE(static_cast<Item*>(item->asTstr()), static_cast<Item*>(item->asSemanticTag())); in TEST() 888 EXPECT_EQ(1U, item->asSemanticTag()->size()); in TEST() 913 EXPECT_NE(nullptr, item->asSemanticTag()); in TEST() 917 EXPECT_NE(static_cast<Item*>(item->asTstr()), static_cast<Item*>(item->asSemanticTag())); in TEST() 919 EXPECT_EQ(1U, item->asSemanticTag()->size()); in TEST() 1085 EXPECT_NE(clone->asSemanticTag(), nullptr); in TEST() 1086 EXPECT_EQ(item, *clone->asSemanticTag()); in TEST() 1087 EXPECT_EQ(*clone->asSemanticTag(), copy); in TEST() 1102 EXPECT_NE(clone->asSemanticTag(), nullptr); in TEST() [all …]
|
/system/libcppbor/include/cppbor/ |
D | cppbor.h | 168 virtual SemanticTag* asSemanticTag() { return nullptr; } in asSemanticTag() function 169 const SemanticTag* asSemanticTag() const { return const_cast<Item*>(this)->asSemanticTag(); } in asSemanticTag() function 819 using Item::asSemanticTag; 820 SemanticTag* asSemanticTag() override { return this; } in asSemanticTag() function
|