QMCPACK
DelegatingInput Class Reference

Generic input section delegating some inputs to other input classes. More...

+ Collaboration diagram for DelegatingInput:

Classes

class  DelegatingInputSection
 

Public Member Functions

 DelegatingInput (xmlNodePtr cur)
 
bool has (const std::string &name) const
 
template<typename T >
get (const std::string &name) const
 

Private Attributes

std::string name_ = "DelegatingInput"
 
DelegatingInputSection dins_
 

Detailed Description

Generic input section delegating some inputs to other input classes.

an example would be EnergyDensityInput

Definition at line 561 of file test_InputSection.cpp.

Constructor & Destructor Documentation

◆ DelegatingInput()

DelegatingInput ( xmlNodePtr  cur)
inline

Definition at line 580 of file test_InputSection.cpp.

580 { dins_.readXML(cur); }
void readXML(xmlNodePtr cur)
Read variable values (initialize) from XML input, call checkValid.
DelegatingInputSection dins_

Member Function Documentation

◆ get()

T get ( const std::string &  name) const
inline

Definition at line 585 of file test_InputSection.cpp.

Referenced by qmcplusplus::TEST_CASE().

586  {
587  return dins_.get<T>(name);
588  }
DelegatingInputSection dins_
T get(const std::string &name) const
Definition: InputSection.h:92

◆ has()

bool has ( const std::string &  name) const
inline

Definition at line 583 of file test_InputSection.cpp.

Referenced by qmcplusplus::TEST_CASE().

583 { return dins_.has(name); }
DelegatingInputSection dins_
bool has(const std::string &name) const
Definition: InputSection.h:87

Member Data Documentation

◆ dins_

DelegatingInputSection dins_
private

Definition at line 592 of file test_InputSection.cpp.

◆ name_

std::string name_ = "DelegatingInput"
private

Definition at line 591 of file test_InputSection.cpp.


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