• Skip to content
  • Skip to link menu
KDE 4.4 API Reference
  • KDE API Reference
  • KDevelop Platform Libraries
  • Sitemap
  • Contact Us
 

language/duchain

KDevelop::AbstractTypeFactory

KDevelop::AbstractTypeFactory Class Reference

A factory class for type data. More...

#include <typeregister.h>

Inheritance diagram for KDevelop::AbstractTypeFactory:
Inheritance graph
[legend]

List of all members.

Public Member Functions

virtual ~AbstractTypeFactory ()
virtual void callDestructor (AbstractTypeData *data) const =0
virtual void copy (const AbstractTypeData &from, AbstractTypeData &to, bool constant) const =0
virtual AbstractType * create (AbstractTypeData *data) const =0
virtual uint dynamicSize (const AbstractTypeData &data) const =0

Detailed Description

A factory class for type data.

This class provides an interface for creating private data structures for classes.

Definition at line 33 of file typeregister.h.


Constructor & Destructor Documentation

virtual KDevelop::AbstractTypeFactory::~AbstractTypeFactory (  )  [inline, virtual]

Destructor.

Definition at line 70 of file typeregister.h.


Member Function Documentation

virtual void KDevelop::AbstractTypeFactory::callDestructor ( AbstractTypeData *  data  )  const [pure virtual]

Release the data from a type which is being destroyed.

Parameters:
data data to destroy.

Implemented in KDevelop::TypeFactory< T, Data >.

virtual void KDevelop::AbstractTypeFactory::copy ( const AbstractTypeData &  from,
AbstractTypeData &  to,
bool  constant 
) const [pure virtual]

Copy data from one type to another.

Parameters:
from data to copy from
to data to copy to
constant set to true if to is to be a static data type, or false if to is to be a dynamic data type.
Todo:
David, please check this

Implemented in KDevelop::TypeFactory< T, Data >.

virtual AbstractType* KDevelop::AbstractTypeFactory::create ( AbstractTypeData *  data  )  const [pure virtual]

Create a new type for the given data.

Parameters:
data Data to assign to the new type.

Implemented in KDevelop::TypeFactory< T, Data >.

virtual uint KDevelop::AbstractTypeFactory::dynamicSize ( const AbstractTypeData &  data  )  const [pure virtual]

Return the memory size of the given private data, including dynamic data.

Parameters:
data data structure
Returns:
the size in memory of the data.

Implemented in KDevelop::TypeFactory< T, Data >.


The documentation for this class was generated from the following file:
  • typeregister.h

language/duchain

Skip menu "language/duchain"
  • Main Page
  • Namespace List
  • Class Hierarchy
  • Alphabetical List
  • Class List
  • File List
  • Namespace Members
  • Class Members
  • Related Pages

KDevelop Platform Libraries

Skip menu "KDevelop Platform Libraries"
  • interfaces
  • language
  •   codegen
  •   duchain
  •   editor
  • outputview
  • project
  • shell
  • sublime
  • util
  • vcs
Generated for KDevelop Platform Libraries by doxygen 1.5.9-20090814
This website is maintained by Adriaan de Groot and Allen Winter.
KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal