First step of refactoring code (ccnx prefix => ndn prefix)
diff --git a/helper/ndn-face-container.cc b/helper/ndn-face-container.cc
new file mode 100644
index 0000000..2e0ec33
--- /dev/null
+++ b/helper/ndn-face-container.cc
@@ -0,0 +1,103 @@
+/* -*- Mode:C++; c-file-style:"gnu"; indent-tabs-mode:nil -*- */
+/*
+ * Copyright (c) 2011 University of California, Los Angeles
+ *
+ * This program is free software; you can redistribute it and/or modify
+ * it under the terms of the GNU General Public License version 2 as
+ * published by the Free Software Foundation;
+ *
+ * This program is distributed in the hope that it will be useful,
+ * but WITHOUT ANY WARRANTY; without even the implied warranty of
+ * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
+ * GNU General Public License for more details.
+ *
+ * You should have received a copy of the GNU General Public License
+ * along with this program; if not, write to the Free Software
+ * Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
+ *
+ * Author: Alexander Afanasyev <alexander.afanasyev@ucla.edu>
+ */
+
+#include "ndn-face-container.h"
+
+#include <algorithm>
+
+#include "ns3/ndn-face.h"
+
+namespace ns3 {
+
+NdnFaceContainer::NdnFaceContainer ()
+{
+}
+
+NdnFaceContainer::NdnFaceContainer (const NdnFaceContainer &other)
+{
+  AddAll (other);
+}
+
+NdnFaceContainer&
+NdnFaceContainer::operator= (const NdnFaceContainer &other)
+{
+  m_faces.clear ();
+  AddAll (other);
+
+  return *this;
+}
+
+  
+void
+NdnFaceContainer::AddAll (Ptr<NdnFaceContainer> other)
+{
+  AddAll (*other);
+}
+
+void
+NdnFaceContainer::AddAll (const NdnFaceContainer &other)
+{
+  m_faces.insert (m_faces.end (),
+                  other.m_faces.begin (), other.m_faces.end ());
+}
+
+NdnFaceContainer::Iterator
+NdnFaceContainer::Begin (void) const
+{
+  return m_faces.begin ();
+}
+
+NdnFaceContainer::Iterator
+NdnFaceContainer::End (void) const
+{
+  return m_faces.end ();
+}
+
+uint32_t
+NdnFaceContainer::GetN (void) const
+{
+  return m_faces.size ();
+}
+
+// void 
+// NdnFaceContainer::SetMetricToAll (uint16_t metric)
+// {
+//   for (FaceContainer::iterator it=m_faces.begin ();
+//        it != m_faces.end ();
+//        it++)
+//     {
+//       (*it)->SetMetric (metric);
+//     }
+// }
+
+void 
+NdnFaceContainer::Add (const Ptr<NdnFace> &face)
+{
+  m_faces.push_back (face);
+}
+
+Ptr<NdnFace>
+NdnFaceContainer::Get (NdnFaceContainer::Iterator i) const
+{
+  return *i;
+}
+
+
+} // namespace ns3