Analitza
Detailed Description
Utils for manipulate the objects of the tree.
Function Documentation
int AnalitzaUtils::countDepth | ( | int | depth, |
const Analitza::Object * | tree | ||
) |
tells how much depth
is being used inside tree
ANALITZA_EXPORT QStringList AnalitzaUtils::dependencies | ( | const Analitza::Object * | o, |
const QStringList & | scope | ||
) |
bool AnalitzaUtils::equalTree | ( | const Analitza::Object * | o1, |
const Analitza::Object * | o2 | ||
) |
Returns whether o1
is equal to o2
.
QVariant ANALITZA_EXPORT AnalitzaUtils::expressionToVariant | ( | const Analitza::Expression & | res | ) |
Creates a QVariant out of an Expression res
.
QString ANALITZA_EXPORT AnalitzaUtils::generateDependencyGraph | ( | const Analitza::Variables * | v | ) |
bool AnalitzaUtils::hasTheVar | ( | const QSet< QString > & | vars, |
const Analitza::Object * | o | ||
) |
bool AnalitzaUtils::hasTheVar | ( | const QSet< QString > & | vars, |
const Analitza::Apply * | a | ||
) |
bool AnalitzaUtils::hasTheVar | ( | const QSet< QString > & | vars, |
const Analitza::Container * | c | ||
) |
bool AnalitzaUtils::hasVars | ( | const Analitza::Object * | o, |
const QStringList & | bvars = QStringList() |
||
) |
Returns whether there is any variable in the o
tree.
bvars
tells the already defined variables (which won't return true).
bool AnalitzaUtils::isLambda | ( | const Analitza::Object * | o | ) |
QString AnalitzaUtils::listToString | ( | const Analitza::List * | list | ) |
void ANALITZA_EXPORT AnalitzaUtils::objectWalker | ( | const Analitza::Expression & | o, |
const QByteArray & | prefix = QByteArray() |
||
) |
Convenience function.
void AnalitzaUtils::objectWalker | ( | const Analitza::Object * | o, |
const QByteArray & | prefix = QByteArray() |
||
) |
Prints an expression tree from a node o
.
prefix
will be the start of every item line
Analitza::Object* AnalitzaUtils::replaceDepth | ( | int | depth, |
Analitza::Object * | tree, | ||
Analitza::Object * | towhat | ||
) |
Analitza::Expression ANALITZA_EXPORT AnalitzaUtils::variantToExpression | ( | const QVariant & | v | ) |
Creates an expression out of a QVariant v
, it will assert if it's not the correct type.
This file is part of the KDE documentation.
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2020 The KDE developers.
Generated on Mon Jun 22 2020 13:11:37 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.