CatapultServer  v0.5.0.1 (Elephant)
HashCachePredicates.h
Go to the documentation of this file.
1 
21 #pragma once
22 #include "catapult/types.h"
23 
24 namespace catapult { namespace cache { class CatapultCache; } }
25 
26 namespace catapult { namespace cache {
27 
29  bool HashCacheContains(const CatapultCache& cache, Timestamp timestamp, const Hash256& hash);
30 }}
catapult::Hash256
utils::ByteArray< Hash256_Size, Hash256_tag > Hash256
Definition: src/catapult/types.h:47
catapult::cache::HashCache
Synchronized cache composed of timestamped hashes of (transaction) elements.
Definition: HashCache.h:49
catapult::cache::SynchronizedCache::createView
LockedCacheView< CacheViewType > createView() const
Returns a locked cache view based on this cache.
Definition: SynchronizedCache.h:218
RegisterExtension
PLUGIN_API void RegisterExtension(catapult::extensions::ProcessBootstrapper &bootstrapper)
Entry point for registering a dynamic extension module with bootstrapper.
Definition: HashCacheExtension.cpp:38
HashCache.h
catapult::utils::BaseValue< uint64_t, Timestamp_tag >
PLUGIN_API
#define PLUGIN_API
Definition: plugins.h:30
catapult::cache::CatapultCache
Central cache holding all sub caches.
Definition: CatapultCache.h:40
catapult::extensions::ExtensionManager::registerSystemPlugin
void registerSystemPlugin(const std::string &name)
Registers a system plugin with name.
Definition: ExtensionManager.cpp:34
catapult::cache::HashCacheContains
bool HashCacheContains(const CatapultCache &cache, Timestamp timestamp, const Hash256 &hash)
Returns true if cache contains hash with timestamp.
Definition: HashCachePredicates.cpp:27
catapult::extensions::ProcessBootstrapper::extensionManager
ExtensionManager & extensionManager()
Gets the extension manager.
Definition: ProcessBootstrapper.cpp:67
catapult::state::TimestampedHash
Represents a hash with attached timestamp.
Definition: TimestampedHash.h:31
CatapultCache.h
HashCacheService.h
types.h
catapult::Timestamp
utils::BaseValue< uint64_t, Timestamp_tag > Timestamp
Definition: src/catapult/types.h:73
catapult::cache::CatapultCache::sub
const TCache & sub() const
Gets a specific sub cache.
Definition: CatapultCache.h:56
HashCachePredicates.h
catapult
Definition: AddressExtractionExtension.cpp:28
catapult::extensions::ProcessBootstrapper
Process bootstrapper.
Definition: ProcessBootstrapper.h:42
catapult::utils::ByteArray
Base class for wrappers of byte array types, to provide some type-safety.
Definition: ByteArray.h:29
ProcessBootstrapper.h