Changeset 894a5f for src/base/index.hpp


Ignore:
Timestamp:
Feb 2, 2012, 1:58:12 PM (14 years ago)
Author:
Julian Iseringhausen <isering@…>
Children:
32ff22
Parents:
01be70
Message:

Parallel performance update.

git-svn-id: https://svn.version.fz-juelich.de/scafacos/trunk@1314 5161e1c8-67bf-11de-9fd5-51895aff932f

File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/base/index.hpp

    r01be70 r894a5f  
    101101  }
    102102
     103  bool operator<(const Index& other) const
     104  {
     105    for (int j=0; j<3; ++j) {
     106      if (this->i[j] < other.i[j]) return true;
     107      if (this->i[j] != other.i[j]) return false;
     108    }
     109
     110    return false;
     111  }
     112
    103113  bool operator!=(const Index& other) const
    104114  {
     
    275285}
    276286
    277 bool operator<(const Index& lhs, const Index& rhs);
    278287const Index Max(const Index& index1, const Index& index2);
    279288std::ostream& operator<<(std::ostream& out, const Index& index);
Note: See TracChangeset for help on using the changeset viewer.