Go to the documentation of this file.
11 #ifndef PROCESS_UTILS_HPP
12 #define PROCESS_UTILS_HPP
19 #include <QStringList>
22 class QTreeWidgetItem;
24 class QRegularExpression;
35 QTreeWidgetItem*
getFolder(QString name, QHash<QString, QTreeWidgetItem*> &folders,
52 template <
size_t dim,
typename T>
55 QStringList l = s.split(sep);
56 size_t sz =
min(dim,
size_t(l.size()));
57 for(
size_t i = 0; i < sz; ++i)
58 p[i] = l[i].toDouble();
bool fromQString(Vector< dim, T > &p, const QString &s, QString sep=" ")
Convert a QString to a Point.
QTreeWidgetItem * getFolder(QString name, QHash< QString, QTreeWidgetItem * > &folders, QTreeWidget *tree)
Find or create a folder from a process tree.
void filterProcesses(QTreeWidget *tree, const QString &filter_text)
Show only processes whose name match the regular expression.
Distributed matrix library.
Namespace containing all the utility classes.
CU_HOST_DEVICE T min(const T a, const T b)