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

#include <MCGIDI.hpp>

Public Member Functions

LUPI_HOST_DEVICE URR_protareInfo ()
LUPI_HOST_DEVICE URR_protareInfo (URR_protareInfo const &a_URR_protareInfo)
LUPI_HOST_DEVICE URR_protareInfooperator= (URR_protareInfo const &a_rhs)
LUPI_HOST_DEVICE bool inURR () const
LUPI_HOST_DEVICE double rng_Value () const
LUPI_HOST_DEVICE void serialize (LUPI::DataBuffer &a_buffer, LUPI::DataBuffer::Mode a_mode)

Public Attributes

bool m_inURR
double m_rng_Value

Detailed Description

Definition at line 420 of file MCGIDI.hpp.

Constructor & Destructor Documentation

◆ URR_protareInfo() [1/2]

LUPI_HOST_DEVICE MCGIDI::URR_protareInfo::URR_protareInfo ( )
inline

Definition at line 426 of file MCGIDI.hpp.

426: m_inURR( false ), m_rng_Value( 0.0 ) { }

Referenced by operator=(), and URR_protareInfo().

◆ URR_protareInfo() [2/2]

LUPI_HOST_DEVICE MCGIDI::URR_protareInfo::URR_protareInfo ( URR_protareInfo const & a_URR_protareInfo)
inline

Definition at line 427 of file MCGIDI.hpp.

427 {
428 m_inURR = a_URR_protareInfo.m_inURR;
429 m_rng_Value = a_URR_protareInfo.m_rng_Value;
430 }

Member Function Documentation

◆ inURR()

LUPI_HOST_DEVICE bool MCGIDI::URR_protareInfo::inURR ( ) const
inline

Definition at line 441 of file MCGIDI.hpp.

441{ return( m_inURR ); }

Referenced by operator=(), and MCGIDI::URR_protareInfos::updateProtare().

◆ operator=()

LUPI_HOST_DEVICE URR_protareInfo & MCGIDI::URR_protareInfo::operator= ( URR_protareInfo const & a_rhs)
inline

Definition at line 431 of file MCGIDI.hpp.

431 {
432
433 if( this != &a_rhs ) {
434 m_inURR = a_rhs.inURR( );
435 m_rng_Value = a_rhs.rng_Value( );
436 }
437
438 return( *this );
439 }

◆ rng_Value()

LUPI_HOST_DEVICE double MCGIDI::URR_protareInfo::rng_Value ( ) const
inline

Definition at line 442 of file MCGIDI.hpp.

442{ return( m_rng_Value ); }

Referenced by operator=().

◆ serialize()

LUPI_HOST_DEVICE void MCGIDI::URR_protareInfo::serialize ( LUPI::DataBuffer & a_buffer,
LUPI::DataBuffer::Mode a_mode )

This method serializes this for broadcasting as needed for MPI and GPUs. The method can count the number of required bytes, pack this or unpack this depending on a_mode.

Parameters
a_buffer[in] The buffer to read or write data to depending on a_mode.
a_mode[in] Specifies the action of this method.

Definition at line 22 of file MCGIDI_URR.cc.

22 {
23
24 DATA_MEMBER_CAST( m_inURR, a_buffer, a_mode, bool );
25 DATA_MEMBER_DOUBLE( m_rng_Value, a_buffer, a_mode );
26}
#define DATA_MEMBER_CAST(member, buf, mode, someType)
#define DATA_MEMBER_DOUBLE(member, buf, mode)

Member Data Documentation

◆ m_inURR

◆ m_rng_Value


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