NAMD
Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
eABF Class Referenceabstract

#include <eabf.h>

Inheritance diagram for eABF:
eABF1D eABF2D

Public Member Functions

 eABF ()
 
 eABF (const std::string &_outputfile, const int _outputfreq, const bool _restart, const std::string &_inputfile, const bool _outputgrad, const int _gradfreq, const double _temperature)
 
virtual ~eABF ()
 
virtual bool update (const std::string &)=0
 
bool mergefile (const std::string &inputname, const std::string &outputname)
 
bool setcolumn (std::vector< int > col)
 

Protected Member Functions

virtual bool initialize ()=0
 
virtual bool readfile ()=0
 
virtual bool writefile () const =0
 
virtual bool writehead (ofstream_namd &) const =0
 
virtual bool calpmf () const =0
 

Protected Attributes

std::vector< double > lowerboundary
 
std::vector< double > upperboundary
 
std::vector< double > width
 
std::string outputfile
 
int outputfreq
 
bool restart
 
std::string inputfile
 
bool outputgrad
 
int gradfreq
 
double temperature
 
std::vector< int > max
 
std::vector< int > min
 
std::vector< int > bins
 
std::vector< double > krestr
 
int line
 
std::vector< int > col
 

Detailed Description

Definition at line 22 of file eabf.h.

Constructor & Destructor Documentation

eABF::eABF ( )
inline

Definition at line 25 of file eabf.h.

25 {}
eABF::eABF ( const std::string &  _outputfile,
const int  _outputfreq,
const bool  _restart,
const std::string &  _inputfile,
const bool  _outputgrad,
const int  _gradfreq,
const double  _temperature 
)
inline

Definition at line 26 of file eabf.h.

29  :
30  outputfile(_outputfile), outputfreq(_outputfreq), restart(_restart), inputfile(_inputfile),
31  outputgrad(_outputgrad), gradfreq(_gradfreq), temperature(_temperature)
32  {}
std::string inputfile
Definition: eabf.h:76
double temperature
Definition: eabf.h:85
int gradfreq
Definition: eabf.h:82
bool outputgrad
Definition: eabf.h:79
std::string outputfile
Definition: eabf.h:67
int outputfreq
Definition: eabf.h:70
bool restart
Definition: eabf.h:73
virtual eABF::~eABF ( )
inlinevirtual

Definition at line 33 of file eabf.h.

33 {}

Member Function Documentation

virtual bool eABF::calpmf ( ) const
protectedpure virtual

Implemented in eABF1D.

Referenced by mergefile().

virtual bool eABF::initialize ( )
protectedpure virtual

Implemented in eABF1D.

bool eABF::mergefile ( const std::string &  inputname,
const std::string &  outputname 
)
inline

Definition at line 39 of file eabf.h.

References calpmf(), inputfile, outputfile, readfile(), and writefile().

Referenced by Tcl_mergefile().

40  {
41  this->inputfile = inputname;
42  this->readfile();
43  std::string temp = this->outputfile;
44  this->outputfile = outputname;
45  this->writefile();
46  this->calpmf();
47  this->outputfile = temp;
48  return true;
49  }
std::string inputfile
Definition: eabf.h:76
virtual bool calpmf() const =0
std::string outputfile
Definition: eabf.h:67
virtual bool readfile()=0
virtual bool writefile() const =0
virtual bool eABF::readfile ( )
protectedpure virtual

Implemented in eABF1D.

Referenced by mergefile().

bool eABF::setcolumn ( std::vector< int >  col)
inline

Definition at line 52 of file eabf.h.

References col.

Referenced by Tcl_setcol().

53  {
54  this->col = col;
55  return true;
56  }
std::vector< int > col
Definition: eabf.h:104
virtual bool eABF::update ( const std::string &  )
pure virtual

Implemented in eABF2D, and eABF1D.

Referenced by Tcl_updaterun().

virtual bool eABF::writefile ( ) const
protectedpure virtual

Implemented in eABF1D.

Referenced by mergefile().

virtual bool eABF::writehead ( ofstream_namd ) const
protectedpure virtual

Implemented in eABF1D.

Member Data Documentation

std::vector<int> eABF::bins
protected
std::vector<int> eABF::col
protected

Definition at line 104 of file eabf.h.

Referenced by setcolumn(), eABF1D::update(), and eABF2D::update().

int eABF::gradfreq
protected

Definition at line 82 of file eabf.h.

Referenced by eABF1D::update(), and eABF2D::update().

std::string eABF::inputfile
protected

Definition at line 76 of file eabf.h.

Referenced by mergefile(), and eABF1D::readfile().

std::vector<double> eABF::krestr
protected
int eABF::line
protected
std::vector<double> eABF::lowerboundary
protected
std::vector<int> eABF::max
protected

Definition at line 89 of file eabf.h.

Referenced by eABF1D::initialize().

std::vector<int> eABF::min
protected

Definition at line 90 of file eabf.h.

Referenced by eABF1D::calpmf(), eABF1D::initialize(), eABF1D::update(), and eABF2D::update().

std::string eABF::outputfile
protected

Definition at line 67 of file eabf.h.

Referenced by eABF1D::calpmf(), mergefile(), and eABF1D::writefile().

int eABF::outputfreq
protected

Definition at line 70 of file eabf.h.

Referenced by eABF1D::update(), and eABF2D::update().

bool eABF::outputgrad
protected

Definition at line 79 of file eabf.h.

Referenced by eABF1D::update(), and eABF2D::update().

bool eABF::restart
protected

Definition at line 73 of file eabf.h.

Referenced by eABF1D::eABF1D(), and eABF2D::eABF2D().

double eABF::temperature
protected

Definition at line 85 of file eabf.h.

Referenced by eABF1D::calpmf(), eABF1D::readfile(), and eABF1D::writefile().

std::vector<double> eABF::upperboundary
protected

Definition at line 62 of file eabf.h.

Referenced by eABF1D::calpmf(), eABF1D::eABF1D(), eABF2D::eABF2D(), and eABF1D::initialize().

std::vector<double> eABF::width
protected

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