libDwm-0.9.45
Dwm::ProcessTree Class Reference

Encapsulates a process tree, i.e. a process and its descendants. More...

#include <DwmProcessTree.hh>

Public Member Functions

 ProcessTree ()=default
 Defaulted constructors and assignment operators.
 
 ProcessTree (const ProcessTree &)=default
 
 ProcessTree (ProcessTree &&)=default
 
ProcessTreeoperator= (const ProcessTree &)=default
 
ProcessTreeoperator= (ProcessTree &&)=default
 
 ProcessTree (pid_t pid)
 Create a process tree rooted at the given process ID pid.
 
const ProcessInfoProcInfo () const
 Returns the process info for the process.
 
const std::map< pid_t, ProcessTree > & Children () const
 Returns the children of the process.
 
nlohmann::json ToJson () const
 

Friends

std::ostream & operator<< (std::ostream &os, const ProcessTree &pt)
 Prints the process tree to an ostream.
 
bool ToJson (const ProcessTree &processTree, nlohmann::json &json)
 

Detailed Description

Encapsulates a process tree, i.e. a process and its descendants.

Friends And Related Symbol Documentation

◆ operator<<

std::ostream & operator<< ( std::ostream & os,
const ProcessTree & pt )
friend

Prints the process tree to an ostream.

This isn't very useful, it's mostly for debugging.


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