Ignore:
Timestamp:
May 19, 2021, 7:06:29 PM (4 years ago)
Author:
Frederik Heber <frederik.heber@…>
Branches:
Candidate_v1.7.0, stable
Children:
15fc6a
Parents:
3f8238
git-author:
Frederik Heber <frederik.heber@…> (05/14/21 21:14:53)
git-committer:
Frederik Heber <frederik.heber@…> (05/19/21 19:06:29)
Message:

Extended BindingModel by comparators.

  • this allows placing them in sorted STL containers.
  • TEST: Added unit test.
File:
1 edited

Legend:

Unmodified
Added
Removed
  • src/Potentials/BindingModel.hpp

    r3f8238 rc4afdf3  
    5555  const vector_nodes_t& getNodes() const { return nodes; }
    5656
     57  // comparators (allows sorting and hence quicker finding in STL containers)
     58  bool operator<(const BindingModel &model) const;
     59  bool operator>(const BindingModel &model) const;
     60  bool operator==(const BindingModel &model) const;
     61  bool operator!=(const BindingModel &model) const {
     62    return (!(*this == model));
     63  }
     64
    5765private:
    5866  //!> the homology graph of this binding model
Note: See TracChangeset for help on using the changeset viewer.