CatapultServer  v0.5.0.1 (Elephant)
catapult::validators::DemuxValidatorBuilderT< TArgs >::ConditionalValidator< TNotification > Class Template Reference
Inheritance diagram for catapult::validators::DemuxValidatorBuilderT< TArgs >::ConditionalValidator< TNotification >:
Collaboration diagram for catapult::validators::DemuxValidatorBuilderT< TArgs >::ConditionalValidator< TNotification >:

Public Member Functions

 ConditionalValidator (NotificationValidatorPointerT< TNotification > &&pValidator, const NotificationValidatorPredicate &predicate)
 
const std::string & name () const override
 Gets the validator name. More...
 
ValidationResult validate (const model::Notification &notification, TArgs &&... args) const override
 Validates a single notification with contextual information args. More...
 
- Public Member Functions inherited from catapult::validators::NotificationValidatorT< model::Notification, TArgs... >
virtual ~NotificationValidatorT ()=default
 

Private Attributes

NotificationValidatorPointerT< TNotification > m_pValidator
 
NotificationValidatorPredicate m_predicate
 

Additional Inherited Members

- Public Types inherited from catapult::validators::NotificationValidatorT< model::Notification, TArgs... >
using NotificationType = model::Notification
 Notification type. More...
 

Constructor & Destructor Documentation

◆ ConditionalValidator()

template<typename... TArgs>
template<typename TNotification >
catapult::validators::DemuxValidatorBuilderT< TArgs >::ConditionalValidator< TNotification >::ConditionalValidator ( NotificationValidatorPointerT< TNotification > &&  pValidator,
const NotificationValidatorPredicate predicate 
)
inline

Member Function Documentation

◆ name()

template<typename... TArgs>
template<typename TNotification >
const std::string& catapult::validators::DemuxValidatorBuilderT< TArgs >::ConditionalValidator< TNotification >::name ( ) const
inlineoverridevirtual

◆ validate()

template<typename... TArgs>
template<typename TNotification >
ValidationResult catapult::validators::DemuxValidatorBuilderT< TArgs >::ConditionalValidator< TNotification >::validate ( const model::Notification notification,
TArgs &&...  args 
) const
inlineoverridevirtual

Validates a single notification with contextual information args.

Implements catapult::validators::NotificationValidatorT< model::Notification, TArgs... >.

Member Data Documentation

◆ m_predicate

template<typename... TArgs>
template<typename TNotification >
NotificationValidatorPredicate catapult::validators::DemuxValidatorBuilderT< TArgs >::ConditionalValidator< TNotification >::m_predicate
private

◆ m_pValidator

template<typename... TArgs>
template<typename TNotification >
NotificationValidatorPointerT<TNotification> catapult::validators::DemuxValidatorBuilderT< TArgs >::ConditionalValidator< TNotification >::m_pValidator
private

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