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 getVotes () const
 

Private Types

using value_type = XRPAmount
 

Private Attributes

const value_type mCurrent
 
const value_type mTarget
 
std::map< value_type, int > mVoteMap
 

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.

◆ getVotes()

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

Definition at line 65 of file FeeVoteImpl.cpp.

Member Data Documentation

◆ mCurrent

const value_type ripple::detail::VotableValue::mCurrent
private

Definition at line 36 of file FeeVoteImpl.cpp.

◆ mTarget

const value_type ripple::detail::VotableValue::mTarget
private

Definition at line 37 of file FeeVoteImpl.cpp.

◆ mVoteMap

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

Definition at line 38 of file FeeVoteImpl.cpp.