hyperledger/iroha
Iroha - A simple, decentralized ledger http://iroha.tech
shared_model::validation::CommandValidatorVisitor< FieldValidator > Class Template Reference

#include "transaction_validator.hpp"

Inheritance diagram for shared_model::validation::CommandValidatorVisitor< FieldValidator >:
Inheritance graph
Collaboration diagram for shared_model::validation::CommandValidatorVisitor< FieldValidator >:
Collaboration graph

Public Member Functions

 CommandValidatorVisitor (std::shared_ptr< ValidatorsConfig > config)
 
std::optional< ValidationErroroperator() (const interface::AddAssetQuantity &add_asset_quantity) const
 
std::optional< ValidationErroroperator() (const interface::AddPeer &add_peer) const
 
std::optional< ValidationErroroperator() (const interface::AddSignatory &add_signatory) const
 
std::optional< ValidationErroroperator() (const interface::CallEngine &call_engine) const
 
std::optional< ValidationErroroperator() (const interface::AppendRole &append_role) const
 
std::optional< ValidationErroroperator() (const interface::CreateAccount &create_account) const
 
std::optional< ValidationErroroperator() (const interface::CreateAsset &create_asset) const
 
std::optional< ValidationErroroperator() (const interface::CreateDomain &create_domain) const
 
std::optional< ValidationErroroperator() (const interface::CreateRole &create_role) const
 
std::optional< ValidationErroroperator() (const interface::DetachRole &detach_role) const
 
std::optional< ValidationErroroperator() (const interface::GrantPermission &grant_permission) const
 
std::optional< ValidationErroroperator() (const interface::RemovePeer &remove_peer) const
 
std::optional< ValidationErroroperator() (const interface::RemoveSignatory &remove_signatory) const
 
std::optional< ValidationErroroperator() (const interface::RevokePermission &revoke_permission) const
 
std::optional< ValidationErroroperator() (const interface::SetAccountDetail &set_account_detail) const
 
std::optional< ValidationErroroperator() (const interface::SetQuorum &set_quorum) const
 
std::optional< ValidationErroroperator() (const interface::SubtractAssetQuantity &subtract_asset_quantity) const
 
std::optional< ValidationErroroperator() (const interface::TransferAsset &transfer_asset) const
 
std::optional< ValidationErroroperator() (const interface::CompareAndSetAccountDetail &compare_and_set_account_detail) const
 
std::optional< ValidationErroroperator() (const interface::SetSettingValue &set_setting_value) const
 

Detailed Description

template<typename FieldValidator>
class shared_model::validation::CommandValidatorVisitor< FieldValidator >

Visitor used by transaction validator to validate each command

Template Parameters
FieldValidator- field validator type
Note
this class is not thread safe and never going to be so copy constructor and assignment operator are disabled explicitly

Constructor & Destructor Documentation

◆ CommandValidatorVisitor()

template<typename FieldValidator >
shared_model::validation::CommandValidatorVisitor< FieldValidator >::CommandValidatorVisitor ( std::shared_ptr< ValidatorsConfig config)
inline

Member Function Documentation

◆ operator()() [1/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::AddAssetQuantity add_asset_quantity) const
inline
Here is the call graph for this function:

◆ operator()() [2/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::AddPeer add_peer) const
inline
Here is the call graph for this function:

◆ operator()() [3/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::AddSignatory add_signatory) const
inline
Here is the call graph for this function:

◆ operator()() [4/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::CallEngine call_engine) const
inline
Here is the call graph for this function:

◆ operator()() [5/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::AppendRole append_role) const
inline
Here is the call graph for this function:

◆ operator()() [6/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::CreateAccount create_account) const
inline
Here is the call graph for this function:

◆ operator()() [7/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::CreateAsset create_asset) const
inline
Here is the call graph for this function:

◆ operator()() [8/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::CreateDomain create_domain) const
inline
Here is the call graph for this function:

◆ operator()() [9/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::CreateRole create_role) const
inline
Here is the call graph for this function:

◆ operator()() [10/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::DetachRole detach_role) const
inline
Here is the call graph for this function:

◆ operator()() [11/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::GrantPermission grant_permission) const
inline
Here is the call graph for this function:

◆ operator()() [12/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::RemovePeer remove_peer) const
inline
Here is the call graph for this function:

◆ operator()() [13/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::RemoveSignatory remove_signatory) const
inline
Here is the call graph for this function:

◆ operator()() [14/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::RevokePermission revoke_permission) const
inline
Here is the call graph for this function:

◆ operator()() [15/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::SetAccountDetail set_account_detail) const
inline
Here is the call graph for this function:

◆ operator()() [16/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::SetQuorum set_quorum) const
inline
Here is the call graph for this function:

◆ operator()() [17/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::SubtractAssetQuantity subtract_asset_quantity) const
inline
Here is the call graph for this function:

◆ operator()() [18/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::TransferAsset transfer_asset) const
inline
Here is the call graph for this function:

◆ operator()() [19/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::CompareAndSetAccountDetail compare_and_set_account_detail) const
inline
Here is the call graph for this function:

◆ operator()() [20/20]

template<typename FieldValidator >
std::optional<ValidationError> shared_model::validation::CommandValidatorVisitor< FieldValidator >::operator() ( const interface::SetSettingValue set_setting_value) const
inline

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