votca 2024-dev
Loading...
Searching...
No Matches
Public Member Functions | Private Member Functions | Private Attributes | List of all members
votca::xtp::CheckpointReader Class Reference

#include <checkpointreader.h>

Collaboration diagram for votca::xtp::CheckpointReader:
Collaboration graph
[legend]

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 41 of file checkpointreader.h.

Constructor & Destructor Documentation

◆ CheckpointReader() [1/2]

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

Definition at line 43 of file checkpointreader.h.

◆ CheckpointReader() [2/2]

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

Definition at line 45 of file checkpointreader.h.

Member Function Documentation

◆ getChildGroupNames()

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

Definition at line 117 of file checkpointreader.h.

◆ getLoc()

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

Definition at line 135 of file checkpointreader.h.

◆ getNumDataSets()

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

Definition at line 133 of file checkpointreader.h.

◆ openChild()

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

Definition at line 104 of file checkpointreader.h.

◆ openTable()

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

Definition at line 138 of file checkpointreader.h.

◆ operator()() [1/4]

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

Definition at line 78 of file checkpointreader.h.

◆ operator()() [2/4]

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

Definition at line 92 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 49 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 66 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 173 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 285 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 243 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 218 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 273 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 154 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 164 of file checkpointreader.h.

Member Data Documentation

◆ loc_

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

Definition at line 152 of file checkpointreader.h.

◆ path_

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

Definition at line 153 of file checkpointreader.h.


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