mirror of
https://github.com/XRPLF/rippled.git
synced 2025-11-26 14:05:51 +00:00
Some cleanups.
This commit is contained in:
@@ -37,6 +37,9 @@ private:
|
|||||||
|
|
||||||
void setHash() const;
|
void setHash() const;
|
||||||
|
|
||||||
|
protected:
|
||||||
|
SHAMapNode(int depth, const uint256& id, bool) : mNodeID(id), mDepth(depth), mHash(0) { ; }
|
||||||
|
|
||||||
public:
|
public:
|
||||||
|
|
||||||
static const int rootDepth = 0;
|
static const int rootDepth = 0;
|
||||||
@@ -63,13 +66,14 @@ public:
|
|||||||
|
|
||||||
bool operator<(const SHAMapNode&) const;
|
bool operator<(const SHAMapNode&) const;
|
||||||
bool operator>(const SHAMapNode&) const;
|
bool operator>(const SHAMapNode&) const;
|
||||||
bool operator==(const SHAMapNode&) const;
|
|
||||||
bool operator==(const uint256&) const;
|
|
||||||
bool operator!=(const SHAMapNode&) const;
|
|
||||||
bool operator!=(const uint256&) const;
|
|
||||||
bool operator<=(const SHAMapNode&) const;
|
bool operator<=(const SHAMapNode&) const;
|
||||||
bool operator>=(const SHAMapNode&) const;
|
bool operator>=(const SHAMapNode&) const;
|
||||||
|
|
||||||
|
bool operator==(const SHAMapNode& n) const { return (mDepth == n.mDepth) && (mNodeID == n.mNodeID); }
|
||||||
|
bool operator==(const uint256& n) const { return n == mNodeID; }
|
||||||
|
bool operator!=(const SHAMapNode& n) const { return (mDepth != n.mDepth) || (mNodeID != n.mNodeID); }
|
||||||
|
bool operator!=(const uint256& n) const { return n != mNodeID; }
|
||||||
|
|
||||||
virtual std::string getString() const;
|
virtual std::string getString() const;
|
||||||
void dump() const;
|
void dump() const;
|
||||||
|
|
||||||
|
|||||||
Reference in New Issue
Block a user