Jpp
Public Member Functions | List of all members
JSYSTEM::JSysinfo Struct Reference

Auxiliary class for system information. More...

#include <JSysinfo.hh>

Inheritance diagram for JSYSTEM::JSysinfo:

Public Member Functions

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

Detailed Description

Auxiliary class for system information.

This class encapsulates the sysinfo data structure.

Definition at line 21 of file JSysinfo.hh.

Constructor & Destructor Documentation

◆ JSysinfo()

JSYSTEM::JSysinfo::JSysinfo ( )
inline

Default constructor.

Definition at line 27 of file JSysinfo.hh.

28  {
29  ::sysinfo(static_cast<sysinfo*>(this));
30  }

Member Function Documentation

◆ getTotalRAM()

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

Get total RAM.

Returns
total RAM [B]

Definition at line 38 of file JSysinfo.hh.

39  {
40  return (unsigned long long int) this->totalram * (unsigned long long int) this->mem_unit;
41  }

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