votca 2026-dev
Loading...
Searching...
No Matches
votca::xtp::EwaldRegistry Class Reference

#include <ewaldregistry.h>

Collaboration diagram for votca::xtp::EwaldRegistry:

Classes

struct  KeyLess

Public Member Functions

 EwaldRegistry ()=default
void Register (Index id, EwaldChargeState state, PolarSegment segment)
bool Has (Index id, EwaldChargeState state) const
const PolarSegment & Get (Index id, EwaldChargeState state) const
PolarSegment & Get (Index id, EwaldChargeState state)
void Erase (Index id, EwaldChargeState state)
std::vector< Index > AllIds () const
std::vector< EwaldChargeState > StatesFor (Index id) const
Index size () const
void WriteToCpt (CheckpointWriter &w) const
void ReadFromCpt (CheckpointReader &r)

Private Types

using Key = std::pair<Index, EwaldChargeState>

Private Attributes

std::map< Key, PolarSegment, KeyLess > store_

Detailed Description

Definition at line 65 of file ewaldregistry.h.

Member Typedef Documentation

◆ Key

Definition at line 103 of file ewaldregistry.h.

Constructor & Destructor Documentation

◆ EwaldRegistry()

votca::xtp::EwaldRegistry::EwaldRegistry ( )
default

Member Function Documentation

◆ AllIds()

std::vector< Index > votca::xtp::EwaldRegistry::AllIds ( ) const

Definition at line 126 of file ewaldregistry.cc.

◆ Erase()

void votca::xtp::EwaldRegistry::Erase ( Index id,
EwaldChargeState state )

Definition at line 122 of file ewaldregistry.cc.

◆ Get() [1/2]

PolarSegment & votca::xtp::EwaldRegistry::Get ( Index id,
EwaldChargeState state )

Definition at line 111 of file ewaldregistry.cc.

◆ Get() [2/2]

const PolarSegment & votca::xtp::EwaldRegistry::Get ( Index id,
EwaldChargeState state ) const

Definition at line 100 of file ewaldregistry.cc.

◆ Has()

bool votca::xtp::EwaldRegistry::Has ( Index id,
EwaldChargeState state ) const

Definition at line 96 of file ewaldregistry.cc.

◆ ReadFromCpt()

void votca::xtp::EwaldRegistry::ReadFromCpt ( CheckpointReader & r)

Definition at line 160 of file ewaldregistry.cc.

◆ Register()

void votca::xtp::EwaldRegistry::Register ( Index id,
EwaldChargeState state,
PolarSegment segment )

Definition at line 69 of file ewaldregistry.cc.

◆ size()

Index votca::xtp::EwaldRegistry::size ( ) const
inline

Definition at line 97 of file ewaldregistry.h.

◆ StatesFor()

std::vector< EwaldChargeState > votca::xtp::EwaldRegistry::StatesFor ( Index id) const

Definition at line 137 of file ewaldregistry.cc.

◆ WriteToCpt()

void votca::xtp::EwaldRegistry::WriteToCpt ( CheckpointWriter & w) const

Definition at line 147 of file ewaldregistry.cc.

Member Data Documentation

◆ store_

std::map<Key, PolarSegment, KeyLess> votca::xtp::EwaldRegistry::store_
private

Definition at line 114 of file ewaldregistry.h.


The documentation for this class was generated from the following files: