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

Analitza

  • Analitza
  • Container
Public Types | Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
Analitza::Container Class Reference
Analitza

#include <container.h>

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

Public Types

enum  ContainerType {
  none =0, math, declare, lambda,
  bvar, uplimit, downlimit, piece,
  piecewise, otherwise, domainofapplication
}
 
- Public Types inherited from Analitza::Object
enum  ObjectType {
  none =0, value, variable, vector,
  list, apply, oper, container,
  matrix, matrixrow, custom
}
 

Public Member Functions

 Container (enum ContainerType c)
 
 Container (const Container &c)
 
virtual ~Container ()
 
virtual QVariant accept (AbstractExpressionVisitor *) const
 
void appendBranch (Object *o)
 
Container::iterator begin ()
 
QList< Ci * > bvarCi () const
 
int bvarCount () const
 
QStringList bvarStrings () const
 
Container::const_iterator constBegin () const
 
Container::const_iterator constEnd () const
 
ContainerType containerType () const
 
virtual Container * copy () const
 
Container::iterator end ()
 
const Container * extractType (Container::ContainerType t) const
 
void insertBranch (Container::iterator before, Object *o)
 
bool isEmpty () const
 
bool isNumber () const
 
virtual bool isZero () const
 
virtual bool matches (const Object *pattern, QMap< QString, const Object * > *found) const
 
bool operator== (const Container &c) const
 
void setContainerType (enum ContainerType c)
 
QString tagName () 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 ContainerType toContainerType (const QString &tag)
 

Public Attributes

QList< Object * > m_params
 

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

Container represents special tags of MathML called containers.

This class is the one that will correspond to MathML container. e.g. apply, mathml, bvar, uplimit...

Definition at line 44 of file container.h.

Member Enumeration Documentation

enum Analitza::Container::ContainerType

Is used to describe Container objects in reference to the MathML standard.

Enumerator
none 

No container type, usually means an error.

math 

Describes a container as a lt;math> tag.

declare 

Describes a container as a lt;declare> tag.

lambda 

Describes a container as a lt;lambda> tag.

bvar 

Describes a container as a lt;bvar> tag.

uplimit 

Describes a container as a lt;uplimit> tag.

downlimit 

Describes a container as a lt;downlimit> tag.

piece 

Describes a container as a lt;piece> tag.

piecewise 

Describes a container as a lt;piecewise> tag.

otherwise 

Describes a container as a lt;otherwise> tag.

domainofapplication 

Describes a container as a lt;domainofapplication> tag.

Definition at line 49 of file container.h.

Constructor & Destructor Documentation

Analitza::Container::Container ( enum ContainerType  c)
inline

Construtor.

Creates an empty container with c type.

Definition at line 67 of file container.h.

Analitza::Container::Container ( const Container &  c)

Copy constructor, copies all of the branches derivated on it.

virtual Analitza::Container::~Container ( )
inlinevirtual

Destructor.

Deletes all the references.

Definition at line 75 of file container.h.

Member Function Documentation

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

Returns some string depending on the visior.

Implements Analitza::Object.

void Analitza::Container::appendBranch ( Object *  o)

Adds a o branch at the end of the Container.

Container::iterator Analitza::Container::begin ( )
inline

Returns the begin iterator on the contained object list.

Definition at line 102 of file container.h.

QList<Ci*> Analitza::Container::bvarCi ( ) const

Returns a QStringList where we have all of the bvar in the container.

int Analitza::Container::bvarCount ( ) const
Returns
how many bvars are there in the container
QStringList Analitza::Container::bvarStrings ( ) const

Returns a QStringList where we have all of the bvar in the container.

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

Returns the begin iterator on the contained object list.

Definition at line 105 of file container.h.

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

Returns the end iterator on the contained object list.

Definition at line 108 of file container.h.

ContainerType Analitza::Container::containerType ( ) const
inline

Returns the type of the container.

Definition at line 81 of file container.h.

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

Implements Analitza::Object.

Container::iterator Analitza::Container::end ( )
inline

Returns the end iterator on the contained object list.

Definition at line 111 of file container.h.

const Container* Analitza::Container::extractType ( Container::ContainerType  t) const
void Analitza::Container::insertBranch ( Container::iterator  before,
Object *  o 
)
inline

Adds a o branch right after before of the Container.

Definition at line 93 of file container.h.

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

Returns whether it is an empty container.

Definition at line 114 of file container.h.

bool Analitza::Container::isNumber ( ) const
Returns
Returns whether it provides a numerical result instead of information.
virtual bool Analitza::Container::isZero ( ) const
virtual

Reimplemented from Analitza::Object.

virtual bool Analitza::Container::matches ( const Object *  exp,
QMap< QString, const 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::Container::operator== ( const Container &  c) const

Returns whether c is equal or not.

void Analitza::Container::setContainerType ( enum ContainerType  c)
inline

Sets the container type to c.

Definition at line 78 of file container.h.

QString Analitza::Container::tagName ( ) const
Returns
Returns the string associated to the container type.
static ContainerType Analitza::Container::toContainerType ( const QString &  tag)
static

Converts a tag to a containerType.

Member Data Documentation

QList<Object*> Analitza::Container::m_params

Definition at line 134 of file container.h.


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