CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 #define MAKE_BITWISE_ENUM(ENUM_TYPE) \
27 constexpr ENUM_TYPE operator|(ENUM_TYPE lhs, ENUM_TYPE rhs) { \
28 return static_cast<ENUM_TYPE>(utils::to_underlying_type(lhs) | utils::to_underlying_type(rhs)); \
32 constexpr ENUM_TYPE& operator|=(ENUM_TYPE& lhs, ENUM_TYPE rhs) { \
33 return lhs = lhs | rhs; \
37 constexpr bool HasFlag(ENUM_TYPE testedFlag, ENUM_TYPE value) { \
38 return utils::to_underlying_type(testedFlag) == (utils::to_underlying_type(testedFlag) & utils::to_underlying_type(value)); \
41 constexpr bool HasSingleFlag(ENUM_TYPE value) { \
42 return utils::to_underlying_type(value) && !(utils::to_underlying_type(value) & (utils::to_underlying_type(value) - 1)); \
DEFINE_OBSERVER(AccountAddress, model::AccountAddressNotification, [](const auto ¬ification, const auto &context) { DefaultAccountVisitor visitor(context);visitor.visit(notification.Address);})
void ProcessForwardedAccountState(AccountStateCacheDelta &cache, const Key &publicKey, const consumer< state::AccountState & > &action)
Forwards account state or linked account state found in cache associated with publicKey to action.
Definition: AccountStateCacheUtils.cpp:26
void UpdateActivity(const Key &publicKey, const observers::ObserverContext &context, const ActivityBucketConsumer &commitAction, const ActivityBucketConsumer &rollbackAction)
Definition: ActivityObserverUtils.cpp:36
Definition: AddressExtractionExtension.cpp:28
utils::ByteArray< Key_Size, Key_tag > Key
Definition: src/catapult/types.h:41