xrpld
Loading...
Searching...
No Matches
xrpl::detail::VotableValue Class Reference
Collaboration diagram for xrpl::detail::VotableValue:

Public Member Functions

 VotableValue (value_type current, value_type target)
void addVote (value_type vote)
void noVote ()
value_type current () const
std::pair< value_type, bool > getVotes () const

Private Types

using value_type = XRPAmount

Private Attributes

value_type const current_
value_type const target_
std::map< value_type, int > voteMap_

Detailed Description

Definition at line 35 of file FeeVoteImpl.cpp.

Member Typedef Documentation

◆ value_type

Definition at line 38 of file FeeVoteImpl.cpp.

Constructor & Destructor Documentation

◆ VotableValue()

xrpl::detail::VotableValue::VotableValue ( value_type current,
value_type target )

Definition at line 44 of file FeeVoteImpl.cpp.

Member Function Documentation

◆ addVote()

void xrpl::detail::VotableValue::addVote ( value_type vote)

Definition at line 51 of file FeeVoteImpl.cpp.

◆ noVote()

void xrpl::detail::VotableValue::noVote ( )

Definition at line 57 of file FeeVoteImpl.cpp.

◆ current()

value_type xrpl::detail::VotableValue::current ( ) const
nodiscard

Definition at line 63 of file FeeVoteImpl.cpp.

◆ getVotes()

auto xrpl::detail::VotableValue::getVotes ( ) const
nodiscard

Definition at line 73 of file FeeVoteImpl.cpp.

Member Data Documentation

◆ current_

value_type const xrpl::detail::VotableValue::current_
private

Definition at line 39 of file FeeVoteImpl.cpp.

◆ target_

value_type const xrpl::detail::VotableValue::target_
private

Definition at line 40 of file FeeVoteImpl.cpp.

◆ voteMap_

std::map<value_type, int> xrpl::detail::VotableValue::voteMap_
private

Definition at line 41 of file FeeVoteImpl.cpp.