Replace InstanceCounter with CountedObject

This commit is contained in:
Vinnie Falco
2013-06-17 17:45:33 -07:00
parent abce930b8b
commit 2abec05b5b
53 changed files with 321 additions and 334 deletions

View File

@@ -7,8 +7,6 @@
#ifndef RIPPLE_HASHROUTER_H
#define RIPPLE_HASHROUTER_H
DEFINE_INSTANCE (HashRouterEntry);
// VFALCO TODO convert these macros to int constants
#define SF_RELAYED 0x01 // Has already been relayed to other nodes
#define SF_BAD 0x02 // Signature/format is bad
@@ -18,7 +16,8 @@ DEFINE_INSTANCE (HashRouterEntry);
#define SF_TRUSTED 0x20 // comes from trusted source
// VFALCO TODO move this class into the scope of class HashRouter
class HashRouterEntry : private IS_INSTANCE (HashRouterEntry)
class HashRouterEntry
: public CountedObject <HashRouterEntry>
{
public:
HashRouterEntry () : mFlags (0)