Implementing visitor pattern for CCNx message parsing. Needs debugging.
Altering src/network/model/buffer* to support more Iterator features
diff --git a/model/name-components.h b/model/name-components.h
index d9b3f0a..0ea4821 100644
--- a/model/name-components.h
+++ b/model/name-components.h
@@ -36,7 +36,11 @@
Components (const std::string &s);
~Components ();
- Components& operator () (const std::string &s);
+ inline void
+ Add (const std::string &s);
+
+ Components&
+ operator () (const std::string &s);
const std::list<std::string> &
GetComponents () const;
@@ -70,6 +74,12 @@
return m_prefix.size ();
}
+void
+Components::Add (const std::string &s)
+{
+ (*this) (s);
+}
+
} // Namespace Name
} // namespace ns3