src: Updating code style to conform (more or less) to ndn-cxx style
Also, adding .clang-format that describes the applied style. Note that
this style requires a slightly customized version of clang-format.
diff --git a/utils/ndn-fw-hop-count-tag.hpp b/utils/ndn-fw-hop-count-tag.hpp
index f530961..6b4920c 100644
--- a/utils/ndn-fw-hop-count-tag.hpp
+++ b/utils/ndn-fw-hop-count-tag.hpp
@@ -30,56 +30,64 @@
* @ingroup ndn-fw
* @brief Packet tag that is used to track hop count for Interest-Data pairs
*/
-class FwHopCountTag : public Tag
-{
+class FwHopCountTag : public Tag {
public:
static TypeId
- GetTypeId (void);
+ GetTypeId(void);
/**
* @brief Default constructor
*/
- FwHopCountTag () : m_hopCount (0) { };
+ FwHopCountTag()
+ : m_hopCount(0){};
/**
* @brief Destructor
*/
- ~FwHopCountTag () { }
+ ~FwHopCountTag()
+ {
+ }
/**
* @brief Increment hop count
*/
void
- Increment () { m_hopCount ++; }
+ Increment()
+ {
+ m_hopCount++;
+ }
/**
* @brief Get value of hop count
*/
uint32_t
- Get () const { return m_hopCount; }
+ Get() const
+ {
+ return m_hopCount;
+ }
////////////////////////////////////////////////////////
// from ObjectBase
////////////////////////////////////////////////////////
virtual TypeId
- GetInstanceTypeId () const;
-
+ GetInstanceTypeId() const;
+
////////////////////////////////////////////////////////
// from Tag
////////////////////////////////////////////////////////
-
+
virtual uint32_t
- GetSerializedSize () const;
+ GetSerializedSize() const;
virtual void
- Serialize (TagBuffer i) const;
-
- virtual void
- Deserialize (TagBuffer i);
+ Serialize(TagBuffer i) const;
virtual void
- Print (std::ostream &os) const;
-
+ Deserialize(TagBuffer i);
+
+ virtual void
+ Print(std::ostream& os) const;
+
private:
uint32_t m_hopCount;
};