kdevplatform/language/duchain
#include <containertypes.h>

Public Types | |
enum | { Identity = 57 } |
using | Data = MapTypeData |
using | Ptr = TypePtr< MapType > |
![]() | |
enum | { Identity = 58 } |
using | Data = ListTypeData |
using | Ptr = TypePtr< ListType > |
![]() | |
enum | { Identity = 6 } |
using | Data = StructureTypeData |
using | Ptr = TypePtr< StructureType > |
Public Member Functions | |
MapType () | |
MapType (const MapType &rhs) | |
MapType (ListTypeData &data) | |
template<typename LanguageUnsureType > | |
void | addKeyType (const AbstractType::Ptr &typeToAdd) |
AbstractType * | clone () const override |
bool | equals (const AbstractType *rhs) const override |
uint | hash () const override |
IndexedType | keyType () const |
MapType & | operator= (const MapType &rhs)=delete |
void | replaceKeyType (const AbstractType::Ptr &newType) |
QString | toString () const override |
![]() | |
ListType () | |
ListType (const ListType &rhs) | |
ListType (StructureTypeData &data) | |
template<typename LanguageUnsureType > | |
void | addContentType (const AbstractType::Ptr &typeToAdd) |
AbstractType * | clone () const override |
QString | containerToString () const |
IndexedType | contentType () const |
bool | equals (const AbstractType *rhs) const override |
uint | hash () const override |
ListType & | operator= (const ListType &rhs)=delete |
void | replaceContentType (const AbstractType::Ptr &newType) |
QString | toString () const override |
![]() | |
StructureType () | |
StructureType (const StructureType &rhs) | |
StructureType (StructureTypeData &data) | |
~StructureType () override | |
AbstractType * | clone () const override |
bool | equals (const AbstractType *rhs) const override |
uint | hash () const override |
StructureType & | operator= (const StructureType &rhs)=delete |
QString | toString () const override |
WhichType | whichType () const override |
![]() | |
MergeIdentifiedType () | |
MergeIdentifiedType (const MergeIdentifiedType &rhs)=delete | |
MergeIdentifiedType (Data &data) | |
bool | equals (const KDevelop::AbstractType *rhs) const override |
const IdentifiedTypeData * | idData () const override |
IdentifiedTypeData * | idData () override |
![]() | |
virtual | ~IdentifiedType () |
void | clear () |
Declaration * | declaration (const TopDUContext *top) const |
DeclarationId | declarationId () const |
bool | equals (const IdentifiedType *rhs) const |
uint | hash () const |
DUContext * | internalContext (const TopDUContext *top) const |
QualifiedIdentifier | qualifiedIdentifier () const |
void | setDeclaration (Declaration *declaration) |
void | setDeclarationId (const DeclarationId &id) |
Protected Member Functions | |
TYPE_DECLARE_DATA (MapType) | |
![]() | |
TYPE_DECLARE_DATA (ListType) | |
![]() | |
void | accept0 (TypeVisitor *v) const override |
Detailed Description
Represents a hashmap-like object which can have a key and a content type.
- See also
- ListType This works the same as ListType, except that you can also track the object's key type.
Definition at line 180 of file containertypes.h.
Member Typedef Documentation
◆ Data
using KDevelop::MapType::Data = MapTypeData |
Definition at line 225 of file containertypes.h.
◆ Ptr
using KDevelop::MapType::Ptr = TypePtr<MapType> |
Definition at line 184 of file containertypes.h.
Member Enumeration Documentation
◆ anonymous enum
anonymous enum |
Enumerator | |
---|---|
Identity |
Definition at line 223 of file containertypes.h.
Constructor & Destructor Documentation
◆ MapType() [1/3]
KDevelop::MapType::MapType | ( | ) |
Definition at line 42 of file containertypes.cpp.
◆ MapType() [2/3]
KDevelop::MapType::MapType | ( | const MapType & | rhs | ) |
Definition at line 48 of file containertypes.cpp.
◆ MapType() [3/3]
|
explicit |
Definition at line 45 of file containertypes.cpp.
Member Function Documentation
◆ addKeyType()
|
inline |
Add typeToAdd
to this map's key type.
Behaves like addContentType, except that it modifies the key type instead.
Definition at line 197 of file containertypes.h.
◆ clone()
|
override |
Definition at line 76 of file containertypes.cpp.
◆ equals()
|
override |
Definition at line 127 of file containertypes.cpp.
◆ hash()
|
override |
Definition at line 142 of file containertypes.cpp.
◆ keyType()
IndexedType KDevelop::MapType::keyType | ( | ) | const |
Get this map's key type.
Definition at line 66 of file containertypes.cpp.
◆ operator=()
◆ replaceKeyType()
void KDevelop::MapType::replaceKeyType | ( | const AbstractType::Ptr & | newType | ) |
Set this map's key type to newType
.
Definition at line 56 of file containertypes.cpp.
◆ toString()
|
override |
Formats this type (base type and key+content type) in a string.
Definition at line 91 of file containertypes.cpp.
◆ TYPE_DECLARE_DATA()
|
protected |
The documentation for this class was generated from the following files:
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Mar 4 2021 23:31:18 by doxygen 1.8.16 written by Dimitri van Heesch, © 1997-2006
KDE's Doxygen guidelines are available online.