QMCPACK
RMCLocalEnergyInput Class Reference
+ Collaboration diagram for RMCLocalEnergyInput:

Classes

class  RMCLocalEnergyInputSection
 

Public Types

using Consumer = RMCLocalEnergyEstimator
 

Public Member Functions

 RMCLocalEnergyInput ()=default
 
 RMCLocalEnergyInput (xmlNodePtr cur)
 
int get_n_obs () const
 
const std::string & get_name () const
 
const std::string & get_type () const
 

Private Attributes

std::string name_
 
std::string type_ = "RMCLocalEnergy"
 
RMCLocalEnergyInputSection input_section_
 
int n_obs_ = 1
 

Detailed Description

Definition at line 111 of file ScalarEstimatorInputs.h.

Member Typedef Documentation

◆ Consumer

Definition at line 127 of file ScalarEstimatorInputs.h.

Constructor & Destructor Documentation

◆ RMCLocalEnergyInput() [1/2]

RMCLocalEnergyInput ( )
default

◆ RMCLocalEnergyInput() [2/2]

RMCLocalEnergyInput ( xmlNodePtr  cur)

Definition at line 55 of file ScalarEstimatorInputs.cpp.

References RMCLocalEnergyInput::input_section_, LAMBDA_setIfInInput, RMCLocalEnergyInput::n_obs_, RMCLocalEnergyInput::name_, qmcplusplus::readNameTypeLikeLegacy(), InputSection::readXML(), and RMCLocalEnergyInput::type_.

56 {
59  auto setIfInInput = LAMBDA_setIfInInput;
60  setIfInInput(n_obs_, "nobs");
61 }
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...
RMCLocalEnergyInputSection input_section_
#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_obs()

int get_n_obs ( ) const
inline

Definition at line 133 of file ScalarEstimatorInputs.h.

References RMCLocalEnergyInput::n_obs_.

◆ get_name()

const std::string& get_name ( ) const
inline

Definition at line 134 of file ScalarEstimatorInputs.h.

References RMCLocalEnergyInput::name_.

134 { return name_; }

◆ get_type()

const std::string& get_type ( ) const
inline

Member Data Documentation

◆ input_section_

RMCLocalEnergyInputSection input_section_
private

Definition at line 140 of file ScalarEstimatorInputs.h.

Referenced by RMCLocalEnergyInput::RMCLocalEnergyInput().

◆ n_obs_

int n_obs_ = 1
private

◆ name_

std::string name_
private

◆ type_

std::string type_ = "RMCLocalEnergy"
private

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