CatapultServer
v0.5.0.1 (Elephant)
|
A view on top of a catapult cache cache for retrieving a typed account restriction. More...
Public Member Functions | |
AccountRestrictionView (const cache::ReadOnlyCatapultCache &cache) | |
Creates a view around cache. More... | |
bool | initialize (const Address &address) |
Tries to initialize the internal iterator for account restriction with address. More... | |
template<typename TRestrictionValue > | |
state::TypedAccountRestriction< TRestrictionValue > | get (model::AccountRestrictionType restrictionType) const |
template<typename TRestrictionValue > | |
bool | isAllowed (model::AccountRestrictionType restrictionType, const TRestrictionValue &value) |
Returns true if value is allowed. More... | |
Private Attributes | |
const cache::ReadOnlyCatapultCache & | m_cache |
FindIterator | m_iter |
A view on top of a catapult cache cache for retrieving a typed account restriction.
|
explicit |
Creates a view around cache.
|
inline |
Gets the typed account restriction specified by restrictionType.
catapult_invalid_argument | if the view does not point to a value. |
bool catapult::validators::AccountRestrictionView::initialize | ( | const Address & | address | ) |
Tries to initialize the internal iterator for account restriction with address.
|
inline |
Returns true
if value is allowed.
|
private |
|
private |