CatapultServer
v0.5.0.1 (Elephant)
|
Go to the documentation of this file.
25 namespace catapult {
namespace state {
28 template<
typename TRestrictionValue>
47 bool contains(
const TRestrictionValue& value)
const {
bool canBlock(const model::AccountRestrictionModification< TRestrictionValue > &modification) const
Returns true if modification can be applied to the underlying restriction.
Definition: TypedAccountRestriction.h:58
bool canBlock(const model::RawAccountRestrictionModification &modification) const
Returns true if modification can be applied to the blocked values.
Definition: AccountRestriction.cpp:50
const AccountRestrictionDescriptor & descriptor() const
Gets the restriction descriptor.
Definition: AccountRestriction.cpp:30
Account restriction.
Definition: AccountRestriction.h:29
Typed account restriction.
Definition: TypedAccountRestriction.h:29
Account restriction descriptor.
Definition: AccountRestrictionDescriptor.h:37
bool canAllow(const model::RawAccountRestrictionModification &modification) const
Returns true if modification can be applied to the allowed values.
Definition: AccountRestriction.cpp:46
TRestrictionValue Value
Restriction value.
Definition: AccountRestrictionTypes.h:67
AccountRestrictionModificationType ModificationType
Modification type.
Definition: AccountRestrictionTypes.h:64
auto ToVector(T value)
Converts value to a vector.
Definition: AccountRestrictionUtils.h:30
const AccountRestriction & m_restriction
Definition: TypedAccountRestriction.h:63
const AccountRestrictionDescriptor & descriptor() const
Gets the descriptor of the underlying account restriction.
Definition: TypedAccountRestriction.h:37
bool canAllow(const model::AccountRestrictionModification< TRestrictionValue > &modification) const
Returns true if modification can be applied to the underlying restriction.
Definition: TypedAccountRestriction.h:53
bool contains(const std::vector< uint8_t > &value) const
Returns true if value is known.
Definition: AccountRestriction.cpp:42
Definition: AddressExtractionExtension.cpp:28
Binary layout for an account restriction modification.
Definition: AccountRestrictionTypes.h:61
bool contains(const TRestrictionValue &value) const
Returns true if the underlying account restriction contains value.
Definition: TypedAccountRestriction.h:47
const std::set< std::vector< uint8_t > > & values() const
Gets the values.
Definition: AccountRestriction.cpp:38
size_t size() const
Gets the number of values of the underlying account restriction.
Definition: TypedAccountRestriction.h:42
TypedAccountRestriction(const AccountRestriction &restriction)
Creates a typed account restriction around restriction.
Definition: TypedAccountRestriction.h:32