Reformatting using AStyle

This commit is contained in:
Vinnie Falco
2013-06-14 08:45:13 -07:00
parent 36bd8f7173
commit 521e812fc4
294 changed files with 54609 additions and 47598 deletions

View File

@@ -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&);