• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdevelop API Reference
  • KDE Home
  • Contact Us
 

kdevplatform/language/duchain

  • KDevelop
  • MapType
Public Types | Public Member Functions | Protected Member Functions | List of all members
KDevelop::MapType Class Reference

#include <containertypes.h>

Inheritance diagram for KDevelop::MapType:
Inheritance graph
[legend]

Public Types

enum  { Identity = 57 }
 
using Data = MapTypeData
 
using Ptr = TypePtr< MapType >
 
- Public Types inherited from KDevelop::ListType
enum  { Identity = 58 }
 
using Data = ListTypeData
 
using Ptr = TypePtr< ListType >
 
- Public Types inherited from KDevelop::StructureType
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
 
- Public Member Functions inherited from KDevelop::ListType
 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
 
- Public Member Functions inherited from KDevelop::StructureType
 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
 
- Public Member Functions inherited from KDevelop::MergeIdentifiedType< Parent >
 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
 
- Public Member Functions inherited from KDevelop::IdentifiedType
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)
 
- Protected Member Functions inherited from KDevelop::ListType
 TYPE_DECLARE_DATA (ListType)
 
- Protected Member Functions inherited from KDevelop::StructureType
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]

KDevelop::MapType::MapType ( ListTypeData &  data)
explicit

Definition at line 45 of file containertypes.cpp.

Member Function Documentation

◆ addKeyType()

template<typename LanguageUnsureType >
void KDevelop::MapType::addKeyType ( const AbstractType::Ptr &  typeToAdd)
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()

AbstractType * KDevelop::MapType::clone ( ) const
override

Definition at line 76 of file containertypes.cpp.

◆ equals()

bool KDevelop::MapType::equals ( const AbstractType *  rhs) const
override

Definition at line 127 of file containertypes.cpp.

◆ hash()

uint KDevelop::MapType::hash ( ) const
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=()

MapType& KDevelop::MapType::operator= ( const MapType &  rhs)
delete

◆ 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()

QString KDevelop::MapType::toString ( ) const
override

Formats this type (base type and key+content type) in a string.

Definition at line 91 of file containertypes.cpp.

◆ TYPE_DECLARE_DATA()

KDevelop::MapType::TYPE_DECLARE_DATA ( MapType  )
protected

The documentation for this class was generated from the following files:
  • containertypes.h
  • containertypes.cpp
This file is part of the KDE documentation.
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.

kdevplatform/language/duchain

Skip menu "kdevplatform/language/duchain"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdevelop API Reference

Skip menu "kdevelop API Reference"
  • kdevplatform
  •   debugger
  •   documentation
  •   interfaces
  •   language
  •     assistant
  •     backgroundparser
  •     checks
  •     classmodel
  •     codecompletion
  •     codegen
  •     duchain
  •     editor
  •     highlighting
  •     interfaces
  •     util
  •   outputview
  •   project
  •   serialization
  •   shell
  •   sublime
  •   tests
  •   util
  •   vcs

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal