center on path
[mussa.git] / alg / conserved_path.cpp
index 56253c9bc6fa5948d5128ca06441c124ff4cf6a6..af8af7d4ba5ae356b8775330b38d5e3ce64d1a43 100644 (file)
@@ -58,7 +58,7 @@ std::ostream& operator<<(std::ostream& out, const ConservedPath& path)
   {
     // print the first element
     ConservedPath::const_iterator itor = path.begin();
-    out << ">" << *itor;
+    out << ">" << *itor++;
     // print the remaining elements
     for (;
         itor != path.end();
@@ -186,4 +186,10 @@ ExtendedConservedPath& ExtendedConservedPath::extend(int growth)
   return *this;
 }
 
+std::ostream& operator<<(std::ostream& out, const ExtendedConservedPath& path)
+{
+  out << "<extended_path size=" << path.window_size;
+  out << (ConservedPath&)path;
+  return out;
+}