rtop
|
Classes | |
class | Action |
Action object. More... | |
class | BrowsePanelData |
derived from SimplePanelData. capable of storing list of item in a ncurses menu object. More... | |
class | Columns |
responsible for managing the flow of information between ProcViewPanel, ProcDb and ProcInfo More... | |
class | EditPanelData |
derived from BrowsePanelData. capable of editing items in ncurses menu list. More... | |
class | Info |
data structure that defines type of entry from which panel menu entrires obtain their c-string data More... | |
class | InfoProc |
data structure that defines type of entry from which panel menu entries obtain their c-string data More... | |
class | KeyDict |
holds a dictionary of key values and corresponding Action list. Provides API to resolve the keys More... | |
class | MapOfKeyDicts |
stores key dictionary index by key_dict_uuid More... | |
class | MemFuncPDict |
stores references to UI and non-UI objects and their callbacks. More... | |
class | ProcDb |
data structure that hold property values for processes. contains facilities to enable their proper access and parsing for viewing More... | |
class | ProcInfo |
interfaces with linux API to read process information and update ProcDb with it More... | |
class | ProcViewPanel |
panel data structure responsible for displaying of property values for all live processes. More... | |
class | ScreenManager |
Top Level UI object. Responsible to switching between views and capturing key input. More... | |
class | SimplePanelData |
Base class in heirarchy of UI objects responsible to storing the content associated with a panel and providing an API to manipulate it. More... | |
class | StateMachine |
statemachine that uses integer corresponding to object uuids to represent states More... | |
class | StringParser |
responsible for parsing strings in a line, specfied by some character separator More... | |
class | View |
2nd level UI object. Responsible for switching between panels and resolving key input More... | |
class | XMLTree |
parses config file More... | |
Functions | |
bool | operator<= (const InfoProc< std::string > &a, const InfoProc< std::string > &b) |
overloaded <= operator for comparing two InfoProc objects More... | |
template<typename T , typename Compare > | |
std::vector< int > | sort_permutation (const std::vector< T > &vec, Compare compare) |
returns permutation vector after sorting the given vector based on the provided compare function More... | |
char | toChar (std::string str1) |
converts string to its equivalent char value. More... | |
void | milliSleep (int msec) |
makes calling thread sleep for specified milliseconds More... | |
std::string | msecToTimeStr (unsigned long msec) |
converts msec to TimerStr for display as min:sec.secs_fraction More... | |
template<class T > | |
std::ostream & | operator<< (std::ostream &ofs, const InfoProc< T > &obj) |
overloaded << operator for printing InfoProc contents More... | |
template<class T > | |
std::string | vec_to_string (std::vector< T > &vec) |
concatenates a vectors entries into a string More... | |
template<class T > | |
void | swap (std::vector< T > &v, int i, int j) |
swaps supplied vectors' element corresponding to indices i and j More... | |
template<class T > | |
void | swap (T &a, T &b) |
swaps two variables More... | |
Variables | |
MapOfKeyDicts | mapKeyDict |
global variable for accessing key dictionaries by their uuid More... | |
MemFuncPDict | funcPDict |
int | POLL_INTVL = 1000 |
bool | EXIT = false |
int | KEY_INPUT = 0 |
std::map< int, std::pair< int, int > > | colors |
std::map< std::string, int > | color_map {{"BLACK", COLOR_BLACK}, {"RED", COLOR_RED}, {"GREEN", COLOR_GREEN}, {"YELLOW", COLOR_YELLOW}, {"BLUE", COLOR_BLUE}, {"MAGENTA", COLOR_MAGENTA}, {"CYAN", COLOR_CYAN}, {"WHITE", COLOR_WHITE}} |
dictionary containing color_pair number corresponding to each color_name More... | |
void rtop::milliSleep | ( | int | msec | ) |
makes calling thread sleep for specified milliseconds
Definition at line 106 of file rtop_utils.h.
std::string rtop::msecToTimeStr | ( | unsigned long | msec | ) |
converts msec to TimerStr for display as min:sec.secs_fraction
Definition at line 138 of file rtop_utils.h.
std::ostream& rtop::operator<< | ( | std::ostream & | ofs, |
const InfoProc< T > & | obj | ||
) |
overloaded << operator for printing InfoProc contents
Definition at line 151 of file rtop_utils.h.
std::vector<int> rtop::sort_permutation | ( | const std::vector< T > & | vec, |
Compare | compare | ||
) |
returns permutation vector after sorting the given vector based on the provided compare function
compare function passed to sort_permutation should follow strick weak ordering
Definition at line 27 of file rtop_utils.h.
void rtop::swap | ( | std::vector< T > & | v, |
int | i, | ||
int | j | ||
) |
swaps supplied vectors' element corresponding to indices i and j
Definition at line 173 of file rtop_utils.h.
void rtop::swap | ( | T & | a, |
T & | b | ||
) |
swaps two variables
Definition at line 182 of file rtop_utils.h.
char rtop::toChar | ( | std::string | str1 | ) |
converts string to its equivalent char value.
Definition at line 37 of file rtop_utils.h.
std::string rtop::vec_to_string | ( | std::vector< T > & | vec | ) |
concatenates a vectors entries into a string
the supplied vector's type should have an overloaded << operator that returns a string
Definition at line 163 of file rtop_utils.h.
std::map<std::string, int> rtop::color_map {{"BLACK", COLOR_BLACK}, {"RED", COLOR_RED}, {"GREEN", COLOR_GREEN}, {"YELLOW", COLOR_YELLOW}, {"BLUE", COLOR_BLUE}, {"MAGENTA", COLOR_MAGENTA}, {"CYAN", COLOR_CYAN}, {"WHITE", COLOR_WHITE}} |
dictionary containing color_pair number corresponding to each color_name
Definition at line 190 of file rtop_utils.h.
rtop::MemFuncPDict rtop::funcPDict |
MemFuncPDict global for allowing any object to invoke any other object's registered callbacks
Definition at line 20 of file key_dict.h.
MapOfKeyDicts rtop::mapKeyDict |
global variable for accessing key dictionaries by their uuid
Definition at line 175 of file key_dict.h.