45#ifndef BRAINS_PAIRLIST_HPP
47#define BRAINS_PAIRLIST_HPP
70 void addPairs(std::set<int>& set1, std::set<int>& set2);
71 template<
typename IterType1,
typename IterType2>
72 void addPairs(IterType1 iter1_first, IterType1 iter1_last,
73 IterType2 iter2_first, IterType2 iter2_last);
78 void removePairs(std::set<int>& set1, std::set<int>& set2);
79 template<
typename IterType1,
typename IterType2>
80 void removePairs(IterType1 iter1_first, IterType1 iter1_last,
81 IterType2 iter2_first, IterType2 iter2_last);
99 std::set<std::pair<int, int>> pairSet_;
100 std::vector<int> pairList_;
PairList class maintains a general purpose list of atom pairs using the global indices of the atoms.
friend std::ostream & operator<<(std::ostream &o, PairList &e)
write out the exclusion list to an ostream
int * getPairList()
Returns the pairs in a plain array.
int getSizeOfPairList()
Returns the size of PairList.
bool hasPair(int i, int j)
Checks whether pair (i, j) is in this PairList class.
void addPair(int i, int j)
Adds a pair into this PairList class.
void removePair(int i, int j)
Remove a pair from PairList class.
int getSize()
Returns the number of pairs in the list.
This basic Periodic Table class was originally taken from the data.cpp file in OpenBabel.