Geant4 11.4.0
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
GIDI::TargetInfo::TargetInfo Class Reference

#include <GIDI.hpp>

Inheritance diagram for GIDI::TargetInfo::TargetInfo:

Public Member Functions

 TargetInfo ()
 ~TargetInfo ()
void parseEvaluatedTargetInfo (HAPI::Node const &a_node)
IsotopicAbundances const & isotopicAbundances () const
GUPI::AncestryfindInAncestry3 (LUPI_maybeUnused std::string const &a_item)
GUPI::Ancestry const * findInAncestry3 (LUPI_maybeUnused std::string const &a_item) const
void toXMLList (GUPI::WriteInfo &a_writeInfo, std::string const &a_indent="") const
Public Member Functions inherited from GUPI::Ancestry
 Ancestry (std::string const &a_moniker, std::string const &a_attribute="")
virtual ~Ancestry ()
Ancestryoperator= (Ancestry const &a_ancestry)
std::string const & moniker () const
void setMoniker (std::string const &a_moniker)
Ancestryancestor ()
Ancestry const * ancestor () const
void setAncestor (Ancestry *a_ancestor)
std::string attribute () const
Ancestryroot ()
Ancestry const * root () const
bool isChild (Ancestry *a_instance)
bool isParent (Ancestry *a_parent)
bool isRoot () const
AncestryfindInAncestry (std::string const &a_href)
Ancestry const * findInAncestry (std::string const &a_href) const
virtual AncestryfindInAncestry3 (std::string const &a_item)=0
virtual Ancestry const * findInAncestry3 (std::string const &a_item) const =0
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)

Detailed Description

The class that stores the targetInfo node.

Definition at line 3003 of file GIDI.hpp.

Constructor & Destructor Documentation

◆ TargetInfo()

GIDI::TargetInfo::TargetInfo::TargetInfo ( )

Definition at line 178 of file GIDI_targetInfo.cc.

178 :
179 GUPI::Ancestry( GIDI_targetInfoChars ) {
180
181}
#define GIDI_targetInfoChars
Definition GIDI.hpp:469

◆ ~TargetInfo()

GIDI::TargetInfo::TargetInfo::~TargetInfo ( )

Definition at line 186 of file GIDI_targetInfo.cc.

186 {
187
188}

Member Function Documentation

◆ findInAncestry3() [1/2]

GUPI::Ancestry * GIDI::TargetInfo::TargetInfo::findInAncestry3 ( LUPI_maybeUnused std::string const & a_item)
inline

Definition at line 3015 of file GIDI.hpp.

3015{ return( nullptr ); }

◆ findInAncestry3() [2/2]

GUPI::Ancestry const * GIDI::TargetInfo::TargetInfo::findInAncestry3 ( LUPI_maybeUnused std::string const & a_item) const
inline

Definition at line 3016 of file GIDI.hpp.

3016{ return( nullptr ); }

◆ isotopicAbundances()

IsotopicAbundances const & GIDI::TargetInfo::TargetInfo::isotopicAbundances ( ) const
inline

Returns a const reference to the m_isotopicAbundances member.

Definition at line 3013 of file GIDI.hpp.

◆ parseEvaluatedTargetInfo()

void GIDI::TargetInfo::TargetInfo::parseEvaluatedTargetInfo ( HAPI::Node const & a_node)

For internal use only.

Parameters
a_node[in] The HAPI::Node node whose text is to be converted into a list of doubles.

Definition at line 196 of file GIDI_targetInfo.cc.

196 {
197
198 m_isotopicAbundances.initialize( a_node.child( GIDI_isotopicAbundancesChars ) );
199}
#define GIDI_isotopicAbundancesChars
Definition GIDI.hpp:471

◆ toXMLList()

void GIDI::TargetInfo::TargetInfo::toXMLList ( GUPI::WriteInfo & a_writeInfo,
std::string const & a_indent = "" ) const
virtual

Fills the argument a_writeInfo with the XML lines that represent this. Recursively enters each sub-node.

Parameters
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 208 of file GIDI_targetInfo.cc.

208 {
209
210 std::string indent2 = a_writeInfo.incrementalIndent( a_indent );
211
212 a_writeInfo.addNodeStarter( a_indent, moniker( ) );
213 m_isotopicAbundances.toXMLList( a_writeInfo, indent2 );
214 a_writeInfo.addNodeEnder( moniker( ) );
215}
std::string const & moniker() const
Definition GUPI.hpp:102
void addNodeEnder(std::string const &a_moniker)
Definition GUPI.hpp:59
std::string incrementalIndent(std::string const &indent)
Definition GUPI.hpp:52
void addNodeStarter(std::string const &indent, std::string const &a_moniker, std::string const &a_attributes="")
Definition GUPI.hpp:55

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