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

language/duchain

KDevelop::TypeFactory

KDevelop::TypeFactory< T, Data > Class Template Reference

Template class to implement factories for each AbstractType subclass you want to instantiate. More...

#include <typeregister.h>

Inheritance diagram for KDevelop::TypeFactory< T, Data >:
Inheritance graph
[legend]

List of all members.

Public Member Functions

void callDestructor (AbstractTypeData *data) const
void copy (const AbstractTypeData &from, AbstractTypeData &to, bool constant) const
AbstractType * create (AbstractTypeData *data) const
uint dynamicSize (const AbstractTypeData &data) const

Detailed Description

template<class T, class Data>
class KDevelop::TypeFactory< T, Data >

Template class to implement factories for each AbstractType subclass you want to instantiate.

Definition at line 79 of file typeregister.h.


Member Function Documentation

template<class T, class Data>
void KDevelop::TypeFactory< T, Data >::callDestructor ( AbstractTypeData *  data  )  const [inline, virtual]

Release the data from a type which is being destroyed.

Parameters:
data data to destroy.

Implements KDevelop::AbstractTypeFactory.

Definition at line 104 of file typeregister.h.

template<class T, class Data>
void KDevelop::TypeFactory< T, Data >::copy ( const AbstractTypeData &  from,
AbstractTypeData &  to,
bool  constant 
) const [inline, 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

Implements KDevelop::AbstractTypeFactory.

Definition at line 89 of file typeregister.h.

template<class T, class Data>
AbstractType* KDevelop::TypeFactory< T, Data >::create ( AbstractTypeData *  data  )  const [inline, virtual]

Create a new type for the given data.

Parameters:
data Data to assign to the new type.

Implements KDevelop::AbstractTypeFactory.

Definition at line 81 of file typeregister.h.

template<class T, class Data>
uint KDevelop::TypeFactory< T, Data >::dynamicSize ( const AbstractTypeData &  data  )  const [inline, 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.

Implements KDevelop::AbstractTypeFactory.

Definition at line 109 of file typeregister.h.


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