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

kig

Public Member Functions | Static Public Member Functions | Friends | List of all members
ObjectHierarchy Class Reference

#include <object_hierarchy.h>

Public Member Functions

 ObjectHierarchy (const ObjectCalcer *from, const ObjectCalcer *to)
 
 ObjectHierarchy (const std::vector< ObjectCalcer * > &from, const ObjectCalcer *to)
 
 ObjectHierarchy (const std::vector< ObjectCalcer * > &from, const std::vector< ObjectCalcer * > &to)
 
 ObjectHierarchy (const ObjectHierarchy &h)
 
 ~ObjectHierarchy ()
 
bool allGivenObjectsUsed () const
 
ArgsParser argParser () const
 
std::vector< ObjectCalcer * > buildObjects (const std::vector< ObjectCalcer * > &os, const KigDocument &) const
 
std::vector< ObjectImp * > calc (const Args &a, const KigDocument &doc) const
 
const ObjectImpType * idOfLastResult () const
 
uint numberOfArgs () const
 
uint numberOfResults () const
 
bool resultDoesNotDependOnGiven () const
 
void serialize (QDomElement &parent, QDomDocument &doc) const
 
ObjectHierarchy transformFinalObject (const Transformation &t) const
 
ObjectHierarchy withFixedArgs (const Args &a) const
 

Static Public Member Functions

static ObjectHierarchy * buildSafeObjectHierarchy (const QDomElement &parent, QString &error)
 

Friends

bool operator== (const ObjectHierarchy &lhs, const ObjectHierarchy &rhs)
 

Detailed Description

Definition at line 30 of file object_hierarchy.h.

Constructor & Destructor Documentation

ObjectHierarchy::ObjectHierarchy ( const ObjectCalcer *  from,
const ObjectCalcer *  to 
)

Definition at line 768 of file object_hierarchy.cc.

ObjectHierarchy::ObjectHierarchy ( const std::vector< ObjectCalcer * > &  from,
const ObjectCalcer *  to 
)

Definition at line 402 of file object_hierarchy.cc.

ObjectHierarchy::ObjectHierarchy ( const std::vector< ObjectCalcer * > &  from,
const std::vector< ObjectCalcer * > &  to 
)

Definition at line 409 of file object_hierarchy.cc.

ObjectHierarchy::ObjectHierarchy ( const ObjectHierarchy &  h)

Definition at line 347 of file object_hierarchy.cc.

ObjectHierarchy::~ObjectHierarchy ( )

Definition at line 342 of file object_hierarchy.cc.

Member Function Documentation

bool ObjectHierarchy::allGivenObjectsUsed ( ) const

Definition at line 777 of file object_hierarchy.cc.

ArgsParser ObjectHierarchy::argParser ( ) const

Definition at line 598 of file object_hierarchy.cc.

std::vector< ObjectCalcer * > ObjectHierarchy::buildObjects ( const std::vector< ObjectCalcer * > &  os,
const KigDocument &  doc 
) const

build a set of objects that interdepend according to this ObjectHierarchy.

. Only the result objects are returned. Helper objects that connect the given objects with the returned objects, can only be found by following the returned objects' parents() methods..

Definition at line 613 of file object_hierarchy.cc.

ObjectHierarchy * ObjectHierarchy::buildSafeObjectHierarchy ( const QDomElement &  parent,
QString &  error 
)
static

Deserialize the ObjectHierarchy data from the xml element parent .

Since this operation can fail for some reasons, we provide it as a static to return 0 in case of error.

Definition at line 482 of file object_hierarchy.cc.

std::vector< ObjectImp * > ObjectHierarchy::calc ( const Args &  a,
const KigDocument &  doc 
) const

Definition at line 256 of file object_hierarchy.cc.

const ObjectImpType * ObjectHierarchy::idOfLastResult ( ) const

Definition at line 634 of file object_hierarchy.cc.

uint ObjectHierarchy::numberOfArgs ( ) const
inline

Definition at line 99 of file object_hierarchy.h.

uint ObjectHierarchy::numberOfResults ( ) const
inline

Definition at line 100 of file object_hierarchy.h.

bool ObjectHierarchy::resultDoesNotDependOnGiven ( ) const

Definition at line 677 of file object_hierarchy.cc.

void ObjectHierarchy::serialize ( QDomElement &  parent,
QDomDocument &  doc 
) const

saves the ObjectHierarchy data in children xml tags of parent .

Definition at line 414 of file object_hierarchy.cc.

ObjectHierarchy ObjectHierarchy::transformFinalObject ( const Transformation &  t) const

Definition at line 645 of file object_hierarchy.cc.

ObjectHierarchy ObjectHierarchy::withFixedArgs ( const Args &  a) const

this creates a new ObjectHierarchy, that takes a.size() less arguments, but uses copies of the ObjectImp's in a instead.

Definition at line 358 of file object_hierarchy.cc.

Friends And Related Function Documentation

bool operator== ( const ObjectHierarchy &  lhs,
const ObjectHierarchy &  rhs 
)
friend

Definition at line 659 of file object_hierarchy.cc.


The documentation for this class was generated from the following files:
  • object_hierarchy.h
  • object_hierarchy.cc
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:35:41 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

kig

Skip menu "kig"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members

kdeedu API Reference

Skip menu "kdeedu API Reference"
  • Analitza
  •     lib
  • kalgebra
  • kalzium
  •   libscience
  • kanagram
  • kig
  •   lib
  • klettres
  • kstars
  • libkdeedu
  •   keduvocdocument
  • 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