|
Kagome
Polkadot Runtime Engine in C++17
|
#include <memory>#include <mutex>#include <type_traits>#include <vector>Go to the source code of this file.
Namespaces | |
| tools::containers | |
Macros | |
| #define | KAGOME_CACHE_UNIT(type) tools::containers::CacheUnit<type> |
| #define | KAGOME_DECLARE_CACHE(prefix, ...) |
| #define | KAGOME_UNIQUE_TYPE_CACHE(prefix, type) prefix##_UCachedType<type> |
| #define | KAGOME_DEFINE_CACHE(prefix) prefix##_cache_type prefix##_cache; |
| #define | KAGOME_EXTRACT_SHARED_CACHE(prefix, type) prefix##_get_shared_from_cache<type>() |
| #define | KAGOME_EXTRACT_UNIQUE_CACHE(prefix, type) prefix##_get_unique_from_cache<type>() |
| #define | KAGOME_EXTRACT_RAW_CACHE(prefix, type) prefix##_get_from_cache<type>() |
| #define | KAGOME_INSERT_RAW_CACHE(prefix, obj) prefix##_set_to_cache(obj) |
| struct tools::containers::CacheUnit |
Cache item entry.
| T | is the type of the objects to be contained in cache. |
Definition at line 119 of file objects_cache.hpp.
| Class Members | ||
|---|---|---|
|
typedef typename remove_pointer< typename decay < T >::type >::type |
Type | |
| #define KAGOME_CACHE_UNIT | ( | type | ) | tools::containers::CacheUnit<type> |
Definition at line 137 of file objects_cache.hpp.
| #define KAGOME_DECLARE_CACHE | ( | prefix, | |
| ... | |||
| ) |
Set of macro to define/declare object container and to define functions to communicate with it.
Definition at line 145 of file objects_cache.hpp.
| #define KAGOME_DEFINE_CACHE | ( | prefix | ) | prefix##_cache_type prefix##_cache; |
Definition at line 178 of file objects_cache.hpp.
| #define KAGOME_EXTRACT_RAW_CACHE | ( | prefix, | |
| type | |||
| ) | prefix##_get_from_cache<type>() |
Definition at line 192 of file objects_cache.hpp.
| #define KAGOME_EXTRACT_SHARED_CACHE | ( | prefix, | |
| type | |||
| ) | prefix##_get_shared_from_cache<type>() |
Definition at line 182 of file objects_cache.hpp.
| #define KAGOME_EXTRACT_UNIQUE_CACHE | ( | prefix, | |
| type | |||
| ) | prefix##_get_unique_from_cache<type>() |
Definition at line 187 of file objects_cache.hpp.
| #define KAGOME_INSERT_RAW_CACHE | ( | prefix, | |
| obj | |||
| ) | prefix##_set_to_cache(obj) |
Definition at line 196 of file objects_cache.hpp.
| #define KAGOME_UNIQUE_TYPE_CACHE | ( | prefix, | |
| type | |||
| ) | prefix##_UCachedType<type> |
Definition at line 174 of file objects_cache.hpp.