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

@@ -1,7 +1,7 @@
#ifndef RIPPLE_TRANSACTIONACQUIRE_H
#define RIPPLE_TRANSACTIONACQUIRE_H
DEFINE_INSTANCE(TransactionAcquire);
DEFINE_INSTANCE (TransactionAcquire);
// VFALCO TODO rename to PeerTxRequest
// A transaction set we are trying to acquire
@@ -11,27 +11,36 @@ class TransactionAcquire
, public boost::enable_shared_from_this <TransactionAcquire>
{
public:
typedef boost::shared_ptr<TransactionAcquire> pointer;
typedef boost::shared_ptr<TransactionAcquire> pointer;
public:
explicit TransactionAcquire (uint256 const& hash);
virtual ~TransactionAcquire() { ; }
explicit TransactionAcquire (uint256 const& hash);
virtual ~TransactionAcquire ()
{
;
}
SHAMap::ref getMap() { return mMap; }
SHAMap::ref getMap ()
{
return mMap;
}
SHAMapAddNode takeNodes(const std::list<SHAMapNode>& IDs,
const std::list< Blob >& data, Peer::ref);
SHAMapAddNode takeNodes (const std::list<SHAMapNode>& IDs,
const std::list< Blob >& data, Peer::ref);
private:
SHAMap::pointer mMap;
bool mHaveRoot;
SHAMap::pointer mMap;
bool mHaveRoot;
void onTimer(bool progress);
void newPeer(Peer::ref peer) { trigger(peer); }
void onTimer (bool progress);
void newPeer (Peer::ref peer)
{
trigger (peer);
}
void done();
void trigger(Peer::ref);
boost::weak_ptr<PeerSet> pmDowncast();
void done ();
void trigger (Peer::ref);
boost::weak_ptr<PeerSet> pmDowncast ();
};
#endif