• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdeedu API Reference
  • KDE Home
  • Contact Us
 

Analitza

  • Analitza
  • Variables
Public Member Functions | List of all members
Analitza::Variables Class Reference
Analitza

#include <variables.h>

Inheritance diagram for Analitza::Variables:
Inheritance graph
[legend]

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.

void Analitza::Variables::modify ( const QString &  name,
const Object *  o 
)

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.

Cn* Analitza::Variables::modify ( const QString &  name,
const double &  d 
)

The same as the last one but having d as a value for name.

void Analitza::Variables::rename ( const QString &  orig,
const QString &  dest 
)

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 name identifier.

The documentation for this class was generated from the following file:
  • variables.h
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.

Analitza

Skip menu "Analitza"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Modules
  • Related Pages

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • marble
  • parley
  • rocs
  •   App
  •   RocsCore
  •   VisualEditor
  •   stepcore

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal