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

#include <PoPI.hpp>

Inheritance diagram for PoPI::PQ_fraction:

Public Member Functions

 PQ_fraction (HAPI::Node const &a_node)
virtual ~PQ_fraction ()
std::string value (void) const
std::string value (char const *a_unit) const
std::string value (std::string const &a_unit) const
virtual std::string valueToString (void) const
Public Member Functions inherited from PoPI::PhysicalQuantity
 PhysicalQuantity (HAPI::Node const &a_node, PQ_class a_class)
virtual ~PhysicalQuantity ()
PQ_class Class (void) const
std::string const & tag (void) const
std::string const & label (void) const
std::string const & valueString (void) const
std::string const & unit (void) const
void toXMLList (std::vector< std::string > &a_XMLList, std::string const &a_indent1) const

Detailed Description

The physical quantity class representing a fraction.

Definition at line 477 of file PoPI.hpp.

Constructor & Destructor Documentation

◆ PQ_fraction()

PoPI::PQ_fraction::PQ_fraction ( HAPI::Node const & a_node)
Parameters
a_node[in] The HAPI::Node node to be parsed.

Definition at line 189 of file PoPI_physicalQuantity.cc.

189 :
191
192}
PhysicalQuantity(HAPI::Node const &a_node, PQ_class a_class)

◆ ~PQ_fraction()

PoPI::PQ_fraction::~PQ_fraction ( )
virtual

Definition at line 197 of file PoPI_physicalQuantity.cc.

197 {
198
199}

Member Function Documentation

◆ value() [1/3]

std::string PoPI::PQ_fraction::value ( char const * a_unit) const

◆ value() [2/3]

std::string PoPI::PQ_fraction::value ( std::string const & a_unit) const
inline

Returns the value of the m_value member in units of a_unit.

Definition at line 485 of file PoPI.hpp.

Referenced by value().

◆ value() [3/3]

std::string PoPI::PQ_fraction::value ( void ) const

◆ valueToString()

std::string PoPI::PQ_fraction::valueToString ( void ) const
virtual

Returns the value as a string.

Returns
The string value of this.

Implements PoPI::PhysicalQuantity.

Definition at line 220 of file PoPI_physicalQuantity.cc.

220 {
221
222 return( valueString( ) );
223}
std::string const & valueString(void) const
Definition PoPI.hpp:419

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