MPQC  3.0.0-alpha
mpqc.Core.File

Namespaces

 mpqc::detail::File
 implementation details
 

Classes

struct  mpqc::File::Dataspace< T_ >
 A subset of File::Dataset. More...
 
struct  mpqc::File::Dataset< T >
 Array-like collection of data. More...
 
struct  mpqc::File::Group
 Directory-like container that holds datasets and other groups. More...
 
struct  mpqc::File
 Top-level file object that holds groups. More...
 

Functions

template<typename T , class A >
void mpqc::operator>> (File::Dataset< T > ds, A &a)
 Read from dataset into a generic container A. More...
 
template<typename T , class A >
void mpqc::operator<< (File::Dataset< T > ds, const A &a)
 Write to dataset from a generic container A. More...
 
template<typename T , class A >
void mpqc::operator>> (File::Dataspace< T > ds, A &a)
 Read from dataspace into a generic container A. More...
 
template<typename T , class A >
void mpqc::operator<< (File::Dataspace< T > ds, const A &a)
 Write to dataspace from a generic container A. More...
 
Group mpqc::File::group (const std::string &name="/")
 Creates or opens a file group. More...
 

Detailed Description

Implementation of hierarchical file objects based on HDF5.

To work with files:

Function Documentation

◆ group()

File::Group mpqc::File::group ( const std::string &  name = "/")
inline

Creates or opens a file group.

Parameters
[in]namegroup name. Default argument implies default group.
Warning
NOT threadsafe

References mpqc::File::Group::create().

◆ operator<<() [1/2]

template<typename T , class A >
void mpqc::operator<< ( File::Dataset< T >  ds,
const A &  a 
)

Write to dataset from a generic container A.

Template Parameters
AContainer with member const T* A::data()
Parameters
dsDataset to write to
aContainer to read from.
Warning
The pointer returned by A::data() must be contigous

References mpqc::File::Dataset< T >::write().

◆ operator<<() [2/2]

template<typename T , class A >
void mpqc::operator<< ( File::Dataspace< T >  ds,
const A &  a 
)

Write to dataspace from a generic container A.

Template Parameters
AContainer with member const T* A::data()
Parameters
dsDataspace to write to
aContainer to read from.
Warning
The pointer returned by A::data() must be contigous

◆ operator>>() [1/2]

template<typename T , class A >
void mpqc::operator>> ( File::Dataset< T >  ds,
A &  a 
)

Read from dataset into a generic container A.

Template Parameters
AContainer with member T* A::data()
Parameters
dsDataset to read from
aContainer to read to.
Warning
The pointer returned by A::data() must be contigous

References mpqc::File::Dataset< T >::read().

◆ operator>>() [2/2]

template<typename T , class A >
void mpqc::operator>> ( File::Dataspace< T >  ds,
A &  a 
)

Read from dataspace into a generic container A.

Template Parameters
AContainer with member T* A::data()
Parameters
dsDataspace to read from
aContainer to read to.
Warning
The pointer returned by A::data() must be contigous
mpqc::Vector
vector< double > Vector
Convience double vector type.
Definition: matrix.hpp:172

Generated at Sun Jan 26 2020 23:24:02 for MPQC 3.0.0-alpha using the documentation package Doxygen 1.8.16.