![]() |
QMCPACK
|
class to handle xmlXPathObject More...
Collaboration diagram for OhmmsXPathObject:Public Member Functions | |
| OhmmsXPathObject () | |
| OhmmsXPathObject (const char *expression, xmlXPathContextPtr context) | |
| constructor More... | |
| OhmmsXPathObject (const char *expression, xmlNodePtr cur) | |
| constructor More... | |
| ~OhmmsXPathObject () | |
| void | put (const char *expression, xmlXPathContextPtr context) |
| evaluate the expression and create the object More... | |
| bool | empty () |
| int | size () |
| xmlNodePtr | operator[] (int i) |
Public Attributes | |
| int | NumObjects |
| xmlXPathObjectPtr | result |
| xmlXPathContextPtr | m_context |
class to handle xmlXPathObject
Definition at line 26 of file Libxml2Doc.h.
| OhmmsXPathObject | ( | ) |
Definition at line 24 of file Libxml2Doc.cpp.
| OhmmsXPathObject | ( | const char * | expression, |
| xmlXPathContextPtr | context | ||
| ) |
constructor
| expression | xpath expression |
| context | xmlXPathContext with which expression is evaluated |
Definition at line 26 of file Libxml2Doc.cpp.
References put().
| OhmmsXPathObject | ( | const char * | expression, |
| xmlNodePtr | cur | ||
| ) |
constructor
| expression | xpath expression |
| cur | xmlNodePtr |
Create m_context
Definition at line 32 of file Libxml2Doc.cpp.
References m_context, and put().
| ~OhmmsXPathObject | ( | ) |
|
inline |
Definition at line 53 of file Libxml2Doc.h.
References NumObjects.
Referenced by TEST_CASE(), QMCCostFunctionBase::updateXmlNodes(), and QMCMain::validateXML().
|
inline |
| void put | ( | const char * | expression, |
| xmlXPathContextPtr | context | ||
| ) |
evaluate the expression and create the object
| expression | xpath expression |
| context | xmlXPathContext with which expression is evaluated |
Definition at line 64 of file Libxml2Doc.cpp.
References NumObjects, and result.
Referenced by OhmmsXPathObject().
|
inline |
Definition at line 55 of file Libxml2Doc.h.
References NumObjects.
Referenced by QMCMain::setMCWalkers(), TEST_CASE(), and QMCCostFunctionBase::updateXmlNodes().
| xmlXPathContextPtr m_context |
Definition at line 71 of file Libxml2Doc.h.
Referenced by OhmmsXPathObject(), and ~OhmmsXPathObject().
| int NumObjects |
Definition at line 69 of file Libxml2Doc.h.
Referenced by empty(), operator[](), put(), and size().
| xmlXPathObjectPtr result |
Definition at line 70 of file Libxml2Doc.h.
Referenced by operator[](), put(), and ~OhmmsXPathObject().