Analitza
#include <expressiontype.h>
|
| enum | Type {
Error =0,
Value,
Vector,
List,
Lambda,
Any,
Many,
Object,
Char,
Bool,
Matrix
} |
| |
|
| static bool | assumptionsMerge (QMap< QString, ExpressionType > &data, const QMap< QString, ExpressionType > &newmap) |
| |
| static void | assumptionsUnion (QMap< QString, ExpressionType > &data, const QMap< QString, ExpressionType > &newmap) |
| |
| static QMap< int, ExpressionType > | computeStars (const QMap< int, ExpressionType > &initial, const ExpressionType &candidate, const ExpressionType &type) |
| |
| static QList< ExpressionType > | lambdaFromArgs (const QList< ExpressionType > &args) |
| |
| static QList< ExpressionType > | manyFromArgs (const QList< ExpressionType > &args) |
| |
| static bool | matchAssumptions (QMap< int, ExpressionType > *stars, const QMap< QString, ExpressionType > &assum1, const QMap< QString, ExpressionType > &assum2) |
| |
| static ExpressionType | minimumType (const ExpressionType &t1, const ExpressionType &t2) |
| |
| static QStringList | wrongAssumptions (const QMap< QString, ExpressionType > &assum1, const QMap< QString, ExpressionType > &assum2) |
| |
Definition at line 30 of file expressiontype.h.
Just use undefined type when returning from a recursion.
| Enumerator |
|---|
| Error |
|
| Value |
|
| Vector |
|
| List |
|
| Lambda |
|
| Any |
|
| Many |
|
| Object |
|
| Char |
|
| Bool |
|
| Matrix |
|
Definition at line 34 of file expressiontype.h.
| Analitza::ExpressionType::ExpressionType |
( |
Type |
t = Error, |
|
|
int |
any = -1 |
|
) |
| |
| Analitza::ExpressionType::ExpressionType |
( |
Type |
t, |
|
|
const ExpressionType & |
contained, |
|
|
int |
s = 0 |
|
) |
| |
| Analitza::ExpressionType::ExpressionType |
( |
const QString & |
objectName | ) |
|
Constructs a type that identifies a custom Object.
| Analitza::ExpressionType::~ExpressionType |
( |
| ) |
|
|
inline |
| void Analitza::ExpressionType::addAlternative |
( |
const ExpressionType & |
t | ) |
|
In case it's a Many type, it adds t as an alternative.
If t is a Many type too, they will be merged
| int Analitza::ExpressionType::anyValue |
( |
| ) |
const |
|
inline |
| bool Analitza::ExpressionType::canCompareTo |
( |
const ExpressionType & |
type | ) |
const |
- Returns
- false in case that just by looking at the current type we see that it won't be able to be reduced to
type. Useful to improve error reporting
| bool Analitza::ExpressionType::canReduceTo |
( |
const ExpressionType & |
type | ) |
const |
- Returns
- true if the current type can be converted into
type
| void Analitza::ExpressionType::clearAssumptions |
( |
| ) |
|
| int Analitza::ExpressionType::increaseStars |
( |
int |
stars | ) |
|
| bool Analitza::ExpressionType::isError |
( |
| ) |
const |
Depth search to check if it's defined.
| QString Analitza::ExpressionType::objectName |
( |
| ) |
const |
- Returns
- the name of a custom type
| bool Analitza::ExpressionType::operator!= |
( |
const ExpressionType & |
t | ) |
const |
|
inline |
| bool Analitza::ExpressionType::operator== |
( |
const ExpressionType & |
t | ) |
const |
when it's a many type, reduce to the one(s) that can be reduced to
| void Analitza::ExpressionType::removeAssumptions |
( |
const QStringList & |
bvarStrings | ) |
|
| int Analitza::ExpressionType::size |
( |
| ) |
const |
|
inline |
Returns a new type with the stars solved according t info.
| QString Analitza::ExpressionType::toString |
( |
| ) |
const |
| Type Analitza::ExpressionType::type |
( |
| ) |
const |
|
inline |
| int Analitza::ExpressionType::m_any |
| int Analitza::ExpressionType::m_size |
The documentation for this class was generated from the following file:
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
KDE's Doxygen guidelines are available online.