ABACUS develop
Atomic-orbital Based Ab-initio Computation at UStc
Loading...
Searching...
No Matches
Public Member Functions | Private Attributes | List of all members
hamilt::Read_HContainer< T > Class Template Reference

A class to read the HContainer. More...

#include <read_hcontainer.h>

Collaboration diagram for hamilt::Read_HContainer< T >:

Public Member Functions

 Read_HContainer (hamilt::HContainer< T > *hcontainer, const std::string &filename, const int nlocal, const UnitCell *ucell)
 Constructor of Read_HContainer.
 
void read ()
 
void read (int rx_in, int ry_in, int rz_in)
 
void read_single_R (int rx, int ry, int rz)
 

Private Attributes

hamilt::HContainer< T > * _hcontainer
 
std::string _filename
 
int _nlocal
 
const UnitCell_ucell
 

Detailed Description

template<typename T>
class hamilt::Read_HContainer< T >

A class to read the HContainer.

Constructor & Destructor Documentation

◆ Read_HContainer()

template<typename T >
hamilt::Read_HContainer< T >::Read_HContainer ( hamilt::HContainer< T > *  hcontainer,
const std::string &  filename,
const int  nlocal,
const UnitCell ucell 
)

Constructor of Read_HContainer.

Attention
ifs should be open outside of this interface

Member Function Documentation

◆ read() [1/2]

template<typename T >
void hamilt::Read_HContainer< T >::read ( )
Here is the call graph for this function:
Here is the caller graph for this function:

◆ read() [2/2]

template<typename T >
void hamilt::Read_HContainer< T >::read ( int  rx_in,
int  ry_in,
int  rz_in 
)

read the matrix of a single R vector to the output stream rx_in, ry_in, rz_in: the R vector from the input

◆ read_single_R()

template<typename T >
void hamilt::Read_HContainer< T >::read_single_R ( int  rx,
int  ry,
int  rz 
)

read the matrix of a single R vector to the output stream rx, ry, rz: the R vector from the HContainer

Member Data Documentation

◆ _filename

template<typename T >
std::string hamilt::Read_HContainer< T >::_filename
private

◆ _hcontainer

template<typename T >
hamilt::HContainer<T>* hamilt::Read_HContainer< T >::_hcontainer
private

◆ _nlocal

template<typename T >
int hamilt::Read_HContainer< T >::_nlocal
private

◆ _ucell

template<typename T >
const UnitCell* hamilt::Read_HContainer< T >::_ucell
private

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