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

#include <checkpointwriter.h>

Collaboration diagram for votca::xtp::CheckpointWriter:

Public Member Functions

 CheckpointWriter (const CptLoc &loc)
 
 CheckpointWriter (const CptLoc &loc, const std::string &path)
 
template<typename T >
std::enable_if<!std::is_fundamental< T >::value >::type operator() (const T &data, const std::string &name) const
 
template<typename T >
std::enable_if< std::is_fundamental< T >::value &&!std::is_same< T, bool >::value >::type operator() (const T &v, const std::string &name) const
 
void operator() (const bool &v, const std::string &name) const
 
void operator() (const std::string &v, const std::string &name) const
 
CheckpointWriter openChild (const std::string &childName) const
 
template<typename T >
CptTable openTable (const std::string &name, std::size_t nRows, bool compact=false)
 

Private Member Functions

template<typename T >
void WriteScalar (const CptLoc &loc, const T &value, const std::string &name) const
 
void WriteScalar (const CptLoc &loc, const std::string &value, const std::string &name) const
 
template<typename T >
void WriteData (const CptLoc &loc, const Eigen::MatrixBase< T > &matrix, const std::string &name) const
 
template<typename T >
std::enable_if< std::is_fundamental< T >::value >::type WriteData (const CptLoc &loc, const std::vector< T > v, const std::string &name) const
 
void WriteData (const CptLoc &loc, const std::vector< std::string > &v, const std::string &name) const
 
void WriteData (const CptLoc &loc, const std::vector< Eigen::Vector3d > &v, const std::string &name) const
 
void WriteData (const CptLoc &loc, const tools::EigenSystem &sys, const std::string &name) const
 
template<typename T1 , typename T2 >
void WriteData (const CptLoc &loc, const std::map< T1, std::vector< T2 > > map, const std::string &name) const
 

Private Attributes

const CptLoc loc_
 
const std::string path_
 

Detailed Description

Definition at line 50 of file checkpointwriter.h.

Constructor & Destructor Documentation

◆ CheckpointWriter() [1/2]

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

Definition at line 52 of file checkpointwriter.h.

◆ CheckpointWriter() [2/2]

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

Definition at line 54 of file checkpointwriter.h.

Member Function Documentation

◆ openChild()

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

Definition at line 115 of file checkpointwriter.h.

◆ openTable()

template<typename T >
CptTable votca::xtp::CheckpointWriter::openTable ( const std::string & name,
std::size_t nRows,
bool compact = false )
inline

Definition at line 134 of file checkpointwriter.h.

◆ operator()() [1/4]

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

Definition at line 90 of file checkpointwriter.h.

◆ operator()() [2/4]

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

Definition at line 103 of file checkpointwriter.h.

◆ operator()() [3/4]

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

Definition at line 60 of file checkpointwriter.h.

◆ operator()() [4/4]

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

Definition at line 78 of file checkpointwriter.h.

◆ WriteData() [1/6]

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

Definition at line 194 of file checkpointwriter.h.

◆ WriteData() [2/6]

template<typename T1 , typename T2 >
void votca::xtp::CheckpointWriter::WriteData ( const CptLoc & loc,
const std::map< T1, std::vector< T2 > > map,
const std::string & name ) const
inlineprivate

Definition at line 312 of file checkpointwriter.h.

◆ WriteData() [3/6]

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

Definition at line 277 of file checkpointwriter.h.

◆ WriteData() [4/6]

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

Definition at line 256 of file checkpointwriter.h.

◆ WriteData() [5/6]

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

Definition at line 240 of file checkpointwriter.h.

◆ WriteData() [6/6]

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

Definition at line 295 of file checkpointwriter.h.

◆ WriteScalar() [1/2]

void votca::xtp::CheckpointWriter::WriteScalar ( const CptLoc & loc,
const std::string & value,
const std::string & name ) const
inlineprivate

Definition at line 175 of file checkpointwriter.h.

◆ WriteScalar() [2/2]

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

Definition at line 160 of file checkpointwriter.h.

Member Data Documentation

◆ loc_

const CptLoc votca::xtp::CheckpointWriter::loc_
private

Definition at line 157 of file checkpointwriter.h.

◆ path_

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

Definition at line 158 of file checkpointwriter.h.


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