language/duchain
KDevelop::AbstractTypeFactory Class Reference
A factory class for type data. More...
#include <typeregister.h>
Inheritance diagram for KDevelop::AbstractTypeFactory:

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:
KDE 4.4 API Reference