|
Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
|
#include <GUPI.hpp>
Public Types | |
| typedef std::vector< Entry * > | Entries |
| typedef Entries::iterator | iterator |
| typedef Entries::const_iterator | const_iterator |
Public Member Functions | |
| Suite (std::string const &a_keyName) | |
| Suite (std::string const &a_moniker, std::string const &a_keyName) | |
| Suite (HAPI::Node const &a_node, std::string const &a_keyName, GUPI_parseSuite a_parseSuite) | |
| ~Suite () | |
| std::string const & | keyName () const |
| std::size_t | size () const |
| std::size_t | operator[] (std::string const &a_label) const |
| iterator | begin () |
| const_iterator | begin () const |
| iterator | end () |
| const_iterator | end () const |
| template<typename T> | |
| T * | get (std::size_t a_Index) |
| template<typename T> | |
| T const * | get (std::size_t a_Index) const |
| template<typename T> | |
| T * | get (std::string const &a_label) |
| template<typename T> | |
| T const * | get (std::string const &a_label) const |
| void | parse (HAPI::Node const &a_node, GUPI_parseSuite a_parseSuite) |
| void | add (Entry *a_entry) |
| iterator | find (std::string const &a_label) |
| const_iterator | find (std::string const &a_label) const |
| bool | has (std::string const &a_label) const |
| Ancestry * | findInAncestry3 (std::string const &a_item) |
| Ancestry const * | findInAncestry3 (std::string const &a_item) const |
| std::vector< iterator > | findAllOfMoniker (std::string const &a_moniker) |
| std::vector< const_iterator > | findAllOfMoniker (std::string const &a_moniker) const |
| void | toXMLList (WriteInfo &a_writeInfo, std::string const &a_indent="") const |
| void | printEntryLabels (std::string const &a_header) const |
| Public Member Functions inherited from GUPI::Ancestry | |
| Ancestry (std::string const &a_moniker, std::string const &a_attribute="") | |
| virtual | ~Ancestry () |
| Ancestry & | operator= (Ancestry const &a_ancestry) |
| std::string const & | moniker () const |
| void | setMoniker (std::string const &a_moniker) |
| Ancestry * | ancestor () |
| Ancestry const * | ancestor () const |
| void | setAncestor (Ancestry *a_ancestor) |
| std::string | attribute () const |
| Ancestry * | root () |
| Ancestry const * | root () const |
| bool | isChild (Ancestry *a_instance) |
| bool | isParent (Ancestry *a_parent) |
| bool | isRoot () const |
| Ancestry * | findInAncestry (std::string const &a_href) |
| Ancestry const * | findInAncestry (std::string const &a_href) const |
| virtual LUPI_HOST void | serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode) |
| virtual std::string | xlinkItemKey () const |
| std::string | toXLink () const |
| void | printXML () const |
Additional Inherited Members | |
| Static Public Member Functions inherited from GUPI::Ancestry | |
| static std::string | buildXLinkItemKey (std::string const &a_name, std::string const &a_key) |
This class is used to store a list (i.e., suite) of similar type GNDS nodes.
| typedef Entries::const_iterator GUPI::Suite::const_iterator |
| typedef std::vector<Entry *> GUPI::Suite::Entries |
| typedef Entries::iterator GUPI::Suite::iterator |
| GUPI::Suite::Suite | ( | std::string const & | a_keyName | ) |
Definition at line 21 of file GUPI_suite.cc.
| GUPI::Suite::Suite | ( | std::string const & | a_moniker, |
| std::string const & | a_keyName ) |
| a_moniker | [in] The GNDS moniker for the Suite instance. |
| a_keyName | [in] The name of the key for elements of this. |
Definition at line 32 of file GUPI_suite.cc.
| GUPI::Suite::Suite | ( | HAPI::Node const & | a_node, |
| std::string const & | a_keyName, | ||
| GUPI_parseSuite | a_parseSuite ) |
| a_node | [in] The HAPI::Node to be parsed and used to construct the Product. |
| a_keyName | [in] The name of the key for referencing up child nodes. |
| a_parseSuite | [in] This function to call to parse each sub-node. |
Definition at line 44 of file GUPI_suite.cc.
| GUPI::Suite::~Suite | ( | ) |
Definition at line 54 of file GUPI_suite.cc.
| void GUPI::Suite::add | ( | Entry * | a_form | ) |
Adds the node a_form to this.
| a_form | [in] The form to add. |
Definition at line 96 of file GUPI_suite.cc.
Referenced by parse().
|
inline |
|
inline |
|
inline |
|
inline |
| Suite::iterator GUPI::Suite::find | ( | std::string const & | a_keyValue | ) |
Returns the iterator to the node with keyValue a_keyValue.
| a_keyValue | [in] The keyValue of the node to find. |
Definition at line 120 of file GUPI_suite.cc.
Referenced by has().
| Suite::const_iterator GUPI::Suite::find | ( | std::string const & | a_keyValue | ) | const |
Returns the iterator to the node with keyValue a_keyValue.
| a_keyValue | [in] The keyValue of the node to find. |
Definition at line 137 of file GUPI_suite.cc.
| std::vector< Suite::iterator > GUPI::Suite::findAllOfMoniker | ( | std::string const & | a_moniker | ) |
Returns a list of iterators to the nodes in this that have GNDS moniker a_moniker.
| a_moniker | [in] The moniker to search for. |
Definition at line 154 of file GUPI_suite.cc.
| std::vector< Suite::const_iterator > GUPI::Suite::findAllOfMoniker | ( | std::string const & | a_moniker | ) | const |
Returns a list of iterators to the nodes in this that have GNDS moniker a_moniker.
| a_moniker | [in] The moniker to search for. |
Definition at line 173 of file GUPI_suite.cc.
|
virtual |
Used by Ancestry to tranverse GNDS nodes. This method returns a pointer to a derived class' a_item member or nullptr if none exists.
| a_item | [in] The name of the class member whose pointer is to be return. |
Implements GUPI::Ancestry.
Definition at line 191 of file GUPI_suite.cc.
|
virtual |
Used by Ancestry to tranverse GNDS nodes. This method returns a pointer to a derived class' a_item member or nullptr if none exists.
| a_item | [in] The name of the class member whose pointer is to be return. |
Implements GUPI::Ancestry.
Definition at line 214 of file GUPI_suite.cc.
| T * GUPI::Suite::get | ( | std::size_t | a_index | ) |
Returns the node at index a_index.
| a_index | [in] The index of the node to return. |
Definition at line 301 of file GUPI.hpp.
Referenced by findInAncestry3(), and findInAncestry3().
| T const * GUPI::Suite::get | ( | std::size_t | a_Index | ) | const |
| T * GUPI::Suite::get | ( | std::string const & | a_label | ) |
Returns the node with label a_label.
| a_label | [in] The label of the node to return. |
Definition at line 337 of file GUPI.hpp.
| T const * GUPI::Suite::get | ( | std::string const & | a_label | ) | const |
|
inline |
|
inline |
| std::size_t GUPI::Suite::operator[] | ( | std::string const & | a_keyValue | ) | const |
Returns the index of the node in this that has keyValue a_keyValue.
Definition at line 80 of file GUPI_suite.cc.
| void GUPI::Suite::parse | ( | HAPI::Node const & | a_node, |
| GUPI_parseSuite | a_parseSuite ) |
This methods parses all the child nodes of a_node.
| a_node | [in] The HAPI::Node to be parsed and used to construct the Product. |
| a_parseSuite | [in] This function to call to parse each sub-node. |
Definition at line 66 of file GUPI_suite.cc.
Referenced by Suite().
| void GUPI::Suite::printEntryLabels | ( | std::string const & | a_header | ) | const |
Prints the list of node keyValues to std::cout.
| a_header | [in] A string printed before the list of keyValues is printed. |
Definition at line 257 of file GUPI_suite.cc.
|
inline |
Returns the number of node contained by this.
Definition at line 263 of file GUPI.hpp.
Referenced by printEntryLabels(), and toXMLList().
|
virtual |
Fills the argument a_writeInfo with the XML lines that represent this. Recursively enters each sub-node.
| a_writeInfo | [in/out] Instance containing incremental indentation and other information and stores the appended lines. |
| a_indent | [in] The amount to indent this node. |
Reimplemented from GUPI::Ancestry.
Definition at line 237 of file GUPI_suite.cc.