kdevplatform/language/duchain
abstracttype.cpp
Go to the documentation of this file.
36 AbstractType::Ptr newType(clone()); //While cloning, all the data is cloned as well. So we use that mechanism and steal the cloned data.
void setAlignOf(int64_t alignedTo)
Set the alignment to given number of bytes.
Definition: abstracttype.cpp:78
virtual bool preVisit(const AbstractType *)=0
virtual bool equals(const AbstractType *rhs) const
Should return whether this type's content equals the given one Since this is used by the type-reposit...
Definition: abstracttype.cpp:134
virtual WhichType whichType() const
Determine which data type this abstract type represents.
Definition: abstracttype.cpp:120
virtual QString toString() const
Returns this type as a string, preferably the same as it is expressed in the code.
Definition: abstracttype.cpp:148
virtual void postVisit(const AbstractType *)=0
void callDestructor(AbstractTypeData *data) const
Calls the destructor, but does not delete anything. This is needed because the data classes must not ...
Definition: typeregister.cpp:33
virtual AbstractType * clone() const =0
Should create a clone of the source-type, with as much data copied as possible without breaking the d...
Definition: typesystem.h:41
IndexedType indexed() const
This can also be called on zero types, those can then be reconstructed from the zero index.
Definition: abstracttype.cpp:129
virtual void exchangeTypes(TypeExchanger *exchanger)
Should, like accept0, be implemented by all types that hold references to other types.
Definition: abstracttype.cpp:125
A class that can be used to walk through all types that are references from one type,...
Definition: typesystem.h:103
virtual void accept0(TypeVisitor *v) const =0
Visitor method, reimplement to allow visiting of types.
static void acceptType(AbstractType::Ptr type, TypeVisitor *v)
Convenience visitor method which can be called with a null type.
Definition: abstracttype.cpp:112
Definition: abstractfunctiondeclaration.cpp:27
virtual uint hash() const
A hash-value that should have the following properties:
Definition: abstracttype.cpp:142
void makeDynamic()
Must always be called before anything in the data pointer is changed! If it's not called beforehand,...
Definition: abstracttype.cpp:32
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Apr 20 2021 23:30:11 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
Documentation copyright © 1996-2021 The KDE developers.
Generated on Tue Apr 20 2021 23:30:11 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.