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

Analitza

  • Analitza
  • Object
Public Types | Public Member Functions | Protected Member Functions | Protected Attributes | List of all members
Analitza::Object Class Referenceabstract

#include <object.h>

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

Public Types

enum  ObjectType {
  none =0, value, variable, vector,
  list, apply, oper, container,
  matrix, matrixrow, custom
}
 

Public Member Functions

virtual ~Object ()
 
virtual QVariant accept (AbstractExpressionVisitor *exp) const =0
 
virtual Object * copy () const =0
 
bool isApply () const
 
bool isContainer () const
 
virtual bool isZero () const
 
virtual bool matches (const Object *exp, QMap< QString, const Object * > *found) const =0
 
QString toString () const
 
enum ObjectType type () const
 

Protected Member Functions

 Object (enum ObjectType t)
 

Protected Attributes

const ObjectType m_type
 

Detailed Description

Abstract expression tree node

Author
Aleix Pol aleix.nosp@m.pol@.nosp@m.kde.o.nosp@m.rg

Definition at line 38 of file object.h.

Member Enumeration Documentation

enum Analitza::Object::ObjectType

ObjectType is used to describe objects.

Enumerator
none 

No object type, usually means an error.

value 

Describes an object as a value.

variable 

Describes an object as a variable.

vector 

Describes an object as a vector.

list 

Describes an object as a list.

apply 

Describes an object as an application.

oper 

Describes an object as an operator.

container 

Describes an object as a container.

matrix 

Describes an object as a matrix.

matrixrow 

Describes an object as a matrix row.

custom 

Describes a custom object.

Definition at line 42 of file object.h.

Constructor & Destructor Documentation

virtual Analitza::Object::~Object ( )
inlinevirtual

Object destructor.

Does nothing.

Definition at line 57 of file object.h.

Analitza::Object::Object ( enum ObjectType  t)
inlineprotected

Creates an object with a t type.

Definition at line 89 of file object.h.

Member Function Documentation

virtual QVariant Analitza::Object::accept ( AbstractExpressionVisitor *  exp) const
pure virtual

Returns some string depending on the visior.

Implemented in Analitza::Cn, Analitza::Operator, Analitza::Container, Analitza::Ci, Analitza::List, Analitza::Vector, Analitza::Apply, Analitza::Matrix, Analitza::CustomObject, and Analitza::MatrixRow.

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

Implemented in Analitza::Cn, Analitza::Operator, Analitza::Container, Analitza::List, Analitza::Ci, Analitza::Vector, Analitza::Apply, Analitza::Matrix, Analitza::CustomObject, and Analitza::MatrixRow.

bool Analitza::Object::isApply ( ) const
inline

Returns whether it is an apply or not.

Definition at line 63 of file object.h.

bool Analitza::Object::isContainer ( ) const
inline

Returns whether it is a container or not.

Definition at line 66 of file object.h.

virtual bool Analitza::Object::isZero ( ) const
inlinevirtual

Reimplemented in Analitza::Cn, Analitza::Container, Analitza::List, and Analitza::Vector.

Definition at line 74 of file object.h.

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

Implemented in Analitza::Cn, Analitza::Container, Analitza::Operator, Analitza::List, Analitza::Ci, Analitza::Vector, Analitza::Apply, Analitza::Matrix, and Analitza::CustomObject.

QString Analitza::Object::toString ( ) const

Returns the string representation of the object.

enum ObjectType Analitza::Object::type ( ) const
inline

Returns the object type of the object.

Definition at line 60 of file object.h.

Member Data Documentation

const ObjectType Analitza::Object::m_type
protected

Specifies the Object type.

Definition at line 92 of file object.h.


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