|
xrpld
|
#include <SHAMapAddNode.h>
Public Member Functions | |
| SHAMapAddNode () | |
| void | incInvalid () |
| Record one node that was rejected. | |
| void | incUseful () |
| Record one node that produced a good result. | |
| void | incDuplicate () |
| Record one node that was not needed: the map already held it, or the map or its acquisition was no longer taking nodes. | |
| int | getGood () const |
| int | getBad () const |
| int | getDuplicate () const |
| bool | isGood () const |
| Whether nodes that produced a good result or were not needed outnumber the ones rejected. | |
| bool | isInvalid () const |
| bool | isUseful () const |
| void | reset () |
| Clear every count back to zero. | |
| std::string | get () const |
| Render the tally as a log line. | |
| SHAMapAddNode & | operator+= (SHAMapAddNode const &n) |
| Add another verdict's counts into this one. | |
Static Public Member Functions | |
| static SHAMapAddNode | duplicate () |
| static SHAMapAddNode | useful () |
| static SHAMapAddNode | invalid () |
Private Member Functions | |
| SHAMapAddNode (int good, int bad, int duplicate) | |
Private Attributes | |
| int | good_ |
| int | bad_ |
| int | duplicate_ |
Definition at line 8 of file SHAMapAddNode.h.
| xrpl::SHAMapAddNode::SHAMapAddNode | ( | ) |
Definition at line 127 of file SHAMapAddNode.h.
|
private |
Definition at line 131 of file SHAMapAddNode.h.
| void xrpl::SHAMapAddNode::incInvalid | ( | ) |
Record one node that was rejected.
Definition at line 137 of file SHAMapAddNode.h.
| void xrpl::SHAMapAddNode::incUseful | ( | ) |
Record one node that produced a good result.
Definition at line 143 of file SHAMapAddNode.h.
| void xrpl::SHAMapAddNode::incDuplicate | ( | ) |
Record one node that was not needed: the map already held it, or the map or its acquisition was no longer taking nodes.
isGood() counts it on the accepted side.
Definition at line 149 of file SHAMapAddNode.h.
|
nodiscard |
Definition at line 155 of file SHAMapAddNode.h.
|
nodiscard |
Definition at line 161 of file SHAMapAddNode.h.
|
nodiscard |
Definition at line 167 of file SHAMapAddNode.h.
|
nodiscard |
Whether nodes that produced a good result or were not needed outnumber the ones rejected.
Definition at line 173 of file SHAMapAddNode.h.
|
nodiscard |
Definition at line 179 of file SHAMapAddNode.h.
|
nodiscard |
Definition at line 185 of file SHAMapAddNode.h.
|
static |
Definition at line 191 of file SHAMapAddNode.h.
|
static |
Definition at line 197 of file SHAMapAddNode.h.
|
static |
Definition at line 203 of file SHAMapAddNode.h.
| void xrpl::SHAMapAddNode::reset | ( | ) |
Clear every count back to zero.
Definition at line 209 of file SHAMapAddNode.h.
|
nodiscard |
Render the tally as a log line.
Definition at line 215 of file SHAMapAddNode.h.
| SHAMapAddNode & xrpl::SHAMapAddNode::operator+= | ( | SHAMapAddNode const & | n | ) |
Add another verdict's counts into this one.
| n | The verdict to add. |
Definition at line 243 of file SHAMapAddNode.h.
|
private |
Definition at line 11 of file SHAMapAddNode.h.
|
private |
Definition at line 12 of file SHAMapAddNode.h.
|
private |
Definition at line 13 of file SHAMapAddNode.h.