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

#include <checkpointtable.h>

Collaboration diagram for votca::xtp::CptTable:

Public Member Functions

 CptTable ()=default
 
 CptTable (const std::string &name, const std::size_t &rowSize, const std::size_t &nRows)
 
 CptTable (const std::string &name, const std::size_t &rowSize, const CptLoc &loc)
 
template<typename U >
void addCol (const std::string &name, const size_t &offset)
 
void initialize (const CptLoc &loc, bool compact)
 
void write (void *buffer, const std::size_t &startIdx, const std::size_t &endIdx)
 
void writeToRow (void *buffer, const std::size_t idx)
 
template<typename T >
void write (std::vector< T > &dataVec)
 
void read (void *buffer, const std::size_t &startIdx, const std::size_t &endIdx)
 
void readFromRow (void *buffer, const std::size_t &idx)
 
template<typename T >
void read (std::vector< T > &dataVec)
 
std::size_t numRows ()
 

Static Public Attributes

static const std::size_t MaxStringSize = 512
 

Private Attributes

std::string name_
 
CptLoc loc_
 
bool inited_ = false
 
H5::CompType rowStructure_
 
std::size_t nRows_
 
hsize_t dims_ [2]
 
H5::DataSpace dp_
 
H5::DataSet dataset_
 
H5::DSetCreatPropList props_
 

Detailed Description

Definition at line 48 of file checkpointtable.h.

Constructor & Destructor Documentation

◆ CptTable() [1/3]

votca::xtp::CptTable::CptTable ( )
default

◆ CptTable() [2/3]

votca::xtp::CptTable::CptTable ( const std::string & name,
const std::size_t & rowSize,
const std::size_t & nRows )
inline

Definition at line 51 of file checkpointtable.h.

◆ CptTable() [3/3]

votca::xtp::CptTable::CptTable ( const std::string & name,
const std::size_t & rowSize,
const CptLoc & loc )
inline

Definition at line 58 of file checkpointtable.h.

Member Function Documentation

◆ addCol()

template<typename U >
void votca::xtp::CptTable::addCol ( const std::string & name,
const size_t & offset )
inline

Definition at line 206 of file checkpointtable.h.

◆ initialize()

void votca::xtp::CptTable::initialize ( const CptLoc & loc,
bool compact )
inline

Definition at line 71 of file checkpointtable.h.

◆ numRows()

std::size_t votca::xtp::CptTable::numRows ( )
inline

Definition at line 189 of file checkpointtable.h.

◆ read() [1/2]

template<typename T >
void votca::xtp::CptTable::read ( std::vector< T > & dataVec)
inline

Definition at line 185 of file checkpointtable.h.

◆ read() [2/2]

void votca::xtp::CptTable::read ( void * buffer,
const std::size_t & startIdx,
const std::size_t & endIdx )
inline

Definition at line 146 of file checkpointtable.h.

◆ readFromRow()

void votca::xtp::CptTable::readFromRow ( void * buffer,
const std::size_t & idx )
inline

Definition at line 180 of file checkpointtable.h.

◆ write() [1/2]

template<typename T >
void votca::xtp::CptTable::write ( std::vector< T > & dataVec)
inline

Definition at line 142 of file checkpointtable.h.

◆ write() [2/2]

void votca::xtp::CptTable::write ( void * buffer,
const std::size_t & startIdx,
const std::size_t & endIdx )
inline

Definition at line 103 of file checkpointtable.h.

◆ writeToRow()

void votca::xtp::CptTable::writeToRow ( void * buffer,
const std::size_t idx )
inline

Definition at line 137 of file checkpointtable.h.

Member Data Documentation

◆ dataset_

H5::DataSet votca::xtp::CptTable::dataset_
private

Definition at line 201 of file checkpointtable.h.

◆ dims_

hsize_t votca::xtp::CptTable::dims_[2]
private

Definition at line 199 of file checkpointtable.h.

◆ dp_

H5::DataSpace votca::xtp::CptTable::dp_
private

Definition at line 200 of file checkpointtable.h.

◆ inited_

bool votca::xtp::CptTable::inited_ = false
private

Definition at line 196 of file checkpointtable.h.

◆ loc_

CptLoc votca::xtp::CptTable::loc_
private

Definition at line 195 of file checkpointtable.h.

◆ MaxStringSize

const std::size_t votca::xtp::CptTable::MaxStringSize = 512
static

Definition at line 191 of file checkpointtable.h.

◆ name_

std::string votca::xtp::CptTable::name_
private

Definition at line 194 of file checkpointtable.h.

◆ nRows_

std::size_t votca::xtp::CptTable::nRows_
private

Definition at line 198 of file checkpointtable.h.

◆ props_

H5::DSetCreatPropList votca::xtp::CptTable::props_
private

Definition at line 202 of file checkpointtable.h.

◆ rowStructure_

H5::CompType votca::xtp::CptTable::rowStructure_
private

Definition at line 197 of file checkpointtable.h.


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