votca 2024.2-dev
Loading...
Searching...
No Matches
votca::xtp::MMRegion< T > Class Template Referenceabstract

#include <mmregion.h>

Inheritance diagram for votca::xtp::MMRegion< T >:
Collaboration diagram for votca::xtp::MMRegion< T >:

Public Types

using SegmentType = T
 
using iterator = typename std::vector<T>::iterator
 

Public Member Functions

 MMRegion (Index id, Logger &log)
 
void WriteToCpt (CheckpointWriter &w) const override
 
void ReadFromCpt (CheckpointReader &r) override
 
Index size () const override
 
void Initialize (const tools::Property &prop) override=0
 
bool Converged () const override=0
 
void Evaluate (std::vector< std::unique_ptr< Region > > &regions) override=0
 
std::string identify () const override=0
 
const T & operator[] (Index index) const
 
T & operator[] (Index index)
 
std::vector< T >::iterator begin ()
 
std::vector< T >::iterator end ()
 
std::vector< T >::const_iterator begin () const
 
std::vector< T >::const_iterator end () const
 
double Etotal () const override=0
 
void Reset () override=0
 
double charge () const override
 
void WritePDB (csg::PDBWriter &writer) const override
 
void push_back (const T &seg)
 
- Public Member Functions inherited from votca::xtp::Region
 Region (Index id, Logger &log)
 
virtual ~Region ()=default
 
bool Successful () const
 
std::string ErrorMsg () const
 
void AddResults (tools::Property &prop) const
 
Index getId () const
 

Protected Member Functions

void AppendResult (tools::Property &prop) const override=0
 
double InteractwithQMRegion (const QMRegion &region) override=0
 
double InteractwithPolarRegion (const PolarRegion &region) override=0
 
double InteractwithStaticRegion (const StaticRegion &region) override=0
 
- Protected Member Functions inherited from votca::xtp::Region
std::vector< double > ApplyInfluenceOfOtherRegions (std::vector< std::unique_ptr< Region > > &regions)
 

Protected Attributes

std::vector< T > segments_
 
- Protected Attributes inherited from votca::xtp::Region
bool info_ = true
 
std::string errormsg_ = ""
 
Index id_ = -1
 
Loggerlog_
 

Detailed Description

template<class T>
class votca::xtp::MMRegion< T >

Definition at line 36 of file mmregion.h.

Member Typedef Documentation

◆ iterator

template<class T >
using votca::xtp::MMRegion< T >::iterator = typename std::vector<T>::iterator

Definition at line 47 of file mmregion.h.

◆ SegmentType

template<class T >
using votca::xtp::MMRegion< T >::SegmentType = T

Definition at line 41 of file mmregion.h.

Constructor & Destructor Documentation

◆ MMRegion()

template<class T >
votca::xtp::MMRegion< T >::MMRegion ( Index id,
Logger & log )
inline

Definition at line 38 of file mmregion.h.

Member Function Documentation

◆ AppendResult()

template<class T >
void votca::xtp::MMRegion< T >::AppendResult ( tools::Property & prop) const
overrideprotectedpure virtual

◆ begin() [1/2]

template<class T >
std::vector< T >::iterator votca::xtp::MMRegion< T >::begin ( )
inline

Definition at line 60 of file mmregion.h.

◆ begin() [2/2]

template<class T >
std::vector< T >::const_iterator votca::xtp::MMRegion< T >::begin ( ) const
inline

Definition at line 63 of file mmregion.h.

◆ charge()

template<class T >
double votca::xtp::MMRegion< T >::charge ( ) const
overridevirtual

Implements votca::xtp::Region.

Definition at line 27 of file mmregion.cc.

◆ Converged()

template<class T >
bool votca::xtp::MMRegion< T >::Converged ( ) const
overridepure virtual

◆ end() [1/2]

template<class T >
std::vector< T >::iterator votca::xtp::MMRegion< T >::end ( )
inline

Definition at line 61 of file mmregion.h.

◆ end() [2/2]

template<class T >
std::vector< T >::const_iterator votca::xtp::MMRegion< T >::end ( ) const
inline

Definition at line 66 of file mmregion.h.

◆ Etotal()

template<class T >
double votca::xtp::MMRegion< T >::Etotal ( ) const
overridepure virtual

◆ Evaluate()

template<class T >
void votca::xtp::MMRegion< T >::Evaluate ( std::vector< std::unique_ptr< Region > > & regions)
overridepure virtual

◆ identify()

template<class T >
std::string votca::xtp::MMRegion< T >::identify ( ) const
overridepure virtual

◆ Initialize()

template<class T >
void votca::xtp::MMRegion< T >::Initialize ( const tools::Property & prop)
overridepure virtual

◆ InteractwithPolarRegion()

template<class T >
double votca::xtp::MMRegion< T >::InteractwithPolarRegion ( const PolarRegion & region)
overrideprotectedpure virtual

◆ InteractwithQMRegion()

template<class T >
double votca::xtp::MMRegion< T >::InteractwithQMRegion ( const QMRegion & region)
overrideprotectedpure virtual

◆ InteractwithStaticRegion()

template<class T >
double votca::xtp::MMRegion< T >::InteractwithStaticRegion ( const StaticRegion & region)
overrideprotectedpure virtual

◆ operator[]() [1/2]

template<class T >
T & votca::xtp::MMRegion< T >::operator[] ( Index index)
inline

Definition at line 58 of file mmregion.h.

◆ operator[]() [2/2]

template<class T >
const T & votca::xtp::MMRegion< T >::operator[] ( Index index) const
inline

Definition at line 57 of file mmregion.h.

◆ push_back()

template<class T >
void votca::xtp::MMRegion< T >::push_back ( const T & seg)
inline

Definition at line 78 of file mmregion.h.

◆ ReadFromCpt()

template<class T >
void votca::xtp::MMRegion< T >::ReadFromCpt ( CheckpointReader & r)
overridevirtual

Implements votca::xtp::Region.

Reimplemented in votca::xtp::PolarRegion.

Definition at line 58 of file mmregion.cc.

◆ Reset()

template<class T >
void votca::xtp::MMRegion< T >::Reset ( )
overridepure virtual

◆ size()

template<class T >
Index votca::xtp::MMRegion< T >::size ( ) const
inlineoverridevirtual

Implements votca::xtp::Region.

Definition at line 45 of file mmregion.h.

◆ WritePDB()

template<class T >
void votca::xtp::MMRegion< T >::WritePDB ( csg::PDBWriter & writer) const
overridevirtual

Implements votca::xtp::Region.

Definition at line 38 of file mmregion.cc.

◆ WriteToCpt()

template<class T >
void votca::xtp::MMRegion< T >::WriteToCpt ( CheckpointWriter & w) const
overridevirtual

Implements votca::xtp::Region.

Reimplemented in votca::xtp::PolarRegion.

Definition at line 45 of file mmregion.cc.

Member Data Documentation

◆ segments_

template<class T >
std::vector<T> votca::xtp::MMRegion< T >::segments_
protected

Definition at line 86 of file mmregion.h.


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