CCF
Loading...
Searching...
No Matches
map.h
Go to the documentation of this file.
1// Copyright (c) Microsoft Corporation. All rights reserved.
2// Licensed under the Apache 2.0 License.
3#pragma once
4
5#include "ccf/kv/map.h"
6#include "ccf/kv/set.h"
7#include "ccf/kv/value.h"
8
9namespace ccf
10{
11 // This type should be used for most service key-value maps so that:
12 // - The raw key is trivially and cheaply deserialisable.
13 // - The JSON value can conveniently be audited offline.
14 // Note: Maps which include large values (e.g. certificate or serialised
15 // Merkle tree) can use the `ccf::kv::RawCopySerialisedMap` type to maximise
16 // performance.
17 template <typename K, typename V>
19 K,
20 V,
23
24 template <typename V>
26 V,
29
30 template <typename K>
32 K,
35}
Definition map.h:30
TypedValue< V, VSerialiser< V >, Unit > ValueSerialisedWith
Definition value.h:85
TypedSet< K, KSerialiser< K >, Unit > SetSerialisedWith
Definition set.h:93
Definition app_interface.h:15
ccf::kv::ValueSerialisedWith< V, ccf::kv::serialisers::JsonSerialiser, ccf::kv::serialisers::ZeroBlitUnitCreator > ServiceValue
Definition map.h:28
ccf::kv::SetSerialisedWith< K, ccf::kv::serialisers::BlitSerialiser, ccf::kv::serialisers::ZeroBlitUnitCreator > ServiceSet
Definition map.h:34
Definition blit_serialiser.h:14
Definition json_serialiser.h:17