Geant4 11.2.2
Toolkit for the simulation of the passage of particles through matter
Loading...
Searching...
No Matches
G4MemStat::MemStat Struct Reference

#include <G4MemStat.hh>

Public Member Functions

 MemStat ()=default
 
 MemStat (const MemStat &right)
 
MemStat operator- (const MemStat &right)
 

Public Attributes

double vmz {0}
 
double mem {0}
 

Friends

std::ostream & operator<< (std::ostream &os, const MemStat &p)
 

Detailed Description

Definition at line 57 of file G4MemStat.hh.

Constructor & Destructor Documentation

◆ MemStat() [1/2]

G4MemStat::MemStat::MemStat ( )
default

◆ MemStat() [2/2]

G4MemStat::MemStat::MemStat ( const MemStat & right)
inline

Definition at line 65 of file G4MemStat.hh.

66 {
67 vmz = right.vmz;
68 mem = right.mem;
69 }

Member Function Documentation

◆ operator-()

MemStat G4MemStat::MemStat::operator- ( const MemStat & right)
inline

Definition at line 71 of file G4MemStat.hh.

72 {
73 MemStat output;
74 output.vmz = this->vmz-right.vmz;
75 output.mem = this->mem-right.mem;
76 return output;
77 }

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const MemStat & p )
friend

Definition at line 94 of file G4MemStat.cc.

95 {
96 return os << "( vmz: " << memStat.vmz << ", " << "mem: " << memStat.mem
97 << ")";
98 }

Member Data Documentation

◆ mem

double G4MemStat::MemStat::mem {0}

Definition at line 62 of file G4MemStat.hh.

62{0};

Referenced by G4MemStat::MemoryUsage(), MemStat(), and operator-().

◆ vmz

double G4MemStat::MemStat::vmz {0}

Definition at line 61 of file G4MemStat.hh.

61{0};

Referenced by G4MemStat::MemoryUsage(), MemStat(), and operator-().


The documentation for this struct was generated from the following file: