Analitza
Analitza::Cn Class Reference
#include <value.h>
Inheritance diagram for Analitza::Cn:
Public Types | |
enum | ValueFormat { Char =8, Real =7, Integer =3, Boolean =1 } |
Public Types inherited from Analitza::Object | |
enum | ObjectType { none =0, value, variable, vector, list, apply, oper, container, matrix, matrixrow, custom } |
Public Member Functions | |
Cn (const Cn &v) | |
Cn (const double &b=0.) | |
Cn (int i) | |
Cn (uint i) | |
Cn (bool b) | |
Cn (const QChar &c) | |
virtual QVariant | accept (AbstractExpressionVisitor *) const |
QChar | character () const |
virtual Object * | copy () const |
ValueFormat | format () const |
int | intValue () const |
bool | isBoolean () const |
bool | isCharacter () const |
bool | isInteger () const |
bool | isTrue () const |
virtual bool | isZero () const |
virtual bool | matches (const Object *exp, QMap< QString, const Object * > *found) const |
bool | operator< (const Cn &d) const |
bool | operator< (double d) const |
bool | operator<= (const Cn &d) const |
bool | operator<= (double d) const |
Cn | operator= (double d) |
bool | operator== (const Cn &d) const |
double & | rvalue () |
void | setBoolean (bool b) |
bool | setValue (const QDomElement &e) |
void | setValue (const double &v) |
void | setValue (int v) |
void | setValue (uint v) |
void | setValue (bool v) |
double | value () const |
Public Member Functions inherited from Analitza::Object | |
virtual | ~Object () |
bool | isApply () const |
bool | isContainer () const |
QString | toString () const |
enum ObjectType | type () const |
Static Public Member Functions | |
static Cn | e () |
static Cn | euler () |
static Cn | pi () |
Additional Inherited Members | |
Protected Member Functions inherited from Analitza::Object | |
Object (enum ObjectType t) | |
Protected Attributes inherited from Analitza::Object | |
const ObjectType | m_type |
Detailed Description
Member Enumeration Documentation
Constructor & Destructor Documentation
|
inline |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
|
inlineexplicit |
Member Function Documentation
|
virtual |
Returns some string depending on the visior.
Implements Analitza::Object.
|
virtual |
- Returns
- a new and equal instance of the tree.
Implements Analitza::Object.
|
static |
|
static |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inlinevirtual |
Reimplemented from Analitza::Object.
|
virtual |
exp
is the tree that we will compare to, found
is where we will pass the variables store the results.
It will return whether the object follows the pattern
structure.
Implements Analitza::Object.
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
inline |
|
static |
|
inline |
bool Analitza::Cn::setValue | ( | const QDomElement & | e | ) |
Extracts the number from the e
Dom element and saves it.
void Analitza::Cn::setValue | ( | const double & | v | ) |
Sets the new value of this function.
- Parameters
-
v the new value
void Analitza::Cn::setValue | ( | int | v | ) |
void Analitza::Cn::setValue | ( | uint | v | ) |
void Analitza::Cn::setValue | ( | bool | v | ) |
|
inline |
Member Data Documentation
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
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.