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.cpp188 if (item->asSemanticTag()) { in cast()
/system/libcppbor/tests/
Dcppbor_test.cpp883 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/
Dcppbor.h168 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