CatapultServer  v0.5.0.1 (Elephant)
catapult::state::TypedAccountRestriction< TRestrictionValue > Class Template Reference

Typed account restriction. More...

Collaboration diagram for catapult::state::TypedAccountRestriction< TRestrictionValue >:

Public Member Functions

 TypedAccountRestriction (const AccountRestriction &restriction)
 Creates a typed account restriction around restriction. More...
 
const AccountRestrictionDescriptordescriptor () const
 Gets the descriptor of the underlying account restriction. More...
 
size_t size () const
 Gets the number of values of the underlying account restriction. More...
 
bool contains (const TRestrictionValue &value) const
 Returns true if the underlying account restriction contains value. More...
 
bool canAllow (const model::AccountRestrictionModification< TRestrictionValue > &modification) const
 Returns true if modification can be applied to the underlying restriction. More...
 
bool canBlock (const model::AccountRestrictionModification< TRestrictionValue > &modification) const
 Returns true if modification can be applied to the underlying restriction. More...
 

Private Attributes

const AccountRestrictionm_restriction
 

Detailed Description

template<typename TRestrictionValue>
class catapult::state::TypedAccountRestriction< TRestrictionValue >

Typed account restriction.

Constructor & Destructor Documentation

◆ TypedAccountRestriction()

template<typename TRestrictionValue >
catapult::state::TypedAccountRestriction< TRestrictionValue >::TypedAccountRestriction ( const AccountRestriction restriction)
inlineexplicit

Creates a typed account restriction around restriction.

Member Function Documentation

◆ canAllow()

template<typename TRestrictionValue >
bool catapult::state::TypedAccountRestriction< TRestrictionValue >::canAllow ( const model::AccountRestrictionModification< TRestrictionValue > &  modification) const
inline

Returns true if modification can be applied to the underlying restriction.

Here is the call graph for this function:

◆ canBlock()

template<typename TRestrictionValue >
bool catapult::state::TypedAccountRestriction< TRestrictionValue >::canBlock ( const model::AccountRestrictionModification< TRestrictionValue > &  modification) const
inline

Returns true if modification can be applied to the underlying restriction.

Here is the call graph for this function:

◆ contains()

template<typename TRestrictionValue >
bool catapult::state::TypedAccountRestriction< TRestrictionValue >::contains ( const TRestrictionValue &  value) const
inline

Returns true if the underlying account restriction contains value.

Here is the call graph for this function:

◆ descriptor()

template<typename TRestrictionValue >
const AccountRestrictionDescriptor& catapult::state::TypedAccountRestriction< TRestrictionValue >::descriptor ( ) const
inline

Gets the descriptor of the underlying account restriction.

Here is the call graph for this function:

◆ size()

template<typename TRestrictionValue >
size_t catapult::state::TypedAccountRestriction< TRestrictionValue >::size ( ) const
inline

Gets the number of values of the underlying account restriction.

Here is the call graph for this function:

Member Data Documentation

◆ m_restriction

template<typename TRestrictionValue >
const AccountRestriction& catapult::state::TypedAccountRestriction< TRestrictionValue >::m_restriction
private

The documentation for this class was generated from the following file: