language/duchain
KDevelop::StructureType Class Reference
A type representing structure types. More...
#include <structuretype.h>

Public Types | |
| enum | { Identity = 6 } |
| typedef StructureTypeData | Data |
| typedef TypePtr< StructureType > | Ptr |
Public Member Functions | |
| StructureType (StructureTypeData &data) | |
| StructureType (const StructureType &rhs) | |
| StructureType () | |
| virtual | ~StructureType () |
| virtual AbstractType * | clone () const |
| virtual bool | equals (const AbstractType *rhs) const |
| virtual uint | hash () const |
| virtual QString | toString () const |
| virtual WhichType | whichType () const |
Protected Member Functions | |
| virtual void | accept0 (TypeVisitor *v) const |
Detailed Description
A type representing structure types.
StructureType represents all structures, including classes, interfaces, etc.
Definition at line 39 of file structuretype.h.
Constructor & Destructor Documentation
| KDevelop::StructureType::StructureType | ( | ) |
Default constructor.
Definition at line 63 of file structuretype.cpp.
| KDevelop::StructureType::StructureType | ( | const StructureType & | rhs | ) |
| KDevelop::StructureType::StructureType | ( | StructureTypeData & | data | ) |
Constructor using raw data.
- Parameters:
-
data internal data.
Definition at line 39 of file structuretype.cpp.
| KDevelop::StructureType::~StructureType | ( | ) | [virtual] |
Destructor.
Definition at line 68 of file structuretype.cpp.
Member Function Documentation
| void KDevelop::StructureType::accept0 | ( | TypeVisitor * | v | ) | const [protected, virtual] |
Visitor method, reimplement to allow visiting of types.
- Parameters:
-
v visitor which is visiting.
Implements KDevelop::AbstractType.
Definition at line 72 of file structuretype.cpp.
| AbstractType * KDevelop::StructureType::clone | ( | ) | const [virtual] |
Should create a clone of the source-type, with as much data copied as possible without breaking the du-chain.
Implements KDevelop::AbstractType.
Definition at line 44 of file structuretype.cpp.
| uint KDevelop::StructureType::hash | ( | ) | const [virtual] |
A hash-value that should have the following properties:
- When two types match on equals(), it should be same.
- When two types don't match on equals(), it should be different with a high probability.
Reimplemented from KDevelop::AbstractType.
Definition at line 97 of file structuretype.cpp.
| QString KDevelop::StructureType::toString | ( | ) | const [virtual] |
Returns this type as a string, preferably the same as it is expressed in the code.
- Returns:
- this type as a string
Reimplemented from KDevelop::AbstractType.
Definition at line 80 of file structuretype.cpp.
| AbstractType::WhichType KDevelop::StructureType::whichType | ( | ) | const [virtual] |
Determine which data type this abstract type represents.
- Returns:
- the data type represented by this type.
Reimplemented from KDevelop::AbstractType.
Definition at line 92 of file structuretype.cpp.
The documentation for this class was generated from the following files:
KDE 4.4 API Reference