CatapultServer  v0.5.0.1 (Elephant)
CacheConstants.h File Reference
Include dependency graph for CacheConstants.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Namespaces

 catapult
 
 catapult::cache
 

Macros

#define DEFINE_CACHE_CONSTANTS(NAME)
 Defines cache constants for a cache with NAME. More...
 

Enumerations

enum  catapult::cache::CacheId : uint32_t {
  catapult::cache::CacheId::AccountState, catapult::cache::CacheId::BlockDifficulty, catapult::cache::CacheId::Hash, catapult::cache::CacheId::Namespace,
  catapult::cache::CacheId::Mosaic, catapult::cache::CacheId::Multisig, catapult::cache::CacheId::HashLockInfo, catapult::cache::CacheId::SecretLockInfo,
  catapult::cache::CacheId::AccountRestriction, catapult::cache::CacheId::MosaicRestriction, catapult::cache::CacheId::Metadata
}
 Cache ids for well-known caches. More...
 

Macro Definition Documentation

◆ DEFINE_CACHE_CONSTANTS

#define DEFINE_CACHE_CONSTANTS (   NAME)
Value:
static constexpr size_t Id = utils::to_underlying_type(CacheId::NAME); \
static constexpr auto Name = #NAME "Cache";

Defines cache constants for a cache with NAME.

catapult::utils::to_underlying_type
constexpr std::underlying_type_t< TEnum > to_underlying_type(TEnum value)
Converts a strongly typed enumeration value to its underlying integral value.
Definition: Casting.h:37
Id
NamespaceId Id
Definition: RootNamespaceHistorySerializer.cpp:100
Name
static constexpr auto Name
Definition: PtSynchronizer.cpp:31