Jpp test-rotations-new
the software that should make you happy
Loading...
Searching...
No Matches
JSYSTEM::JSysinfo Struct Reference

Auxiliary class for system information. More...

#include <JSysinfo.hh>

Inheritance diagram for JSYSTEM::JSysinfo:

Public Member Functions

 JSysinfo ()
 Default constructor.
 
unsigned long long int getTotalRAM () const
 Get total RAM.
 

Detailed Description

Auxiliary class for system information.

This class encapsulates the sysinfo data structure.

Definition at line 36 of file JSysinfo.hh.

Constructor & Destructor Documentation

◆ JSysinfo()

JSYSTEM::JSysinfo::JSysinfo ( )
inline

Default constructor.

Definition at line 43 of file JSysinfo.hh.

44 {
45 ::sysinfo(static_cast<sysinfo*>(this));
46 }

Member Function Documentation

◆ getTotalRAM()

unsigned long long int JSYSTEM::JSysinfo::getTotalRAM ( ) const
inline

Get total RAM.

Returns
total RAM [B]

Definition at line 64 of file JSysinfo.hh.

65 {
66 return (unsigned long long int) this->totalram * (unsigned long long int) this->mem_unit;
67 }

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