Home
last modified time | relevance | path

Searched refs:Item (Results 1 – 8 of 8) sorted by relevance

/hardware/interfaces/identity/support/include/cppbor/
Dcppbor.h55 class Item; variable
104 class Item {
106 virtual ~Item() {} in ~Item()
129 bool operator==(const Item& other) const&;
130 bool operator!=(const Item& other) const& { return !(*this == other); }
152 virtual std::unique_ptr<Item> clone() const = 0;
202 class Int : public Item {
230 using Item::encode;
238 virtual std::unique_ptr<Item> clone() const override { return std::make_unique<Uint>(mValue); } in clone()
266 using Item::encode;
[all …]
Dcppbor_parse.h23 using ParseResult = std::tuple<std::unique_ptr<Item> /* result */, const uint8_t* /* newPos */,
108 virtual ParseClient* item(std::unique_ptr<Item>& item, const uint8_t* hdrBegin,
122 virtual ParseClient* itemEnd(std::unique_ptr<Item>& item, const uint8_t* hdrBegin,
DREADME.md17 CppBor represents CBOR data items as instances of the `Item` class or,
18 more precisely, as instances of subclasses of `Item`, since `Item` is a
19 pure interface. The subclasses of `Item` correspond almost one-to-one
35 variable-length array of `Item`s.
37 variable-length array of pairs of `Item`s.
62 The set of `encode` methods in `Item` provide the interface for
65 below) is to construct an `Item` which models the data to be encoded,
92 CppBor `Item` subclass instances is done. Where the caller provides a
118 There are several variations of `Item::encode`, all of which
190 * std::unique_ptr<Item> that points to the parsed item, or is nullptr
[all …]
/hardware/interfaces/identity/support/src/
Dcppbor_parse.cpp59 std::unique_ptr<Item> item = std::make_unique<Uint>(value); in handleUint()
71 std::unique_ptr<Item> item = std::make_unique<Nint>(-1 - static_cast<uint64_t>(value)); in handleNint()
79 std::unique_ptr<Item> item = std::make_unique<Bool>(value == TRUE); in handleBool()
86 std::unique_ptr<Item> item = std::make_unique<Null>(); in handleNull()
101 std::unique_ptr<Item> item = std::make_unique<T>(valueBegin, valueBegin + length); in handleString()
109 virtual void add(std::unique_ptr<Item> item) = 0;
119 void add(std::unique_ptr<Item> item) override { in add()
135 void add(std::unique_ptr<Item> item) override { in add()
151 void add(std::unique_ptr<Item> item) override { in add()
174 std::unique_ptr<Item> item, uint64_t entryCount, const uint8_t* hdrBegin, in handleCompound()
[all …]
Dcppbor.cpp107 bool Item::operator==(const Item& other) const& { in operator ==()
204 std::unique_ptr<Item> Map::clone() const { in clone()
213 std::unique_ptr<Item> Array::clone() const { in clone()
DIdentityCredentialSupport.cpp155 const cppbor::Item* entry = (*array)[n].get(); in cborAreAllElementsNonCompound()
187 static bool cborPrettyPrintInternal(const cppbor::Item* item, string& out, size_t indent, in cborPrettyPrintInternal()
/hardware/interfaces/identity/support/tests/
Dcppbor_test.cpp554 unique_ptr<Item> item = details::makeItem(10); in TEST()
571 unique_ptr<Item> item = details::makeItem(-10); in TEST()
588 unique_ptr<Item> item = details::makeItem("hello"); in TEST()
605 unique_ptr<Item> item = details::makeItem(vec); in TEST()
621 unique_ptr<Item> item = details::makeItem(false); in TEST()
640 unique_ptr<Item> item(new Map); in TEST()
656 unique_ptr<Item> item(new Array); in TEST()
673 MOCK_METHOD4(item, ParseClient*(std::unique_ptr<Item>& item, const uint8_t* hdrBegin,
675 MOCK_METHOD4(itemEnd, ParseClient*(std::unique_ptr<Item>& item, const uint8_t* hdrBegin,
954 std::unique_ptr<Item> item; in TEST()
/hardware/interfaces/identity/aidl/default/
DIdentityCredential.h106 std::unique_ptr<cppbor::Item> sessionTranscriptItem_;