Geant4 11.1.1
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 ()
 
 MemStat (const MemStat &right)
 
MemStat operator- (const MemStat &right)
 

Public Attributes

double vmz
 
double mem
 

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 ( )
inline

Definition at line 64 of file G4MemStat.hh.

64 : vmz(0), mem(0)
65 {;}

◆ MemStat() [2/2]

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

Definition at line 66 of file G4MemStat.hh.

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

Member Function Documentation

◆ operator-()

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

Definition at line 72 of file G4MemStat.hh.

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

Friends And Related Function 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

Definition at line 62 of file G4MemStat.hh.

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

◆ vmz

double G4MemStat::MemStat::vmz

Definition at line 61 of file G4MemStat.hh.

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


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