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

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

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

Detailed Description

Definition at line 32 of file FeeVoteImpl.cpp.

Member Typedef Documentation

◆ value_type

Definition at line 35 of file FeeVoteImpl.cpp.

Constructor & Destructor Documentation

◆ VotableValue()

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

Definition at line 41 of file FeeVoteImpl.cpp.

Member Function Documentation

◆ addVote()

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

Definition at line 49 of file FeeVoteImpl.cpp.

◆ noVote()

void ripple::detail::VotableValue::noVote ( )

Definition at line 55 of file FeeVoteImpl.cpp.

◆ current()

value_type ripple::detail::VotableValue::current ( ) const

Definition at line 61 of file FeeVoteImpl.cpp.

◆ getVotes()

auto ripple::detail::VotableValue::getVotes ( ) const

Definition at line 71 of file FeeVoteImpl.cpp.

Member Data Documentation

◆ current_

const value_type ripple::detail::VotableValue::current_
private

Definition at line 36 of file FeeVoteImpl.cpp.

◆ target_

const value_type ripple::detail::VotableValue::target_
private

Definition at line 37 of file FeeVoteImpl.cpp.

◆ voteMap_

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

Definition at line 38 of file FeeVoteImpl.cpp.