rippled
Public Member Functions | Private Attributes | List of all members
ripple::Rules::Impl Class Reference
Collaboration diagram for ripple::Rules::Impl:
Collaboration graph
[legend]

Public Member Functions

 Impl (std::unordered_set< uint256, beast::uhash<>> const &presets)
 
 Impl (std::unordered_set< uint256, beast::uhash<>> const &presets, std::optional< uint256 > const &digest, STVector256 const &amendments)
 
std::unordered_set< uint256, beast::uhash<> > const & presets () const
 
bool enabled (uint256 const &feature) const
 
bool operator== (Impl const &other) const
 

Private Attributes

std::unordered_set< uint256, hardened_hash<> > set_
 
std::optional< uint256digest_
 
std::unordered_set< uint256, beast::uhash<> > const & presets_
 

Detailed Description

Definition at line 25 of file Rules.cpp.

Constructor & Destructor Documentation

◆ Impl() [1/2]

ripple::Rules::Impl::Impl ( std::unordered_set< uint256, beast::uhash<>> const &  presets)
explicit

Definition at line 33 of file Rules.cpp.

◆ Impl() [2/2]

ripple::Rules::Impl::Impl ( std::unordered_set< uint256, beast::uhash<>> const &  presets,
std::optional< uint256 > const &  digest,
STVector256 const &  amendments 
)

Definition at line 38 of file Rules.cpp.

Member Function Documentation

◆ presets()

std::unordered_set<uint256, beast::uhash<> > const& ripple::Rules::Impl::presets ( ) const

Definition at line 49 of file Rules.cpp.

◆ enabled()

bool ripple::Rules::Impl::enabled ( uint256 const &  feature) const

Definition at line 55 of file Rules.cpp.

◆ operator==()

bool ripple::Rules::Impl::operator== ( Impl const &  other) const

Definition at line 63 of file Rules.cpp.

Member Data Documentation

◆ set_

std::unordered_set<uint256, hardened_hash<> > ripple::Rules::Impl::set_
private

Definition at line 28 of file Rules.cpp.

◆ digest_

std::optional<uint256> ripple::Rules::Impl::digest_
private

Definition at line 29 of file Rules.cpp.

◆ presets_

std::unordered_set<uint256, beast::uhash<> > const& ripple::Rules::Impl::presets_
private

Definition at line 30 of file Rules.cpp.