language/duchain
KDevelop::TypeFactory< T, Data > Class Template Reference
Template class to implement factories for each AbstractType subclass you want to instantiate. More...
#include <typeregister.h>

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