mirror of
https://github.com/XRPLF/rippled.git
synced 2025-12-06 17:27:55 +00:00
Reformatting using AStyle
This commit is contained in:
@@ -3,25 +3,25 @@
|
||||
|
||||
enum SHAMapType
|
||||
{
|
||||
smtTRANSACTION =1, // A tree of transactions
|
||||
smtSTATE =2, // A tree of state nodes
|
||||
smtFREE =3, // A tree not part of a ledger
|
||||
smtTRANSACTION = 1, // A tree of transactions
|
||||
smtSTATE = 2, // A tree of state nodes
|
||||
smtFREE = 3, // A tree not part of a ledger
|
||||
};
|
||||
|
||||
class SHAMapMissingNode : public std::runtime_error
|
||||
{
|
||||
public:
|
||||
SHAMapMissingNode (SHAMapType t,
|
||||
SHAMapMissingNode (SHAMapType t,
|
||||
SHAMapNode const& nodeID,
|
||||
uint256 const& nodeHash)
|
||||
: std::runtime_error ("SHAMapMissingNode")
|
||||
, mType (t)
|
||||
, mNodeID (nodeID)
|
||||
, mNodeHash (nodeHash)
|
||||
{
|
||||
{
|
||||
}
|
||||
|
||||
SHAMapMissingNode (SHAMapType t,
|
||||
SHAMapMissingNode (SHAMapType t,
|
||||
SHAMapNode const& nodeID,
|
||||
uint256 const& nodeHash,
|
||||
uint256 const& targetIndex)
|
||||
@@ -30,48 +30,48 @@ public:
|
||||
, mNodeID (nodeID)
|
||||
, mNodeHash (nodeHash)
|
||||
, mTargetIndex (targetIndex)
|
||||
{
|
||||
{
|
||||
}
|
||||
|
||||
virtual ~SHAMapMissingNode () throw()
|
||||
{
|
||||
virtual ~SHAMapMissingNode () throw ()
|
||||
{
|
||||
}
|
||||
|
||||
void setTargetNode (uint256 const& tn)
|
||||
void setTargetNode (uint256 const& tn)
|
||||
{
|
||||
mTargetIndex = tn;
|
||||
}
|
||||
|
||||
SHAMapType getMapType () const
|
||||
SHAMapType getMapType () const
|
||||
{
|
||||
return mType;
|
||||
}
|
||||
|
||||
|
||||
SHAMapNode const& getNodeID () const
|
||||
{
|
||||
return mNodeID;
|
||||
}
|
||||
|
||||
|
||||
uint256 const& getNodeHash () const
|
||||
{
|
||||
return mNodeHash;
|
||||
}
|
||||
|
||||
|
||||
uint256 const& getTargetIndex () const
|
||||
{
|
||||
return mTargetIndex;
|
||||
}
|
||||
|
||||
|
||||
bool hasTargetIndex () const
|
||||
{
|
||||
return !mTargetIndex.isZero();
|
||||
return !mTargetIndex.isZero ();
|
||||
}
|
||||
|
||||
private:
|
||||
SHAMapType mType;
|
||||
SHAMapNode mNodeID;
|
||||
uint256 mNodeHash;
|
||||
uint256 mTargetIndex;
|
||||
SHAMapType mType;
|
||||
SHAMapNode mNodeID;
|
||||
uint256 mNodeHash;
|
||||
uint256 mTargetIndex;
|
||||
};
|
||||
|
||||
extern std::ostream& operator<< (std::ostream&, SHAMapMissingNode const&);
|
||||
|
||||
Reference in New Issue
Block a user