Psi4
Public Member Functions | Static Public Member Functions | Private Attributes | List of all members
psi::IWL Class Reference

#include <iwl.hpp>

Public Member Functions

 IWL ()
 
 IWL (PSIO *psio, int itap, double cutoff, int oldfile, int readflag)
 
 ~IWL ()
 
int & itap ()
 
psio_addressbuffer_position ()
 
int & ints_per_buffer ()
 
int & buffer_size ()
 
double & cutoff ()
 
int & last_buffer ()
 
int & buffer_count ()
 
int & index ()
 
Labellabels ()
 
Valuevalues ()
 
bool & keep ()
 
void init (PSIO *psio, int itap, double cutoff, int oldfile, int readflag)
 
void set_keep_flag (bool k)
 
void close ()
 
void fetch ()
 
void put ()
 
int read (int target_pq, double *ints, int *ioff_lt, int *ioff_rt, int mp2, int printflg, std::string OutFileRMR)
 
void write (int p, int q, int pq, int pqsym, double *arr, int rmax, int *ioff, int *orbsym, int *firsti, int *lasti, int printflag, std::string OutFileRMR)
 
void write_matrix (int ptr, int qtr, double **mat, int rfirst, int rlast, int sfirst, int slast, int *reorder, int reorder_offset, int printflag, int *ioff, std::string OutFileRMR)
 
void write_value (int p, int q, int r, int s, double value, int printflag, std::string OutFileRMR, int dirac)
 
void flush (int lastbuf)
 
void to_end ()
 

Static Public Member Functions

static void read_one (PSIO *psio, int itap, const char *label, double *ints, int ntri, int erase, int printflg, std::string OutFileRMR)
 
static void write_one (PSIO *psio, int itap, const char *label, int ntri, double *onel_ints)
 

Private Attributes

int itap_
 
psio_address bufpos_
 
int ints_per_buf_
 
int bufszc_
 
double cutoff_
 
int lastbuf_
 
int inbuf_
 
int idx_
 
Labellabels_
 
Valuevalues_
 
PSIOpsio_
 
bool keep_
 

Constructor & Destructor Documentation

psi::IWL::IWL ( )

set up buffer info

psi::IWL::IWL ( PSIO psio,
int  itap,
double  cutoff,
int  oldfile,
int  readflag 
)
psi::IWL::~IWL ( )

Member Function Documentation

int& psi::IWL::buffer_count ( )
inline
psio_address& psi::IWL::buffer_position ( )
inline
int& psi::IWL::buffer_size ( )
inline
void psi::IWL::close ( )
double& psi::IWL::cutoff ( )
inline
void psi::IWL::fetch ( )
void psi::IWL::flush ( int  lastbuf)
int& psi::IWL::index ( )
inline
void psi::IWL::init ( PSIO psio,
int  itap,
double  cutoff,
int  oldfile,
int  readflag 
)

set up buffer info

make room in the buffer

open the output file

Note that we assume that if oldfile isn't set, we O_CREAT the file

go ahead and read a buffer

int& psi::IWL::ints_per_buffer ( )
inline
int& psi::IWL::itap ( )
inline
bool& psi::IWL::keep ( )
inline
Label* psi::IWL::labels ( )
inline
int& psi::IWL::last_buffer ( )
inline
void psi::IWL::put ( )
int psi::IWL::read ( int  target_pq,
double *  ints,
int *  ioff_lt,
int *  ioff_rt,
int  mp2,
int  printflg,
std::string  OutFileRMR 
)
void psi::IWL::read_one ( PSIO psio,
int  itap,
const char *  label,
double *  ints,
int  ntri,
int  erase,
int  printflg,
std::string  OutFileRMR 
)
static
void psi::IWL::set_keep_flag ( bool  k)
inline
void psi::IWL::to_end ( )
Value* psi::IWL::values ( )
inline
void psi::IWL::write_value ( int  p,
int  q,
int  r,
int  s,
double  value,
int  printflag,
std::string  OutFileRMR,
int  dirac 
)

Member Data Documentation

psio_address psi::IWL::bufpos_
private
int psi::IWL::bufszc_
private
double psi::IWL::cutoff_
private
int psi::IWL::idx_
private
int psi::IWL::inbuf_
private
int psi::IWL::ints_per_buf_
private
int psi::IWL::itap_
private
bool psi::IWL::keep_
private

Flag indicating whether to keep the IWL file or not

Label* psi::IWL::labels_
private
int psi::IWL::lastbuf_
private
PSIO* psi::IWL::psio_
private

Instance of libpsio to use

Value* psi::IWL::values_
private

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