21#ifndef VOTCA_XTP_EWALDREGISTRY_H
22#define VOTCA_XTP_EWALDREGISTRY_H
92 std::vector<Index>
AllIds()
const;
103 using Key = std::pair<Index, EwaldChargeState>;
107 if (a.first != b.first) {
108 return a.first < b.first;
110 return static_cast<int>(a.second) <
static_cast<int>(b.second);
114 std::map<Key, PolarSegment, KeyLess>
store_;
std::map< Key, PolarSegment, KeyLess > store_
bool Has(Index id, EwaldChargeState state) const
std::pair< Index, EwaldChargeState > Key
std::vector< EwaldChargeState > StatesFor(Index id) const
std::vector< Index > AllIds() const
void WriteToCpt(CheckpointWriter &w) const
const PolarSegment & Get(Index id, EwaldChargeState state) const
void Erase(Index id, EwaldChargeState state)
void Register(Index id, EwaldChargeState state, PolarSegment segment)
void ReadFromCpt(CheckpointReader &r)
ClassicalSegment< PolarSite > PolarSegment
Provides a means for comparing floating point numbers.
bool operator()(const Key &a, const Key &b) const