face: Incrementing Face counters
Change-Id: Ia1d7917bb52cf01ab2ff304638bc9f6cbdb2626f
Refs: #1178
diff --git a/daemon/face/face-counter.hpp b/daemon/face/face-counter.hpp
index e5809eb..ba3b98e 100644
--- a/daemon/face/face-counter.hpp
+++ b/daemon/face/face-counter.hpp
@@ -13,13 +13,15 @@
/** \class FaceCounter
* \brief represents a counter on face
+ *
+ * \todo This class should be noncopyable
*/
typedef uint64_t FaceCounter;
/** \brief contains counters on face
*/
-class FaceCounters
+class FaceCounters : noncopyable
{
public:
FaceCounters();
@@ -59,6 +61,14 @@
FaceCounter m_outData;
};
+inline
+FaceCounters::FaceCounters()
+ : m_inInterest(0)
+ , m_inData(0)
+ , m_outInterest(0)
+ , m_outData(0)
+{
+}
inline const FaceCounter&
FaceCounters::getInInterest() const