|
CatapultServer
v0.5.0.1 (Elephant)
|
Account restriction. More...

Public Types | |
| using | RawValue = std::vector< uint8_t > |
| Raw restriction value. More... | |
Public Member Functions | |
| AccountRestriction (model::AccountRestrictionType restrictionType, size_t restrictionValueSize) | |
| Creates an account restriction around restrictionType and restrictionValueSize. More... | |
| const AccountRestrictionDescriptor & | descriptor () const |
| Gets the restriction descriptor. More... | |
| size_t | valueSize () const |
| Gets the restriction value size. More... | |
| const std::set< std::vector< uint8_t > > & | values () const |
| Gets the values. More... | |
| bool | contains (const std::vector< uint8_t > &value) const |
Returns true if value is known. More... | |
| bool | canAllow (const model::RawAccountRestrictionModification &modification) const |
Returns true if modification can be applied to the allowed values. More... | |
| bool | canBlock (const model::RawAccountRestrictionModification &modification) const |
Returns true if modification can be applied to the blocked values. More... | |
| void | allow (const model::RawAccountRestrictionModification &modification) |
| Applies modification to the allowed values. More... | |
| void | block (const model::RawAccountRestrictionModification &modification) |
| Applies modification to the the blocked values. More... | |
Private Member Functions | |
| bool | isOperationAllowed (const model::RawAccountRestrictionModification &modification, AccountRestrictionOperationType operationType) const |
| void | update (const model::RawAccountRestrictionModification &modification) |
Private Attributes | |
| AccountRestrictionDescriptor | m_restrictionDescriptor |
| size_t | m_restrictionValueSize |
| std::set< RawValue > | m_values |
Account restriction.
| using catapult::state::AccountRestriction::RawValue = std::vector<uint8_t> |
Raw restriction value.
|
explicit |
Creates an account restriction around restrictionType and restrictionValueSize.
| void catapult::state::AccountRestriction::allow | ( | const model::RawAccountRestrictionModification & | modification | ) |
Applies modification to the allowed values.

| void catapult::state::AccountRestriction::block | ( | const model::RawAccountRestrictionModification & | modification | ) |
Applies modification to the the blocked values.

| bool catapult::state::AccountRestriction::canAllow | ( | const model::RawAccountRestrictionModification & | modification | ) | const |
Returns true if modification can be applied to the allowed values.


| bool catapult::state::AccountRestriction::canBlock | ( | const model::RawAccountRestrictionModification & | modification | ) | const |
Returns true if modification can be applied to the blocked values.


| bool catapult::state::AccountRestriction::contains | ( | const std::vector< uint8_t > & | value | ) | const |
Returns true if value is known.

| const AccountRestrictionDescriptor & catapult::state::AccountRestriction::descriptor | ( | ) | const |
Gets the restriction descriptor.

|
private |


|
private |

| const std::set< std::vector< uint8_t > > & catapult::state::AccountRestriction::values | ( | ) | const |
Gets the values.

| size_t catapult::state::AccountRestriction::valueSize | ( | ) | const |
Gets the restriction value size.
|
private |
|
private |
|
private |