xrpld
Loading...
Searching...
No Matches
xrpl::Rules::Impl Class Reference
Collaboration diagram for xrpl::Rules::Impl:

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, HardenedHash<> > set_
std::optional< uint256digest_
std::unordered_set< uint256, beast::Uhash<> > const & presets_

Detailed Description

Definition at line 100 of file Rules.cpp.

Constructor & Destructor Documentation

◆ Impl() [1/2]

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

Definition at line 108 of file Rules.cpp.

◆ Impl() [2/2]

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

Definition at line 112 of file Rules.cpp.

Member Function Documentation

◆ presets()

std::unordered_set< uint256, beast::Uhash<> > const & xrpl::Rules::Impl::presets ( ) const
nodiscard

Definition at line 123 of file Rules.cpp.

◆ enabled()

bool xrpl::Rules::Impl::enabled ( uint256 const & feature) const
nodiscard

Definition at line 129 of file Rules.cpp.

◆ operator==()

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

Definition at line 137 of file Rules.cpp.

Member Data Documentation

◆ set_

std::unordered_set<uint256, HardenedHash<> > xrpl::Rules::Impl::set_
private

Definition at line 103 of file Rules.cpp.

◆ digest_

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

Definition at line 104 of file Rules.cpp.

◆ presets_

std::unordered_set<uint256, beast::Uhash<> > const& xrpl::Rules::Impl::presets_
private

Definition at line 105 of file Rules.cpp.