CatapultServer  v0.5.0.1 (Elephant)
catapult::validators::AggregateEntityValidatorT< TArgs > Class Template Referencefinal

An aggregate validator. More...

Classes

class  DispatchForwarder
 Helper for invoking curried validators. More...
 

Public Types

using ValidatorVector = ValidatorVectorT< TArgs... >
 

Public Member Functions

 AggregateEntityValidatorT (ValidatorVector &&validators)
 Creates an aggregate validator around validators. More...
 
template<typename... TCurryArgs>
DispatchForwarder curry (TCurryArgs &&... args) const
 Prepares the invocation of sub validators by currying args to invocations made on the returned forwarder. More...
 
std::vector< std::string > names () const
 Gets the names of all sub validators. More...
 

Private Attributes

ValidatorVector m_validators
 

Detailed Description

template<typename... TArgs>
class catapult::validators::AggregateEntityValidatorT< TArgs >

An aggregate validator.

Member Typedef Documentation

◆ ValidatorVector

template<typename... TArgs>
using catapult::validators::AggregateEntityValidatorT< TArgs >::ValidatorVector = ValidatorVectorT<TArgs...>

Constructor & Destructor Documentation

◆ AggregateEntityValidatorT()

template<typename... TArgs>
catapult::validators::AggregateEntityValidatorT< TArgs >::AggregateEntityValidatorT ( ValidatorVector &&  validators)
inlineexplicit

Creates an aggregate validator around validators.

Member Function Documentation

◆ curry()

template<typename... TArgs>
template<typename... TCurryArgs>
DispatchForwarder catapult::validators::AggregateEntityValidatorT< TArgs >::curry ( TCurryArgs &&...  args) const
inline

Prepares the invocation of sub validators by currying args to invocations made on the returned forwarder.

◆ names()

template<typename... TArgs>
std::vector<std::string> catapult::validators::AggregateEntityValidatorT< TArgs >::names ( ) const
inline

Gets the names of all sub validators.

Here is the call graph for this function:

Member Data Documentation

◆ m_validators

template<typename... TArgs>
ValidatorVector catapult::validators::AggregateEntityValidatorT< TArgs >::m_validators
private

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