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

Analitza

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

#include <apply.h>

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

Public Member Functions

 Apply ()
 
virtual ~Apply ()
 
virtual QVariant accept (AbstractExpressionVisitor *exp) const
 
void addBVar (Analitza::Ci *bvar)
 
void appendBranch (Object *o)
 
Object * at (int p) const
 
iterator begin ()
 
QVector< Ci * > bvarCi () const
 
QStringList bvarStrings () const
 
const_iterator constBegin () const
 
const_iterator constEnd () const
 
virtual Apply * copy () const
 
int countValues () const
 
Object * dlimit () const
 
Object *& dlimit ()
 
Object * domain () const
 
Object *& domain ()
 
iterator end ()
 
const Operator & firstOperator () const
 
iterator firstValue ()
 
const_iterator firstValue () const
 
bool hasBoundings () const
 
bool hasBVars () const
 
void insertBranch (Apply::iterator before, Object *o)
 
bool isEmpty () const
 
bool isUnary () const
 
virtual bool matches (const Analitza::Object *exp, QMap< QString, const Analitza::Object * > *found) const
 
bool operator== (const Apply &a) const
 
void prependBranch (Object *o)
 
Object * ulimit () const
 
Object *& ulimit ()
 
QVector< Object * > values () const
 
- Public Member Functions inherited from Analitza::Object
virtual ~Object ()
 
bool isApply () const
 
bool isContainer () const
 
virtual bool isZero () const
 
QString toString () const
 
enum ObjectType type () const
 

Public Attributes

QVector< Object * > m_params
 

Additional Inherited Members

- Public Types inherited from Analitza::Object
enum  ObjectType {
  none =0, value, variable, vector,
  list, apply, oper, container,
  matrix, matrixrow, custom
}
 
- Protected Member Functions inherited from Analitza::Object
 Object (enum ObjectType t)
 
- Protected Attributes inherited from Analitza::Object
const ObjectType m_type
 

Detailed Description

This class is the one that will correspond to MathML apply tags.

Stores and helps to retrieve any data it has inside like bvars, operators and values.

Definition at line 41 of file apply.h.

Constructor & Destructor Documentation

Analitza::Apply::Apply ( )
virtual Analitza::Apply::~Apply ( )
virtual

Member Function Documentation

virtual QVariant Analitza::Apply::accept ( AbstractExpressionVisitor *  exp) const
virtual

Returns some string depending on the visior.

Implements Analitza::Object.

void Analitza::Apply::addBVar ( Analitza::Ci *  bvar)

Adds bvar into the list of bvars.

void Analitza::Apply::appendBranch ( Object *  o)
Object* Analitza::Apply::at ( int  p) const
iterator Analitza::Apply::begin ( )
inline

Definition at line 77 of file apply.h.

QVector<Ci*> Analitza::Apply::bvarCi ( ) const
inline

Definition at line 82 of file apply.h.

QStringList Analitza::Apply::bvarStrings ( ) const

Returns the apply's bvars names.

const_iterator Analitza::Apply::constBegin ( ) const
inline

Definition at line 80 of file apply.h.

const_iterator Analitza::Apply::constEnd ( ) const
inline

Definition at line 81 of file apply.h.

virtual Apply* Analitza::Apply::copy ( ) const
virtual
Returns
a new and equal instance of the tree.

Implements Analitza::Object.

int Analitza::Apply::countValues ( ) const
inline

Definition at line 54 of file apply.h.

Object* Analitza::Apply::dlimit ( ) const
inline

Definition at line 68 of file apply.h.

Object*& Analitza::Apply::dlimit ( )
inline

Definition at line 72 of file apply.h.

Object* Analitza::Apply::domain ( ) const
inline

Definition at line 69 of file apply.h.

Object*& Analitza::Apply::domain ( )
inline

Definition at line 73 of file apply.h.

iterator Analitza::Apply::end ( )
inline

Definition at line 78 of file apply.h.

const Operator& Analitza::Apply::firstOperator ( ) const
inline

Definition at line 53 of file apply.h.

iterator Analitza::Apply::firstValue ( )
inline
Deprecated:
should use begin() now

Definition at line 76 of file apply.h.

const_iterator Analitza::Apply::firstValue ( ) const
inline

Definition at line 79 of file apply.h.

bool Analitza::Apply::hasBoundings ( ) const
Returns
if there's any bounding specified
bool Analitza::Apply::hasBVars ( ) const
inline

Returns whether that apply has any bvar.

Definition at line 63 of file apply.h.

void Analitza::Apply::insertBranch ( Apply::iterator  before,
Object *  o 
)
inline

Adds a o branch right after before of the Container.

Definition at line 88 of file apply.h.

bool Analitza::Apply::isEmpty ( ) const
inline

Definition at line 84 of file apply.h.

bool Analitza::Apply::isUnary ( ) const
inline

Definition at line 83 of file apply.h.

virtual bool Analitza::Apply::matches ( const Analitza::Object *  exp,
QMap< QString, const Analitza::Object * > *  found 
) const
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.

bool Analitza::Apply::operator== ( const Apply &  a) const
void Analitza::Apply::prependBranch ( Object *  o)
Object* Analitza::Apply::ulimit ( ) const
inline

Definition at line 67 of file apply.h.

Object*& Analitza::Apply::ulimit ( )
inline

Definition at line 71 of file apply.h.

QVector<Object*> Analitza::Apply::values ( ) const
inline

Definition at line 89 of file apply.h.

Member Data Documentation

QVector<Object*> Analitza::Apply::m_params

Definition at line 95 of file apply.h.


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