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 | |
| ProcessTree & | operator= (const ProcessTree &)=default |
| ProcessTree & | operator= (ProcessTree &&)=default |
| ProcessTree (pid_t pid) | |
Create a process tree rooted at the given process ID pid. | |
| const ProcessInfo & | ProcInfo () 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) |
Encapsulates a process tree, i.e. a process and its descendants.
|
friend |
Prints the process tree to an ostream.
This isn't very useful, it's mostly for debugging.