Home
last modified time | relevance | path

Searched refs:asSemanticTag (Results 1 – 4 of 4) sorted by relevance

/system/libcppbor/src/
Dcppbor.cpp356 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()
Dcppbor_parse.cpp185 if (item->asSemanticTag()) { in cast()
/system/libcppbor/tests/
Dcppbor_test.cpp882 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/
Dcppbor.h166 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