Analitza
#include <variables.h>

Public Member Functions | |
| Variables () | |
| Variables (const Variables &v) | |
| ~Variables () | |
| void | initializeConstants () |
| void | modify (const QString &name, const Object *o) |
| void | modify (const QString &name, const Expression &o) |
| Cn * | modify (const QString &name, const double &d) |
| void | rename (const QString &orig, const QString &dest) |
| Expression | valueExpression (const QString &name) const |
Public Member Functions inherited from QHash< QString, Object * > | |
| QHash () | |
| QHash (const QHash< Key, T > &other) | |
| ~QHash () | |
| iterator | begin () |
| const_iterator | begin () const |
| int | capacity () const |
| void | clear () |
| const_iterator | constBegin () const |
| const_iterator | constEnd () const |
| const_iterator | constFind (const Key &key) const |
| bool | contains (const Key &key) const |
| int | count () const |
| int | count (const Key &key) const |
| bool | empty () const |
| iterator | end () |
| const_iterator | end () const |
| iterator | erase (iterator pos) |
| const_iterator | find (const Key &key) const |
| iterator | find (const Key &key) |
| iterator | insert (const Key &key, const T &value) |
| iterator | insertMulti (const Key &key, const T &value) |
| bool | isEmpty () const |
| const Key | key (const T &value, const Key &defaultKey) const |
| const Key | key (const T &value) const |
| QList< Key > | keys () const |
| QList< Key > | keys (const T &value) const |
| bool | operator!= (const QHash< Key, T > &other) const |
| QHash< Key, T > & | operator= (const QHash< Key, T > &other) |
| bool | operator== (const QHash< Key, T > &other) const |
| T & | operator[] (const Key &key) |
| const T | operator[] (const Key &key) const |
| int | remove (const Key &key) |
| void | reserve (int size) |
| int | size () const |
| void | squeeze () |
| void | swap (QHash< Key, T > &other) |
| T | take (const Key &key) |
| QList< Key > | uniqueKeys () const |
| QHash< Key, T > & | unite (const QHash< Key, T > &other) |
| const T | value (const Key &key) const |
| const T | value (const Key &key, const T &defaultValue) const |
| QList< T > | values (const Key &key) const |
| QList< T > | values () const |
Additional Inherited Members | |
Public Attributes inherited from QHash< QString, Object * > | |
| typedef | ConstIterator |
| typedef | difference_type |
| typedef | Iterator |
| typedef | key_type |
| typedef | mapped_type |
| typedef | size_type |
Detailed Description
Stores the variables in a hash map and make them available.
Definition at line 42 of file variables.h.
Constructor & Destructor Documentation
| Analitza::Variables::Variables | ( | ) |
Creates an empty variable hash table with the usual constants.
| Analitza::Variables::Variables | ( | const Variables & | v | ) |
Copy constructor, copies the old one, a bit heavy, be careful.
| Analitza::Variables::~Variables | ( | ) |
Destroys the object.
Member Function Documentation
| void Analitza::Variables::initializeConstants | ( | ) |
Adds again the initial constants.
Modifies the value of the variable called name, and if didn't exist, a name variable is created with an o value.
| void Analitza::Variables::modify | ( | const QString & | name, |
| const Expression & | o | ||
| ) |
Modifies the value of the variable called name, and if didn't exist, a name variable is created with an e expression.
The same as the last one but having d as a value for name.
The orig named variable will be called dest , then orig will be removed.
| Expression Analitza::Variables::valueExpression | ( | const QString & | name | ) | const |
- Returns
- the expression contained by the
nameidentifier.
The documentation for this class was generated from the following file:
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.
KDE API Reference
Public Member Functions inherited from