QMCPACK
CSLocalEnergyInput Class Reference
+ Collaboration diagram for CSLocalEnergyInput:

Classes

class  CSLocalEnergyInputSection
 

Public Types

using Consumer = CSEnergyEstimator
 

Public Member Functions

 CSLocalEnergyInput ()=default
 
 CSLocalEnergyInput (xmlNodePtr cur)
 
int get_n_psi () const
 
const std::string & get_name () const
 
const std::string & get_type () const
 

Private Attributes

std::string name_
 
std::string type_ = "CSLocalEnergy"
 
CSLocalEnergyInputSection input_section_
 
int n_psi_ = 1
 

Detailed Description

Definition at line 78 of file ScalarEstimatorInputs.h.

Member Typedef Documentation

◆ Consumer

Definition at line 93 of file ScalarEstimatorInputs.h.

Constructor & Destructor Documentation

◆ CSLocalEnergyInput() [1/2]

CSLocalEnergyInput ( )
default

◆ CSLocalEnergyInput() [2/2]

CSLocalEnergyInput ( xmlNodePtr  cur)

Definition at line 47 of file ScalarEstimatorInputs.cpp.

References CSLocalEnergyInput::input_section_, LAMBDA_setIfInInput, CSLocalEnergyInput::n_psi_, CSLocalEnergyInput::name_, qmcplusplus::readNameTypeLikeLegacy(), InputSection::readXML(), and CSLocalEnergyInput::type_.

48 {
51  auto setIfInInput = LAMBDA_setIfInInput;
52  setIfInInput(n_psi_, "npsi");
53 }
CSLocalEnergyInputSection input_section_
void readNameTypeLikeLegacy(InputSection &input_section_, std::string &name, std::string &type)
make input class state consistent with legacy ignoring the distinction between the name and type of e...
#define LAMBDA_setIfInInput
If tag is present in input_secution set its variable.
void readXML(xmlNodePtr cur)
Read variable values (initialize) from XML input, call checkValid.

Member Function Documentation

◆ get_n_psi()

int get_n_psi ( ) const
inline

◆ get_name()

const std::string& get_name ( ) const
inline

Definition at line 99 of file ScalarEstimatorInputs.h.

References CSLocalEnergyInput::name_.

99 { return name_; }

◆ get_type()

const std::string& get_type ( ) const
inline

Member Data Documentation

◆ input_section_

CSLocalEnergyInputSection input_section_
private

Definition at line 105 of file ScalarEstimatorInputs.h.

Referenced by CSLocalEnergyInput::CSLocalEnergyInput().

◆ n_psi_

int n_psi_ = 1
private

◆ name_

std::string name_
private

◆ type_

std::string type_ = "CSLocalEnergy"
private

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