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 | 185 if (item->asSemanticTag()) { in cast()
|
/system/libcppbor/tests/ |
D | cppbor_test.cpp | 882 EXPECT_NE(nullptr, item->asSemanticTag()); in TEST() 885 EXPECT_NE(static_cast<Item*>(item->asTstr()), static_cast<Item*>(item->asSemanticTag())); in TEST() 887 EXPECT_EQ(1U, item->asSemanticTag()->size()); in TEST() 912 EXPECT_NE(nullptr, item->asSemanticTag()); in TEST() 916 EXPECT_NE(static_cast<Item*>(item->asTstr()), static_cast<Item*>(item->asSemanticTag())); in TEST() 918 EXPECT_EQ(1U, item->asSemanticTag()->size()); in TEST() 1081 EXPECT_NE(clone->asSemanticTag(), nullptr); in TEST() 1082 EXPECT_EQ(item, *clone->asSemanticTag()); in TEST() 1083 EXPECT_EQ(*clone->asSemanticTag(), copy); in TEST() 1098 EXPECT_NE(clone->asSemanticTag(), nullptr); in TEST() [all …]
|
/system/libcppbor/include/cppbor/ |
D | cppbor.h | 166 virtual SemanticTag* asSemanticTag() { return nullptr; } in asSemanticTag() function 167 const SemanticTag* asSemanticTag() const { return const_cast<Item*>(this)->asSemanticTag(); } in asSemanticTag() function 815 using Item::asSemanticTag; 816 SemanticTag* asSemanticTag() override { return this; } in asSemanticTag() function
|