votca 2024.2-dev
Loading...
Searching...
No Matches
votca::xtp::CheckpointReader Class Reference

#include <checkpointreader.h>

Collaboration diagram for votca::xtp::CheckpointReader:

Public Member Functions

 CheckpointReader (const CptLoc &loc)
 
 CheckpointReader (const CptLoc &loc, const std::string path)
 
template<typename T >
std::enable_if<!std::is_fundamental< T >::value >::type operator() (T &var, const std::string &name) const
 
template<typename T >
std::enable_if< std::is_fundamental< T >::value &&!std::is_same< T, bool >::value >::type operator() (T &var, const std::string &name) const
 
void operator() (bool &v, const std::string &name) const
 
void operator() (std::string &var, const std::string &name) const
 
CheckpointReader openChild (const std::string &childName) const
 
std::vector< std::string > getChildGroupNames () const
 
Index getNumDataSets () const
 
CptLoc getLoc ()
 
template<typename T >
CptTable openTable (const std::string &name)
 

Private Member Functions

void ReadScalar (const CptLoc &loc, std::string &var, const std::string &name) const
 
template<typename T >
void ReadScalar (const CptLoc &loc, T &value, const std::string &name) const
 
template<typename T >
void ReadData (const CptLoc &loc, Eigen::MatrixBase< T > &matrix, const std::string &name) const
 
template<typename T >
std::enable_if< std::is_fundamental< T >::value >::type ReadData (const CptLoc &loc, std::vector< T > &v, const std::string &name) const
 
void ReadData (const CptLoc &loc, std::vector< std::string > &v, const std::string &name) const
 
void ReadData (const CptLoc &loc, tools::EigenSystem &sys, const std::string &name) const
 
void ReadData (const CptLoc &loc, std::vector< Eigen::Vector3d > &v, const std::string &name) const
 

Private Attributes

const CptLoc loc_
 
const std::string path_
 

Detailed Description

Definition at line 46 of file checkpointreader.h.

Constructor & Destructor Documentation

◆ CheckpointReader() [1/2]

votca::xtp::CheckpointReader::CheckpointReader ( const CptLoc & loc)
inline

Definition at line 48 of file checkpointreader.h.

◆ CheckpointReader() [2/2]

votca::xtp::CheckpointReader::CheckpointReader ( const CptLoc & loc,
const std::string path )
inline

Definition at line 50 of file checkpointreader.h.

Member Function Documentation

◆ getChildGroupNames()

std::vector< std::string > votca::xtp::CheckpointReader::getChildGroupNames ( ) const
inline

Definition at line 122 of file checkpointreader.h.

◆ getLoc()

CptLoc votca::xtp::CheckpointReader::getLoc ( )
inline

Definition at line 140 of file checkpointreader.h.

◆ getNumDataSets()

Index votca::xtp::CheckpointReader::getNumDataSets ( ) const
inline

Definition at line 138 of file checkpointreader.h.

◆ openChild()

CheckpointReader votca::xtp::CheckpointReader::openChild ( const std::string & childName) const
inline

Definition at line 109 of file checkpointreader.h.

◆ openTable()

template<typename T >
CptTable votca::xtp::CheckpointReader::openTable ( const std::string & name)
inline

Definition at line 143 of file checkpointreader.h.

◆ operator()() [1/4]

void votca::xtp::CheckpointReader::operator() ( bool & v,
const std::string & name ) const
inline

Definition at line 83 of file checkpointreader.h.

◆ operator()() [2/4]

void votca::xtp::CheckpointReader::operator() ( std::string & var,
const std::string & name ) const
inline

Definition at line 97 of file checkpointreader.h.

◆ operator()() [3/4]

template<typename T >
std::enable_if<!std::is_fundamental< T >::value >::type votca::xtp::CheckpointReader::operator() ( T & var,
const std::string & name ) const
inline

Definition at line 54 of file checkpointreader.h.

◆ operator()() [4/4]

template<typename T >
std::enable_if< std::is_fundamental< T >::value &&!std::is_same< T, bool >::value >::type votca::xtp::CheckpointReader::operator() ( T & var,
const std::string & name ) const
inline

Definition at line 71 of file checkpointreader.h.

◆ ReadData() [1/5]

template<typename T >
void votca::xtp::CheckpointReader::ReadData ( const CptLoc & loc,
Eigen::MatrixBase< T > & matrix,
const std::string & name ) const
inlineprivate

Definition at line 178 of file checkpointreader.h.

◆ ReadData() [2/5]

void votca::xtp::CheckpointReader::ReadData ( const CptLoc & loc,
std::vector< Eigen::Vector3d > & v,
const std::string & name ) const
inlineprivate

Definition at line 290 of file checkpointreader.h.

◆ ReadData() [3/5]

void votca::xtp::CheckpointReader::ReadData ( const CptLoc & loc,
std::vector< std::string > & v,
const std::string & name ) const
inlineprivate

Definition at line 248 of file checkpointreader.h.

◆ ReadData() [4/5]

template<typename T >
std::enable_if< std::is_fundamental< T >::value >::type votca::xtp::CheckpointReader::ReadData ( const CptLoc & loc,
std::vector< T > & v,
const std::string & name ) const
inlineprivate

Definition at line 223 of file checkpointreader.h.

◆ ReadData() [5/5]

void votca::xtp::CheckpointReader::ReadData ( const CptLoc & loc,
tools::EigenSystem & sys,
const std::string & name ) const
inlineprivate

Definition at line 278 of file checkpointreader.h.

◆ ReadScalar() [1/2]

void votca::xtp::CheckpointReader::ReadScalar ( const CptLoc & loc,
std::string & var,
const std::string & name ) const
inlineprivate

Definition at line 159 of file checkpointreader.h.

◆ ReadScalar() [2/2]

template<typename T >
void votca::xtp::CheckpointReader::ReadScalar ( const CptLoc & loc,
T & value,
const std::string & name ) const
inlineprivate

Definition at line 169 of file checkpointreader.h.

Member Data Documentation

◆ loc_

const CptLoc votca::xtp::CheckpointReader::loc_
private

Definition at line 157 of file checkpointreader.h.

◆ path_

const std::string votca::xtp::CheckpointReader::path_
private

Definition at line 158 of file checkpointreader.h.


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