rtop
Public Member Functions | Private Attributes | Friends | List of all members
rtop::ProcDb Class Reference

data structure that hold property values for processes. contains facilities to enable their proper access and parsing for viewing More...

#include <info.h>

Public Member Functions

 ProcDb (int id)
 ProcDb constructor. Instantiates object with provided unique identifier. More...
 

Private Attributes

std::mutex access
 
int uuid
 
std::map< std::string, std::vector< InfoProc< std::string > > > database
 dictionary that holds vector of values corresponding to each property name string More...
 
std::vector< int > sorted_indices
 vector that holds the permutation order to parse property vectors in sorted order More...
 
std::map< int, std::pair< std::string, std::string > > field_prop_dict
 dictionary that holds property locations in /proc/pid/stat file, and correspondingg prop name and type More...
 
std::map< std::string, std::string > prop_type_dict
 dictionary hold property name and corresponding type More...
 
int dbsize
 size of property vector i.e. number of processes whose properties are being maintained More...
 

Friends

class ProcInfo
 
class XMLTree
 
class ProcViewPanel
 

Detailed Description

data structure that hold property values for processes. contains facilities to enable their proper access and parsing for viewing

Definition at line 109 of file info.h.

Constructor & Destructor Documentation

◆ ProcDb()

rtop::ProcDb::ProcDb ( int  id)
inline

ProcDb constructor. Instantiates object with provided unique identifier.

Definition at line 126 of file info.h.

Friends And Related Function Documentation

◆ ProcInfo

friend class ProcInfo
friend

Definition at line 127 of file info.h.

◆ ProcViewPanel

friend class ProcViewPanel
friend

Definition at line 129 of file info.h.

◆ XMLTree

friend class XMLTree
friend

Definition at line 128 of file info.h.

Member Data Documentation

◆ access

std::mutex rtop::ProcDb::access
private

Definition at line 112 of file info.h.

◆ database

std::map<std::string, std::vector<InfoProc<std::string> > > rtop::ProcDb::database
private

dictionary that holds vector of values corresponding to each property name string

Definition at line 115 of file info.h.

◆ dbsize

int rtop::ProcDb::dbsize
private

size of property vector i.e. number of processes whose properties are being maintained

Definition at line 123 of file info.h.

◆ field_prop_dict

std::map<int, std::pair<std::string, std::string> > rtop::ProcDb::field_prop_dict
private

dictionary that holds property locations in /proc/pid/stat file, and correspondingg prop name and type

Definition at line 119 of file info.h.

◆ prop_type_dict

std::map<std::string, std::string> rtop::ProcDb::prop_type_dict
private

dictionary hold property name and corresponding type

Definition at line 121 of file info.h.

◆ sorted_indices

std::vector<int> rtop::ProcDb::sorted_indices
private

vector that holds the permutation order to parse property vectors in sorted order

Definition at line 117 of file info.h.

◆ uuid

int rtop::ProcDb::uuid
private

Definition at line 113 of file info.h.


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