}
+std::vector<ConservedPath::path_element> ConservedPath::normalizedIndexes() const
+{
+ vector<path_element> paths;
+ for (ConservedPath::const_iterator this_itor = begin();
+ this_itor != end();
+ ++this_itor)
+ {
+ if (*this_itor < 0) {
+ paths.push_back(-*this_itor);
+ } else {
+ paths.push_back(*this_itor);
+ }
+ }
+ return paths;
+}
+
+
/////////////////////
ExtendedConservedPath::ExtendedConservedPath()
: ConservedPath(),
{
}
+std::vector<ConservedPath::path_element> ExtendedConservedPath::normalizedIndexes() const
+{
+ vector<path_element> paths;
+ for (ConservedPath::const_iterator this_itor = begin();
+ this_itor != end();
+ ++this_itor)
+ {
+ if (*this_itor < 0) {
+ paths.push_back(-(*this_itor) - window_size);
+ } else {
+ paths.push_back((*this_itor));
+ }
+ }
+ return paths;
+}
+
ExtendedConservedPath& ExtendedConservedPath::extend(int growth)
{
window_size += growth;