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

kdevplatform/language/duchain

  • KDevelop
  • InstantiationInformation
Public Member Functions | Static Public Member Functions | Public Attributes | List of all members
KDevelop::InstantiationInformation Class Reference

#include <instantiationinformation.h>

Public Member Functions

 InstantiationInformation ()
 
 InstantiationInformation (const InstantiationInformation &rhs, bool dynamic=true)
 
 ~InstantiationInformation ()
 
void addTemplateParameter (const AbstractType::Ptr &type)
 
 APPENDED_LIST_FIRST (InstantiationInformation, IndexedType, templateParameters)
 
QualifiedIdentifier applyToIdentifier (const QualifiedIdentifier &id) const
 
 END_APPENDED_LISTS (InstantiationInformation, templateParameters)
 
uint hash () const
 
IndexedInstantiationInformation indexed () const
 
bool isValid () const
 
short unsigned int itemSize () const
 
InstantiationInformation & operator= (const InstantiationInformation &rhs)
 
bool operator== (const InstantiationInformation &rhs) const
 
bool persistent () const
 
QString toString (bool local=false) const
 

Static Public Member Functions

static uint classSize ()
 

Public Attributes

IndexedInstantiationInformation previousInstantiationInformation
 

Detailed Description

Definition at line 71 of file instantiationinformation.h.

Constructor & Destructor Documentation

◆ InstantiationInformation() [1/2]

KDevelop::InstantiationInformation::InstantiationInformation ( )

Definition at line 90 of file instantiationinformation.cpp.

◆ InstantiationInformation() [2/2]

KDevelop::InstantiationInformation::InstantiationInformation ( const InstantiationInformation &  rhs,
bool  dynamic = true 
)
Todo:
include some information for instantiation only with default parameters

Definition at line 95 of file instantiationinformation.cpp.

◆ ~InstantiationInformation()

KDevelop::InstantiationInformation::~InstantiationInformation ( )

Definition at line 104 of file instantiationinformation.cpp.

Member Function Documentation

◆ addTemplateParameter()

void KDevelop::InstantiationInformation::addTemplateParameter ( const AbstractType::Ptr &  type)

This must always be used to add new parameters.

Warning
Never use templateParametersList() directly.

Definition at line 65 of file instantiationinformation.cpp.

◆ APPENDED_LIST_FIRST()

KDevelop::InstantiationInformation::APPENDED_LIST_FIRST ( InstantiationInformation  ,
IndexedType  ,
templateParameters   
)

templateParameters contains the template-parameters used for the instantiation

◆ applyToIdentifier()

QualifiedIdentifier KDevelop::InstantiationInformation::applyToIdentifier ( const QualifiedIdentifier &  id) const

Applies this instantiation information to the given QualifiedIdentifier.

The template parameters of the qualified identifier will be marked as expressions, thus the qualified identifier is not "clean".

Should only be used for displaying.

This only adds template-parameters in places where none are known yet.

Definition at line 30 of file instantiationinformation.cpp.

◆ classSize()

static uint KDevelop::InstantiationInformation::classSize ( )
inlinestatic

Definition at line 129 of file instantiationinformation.h.

◆ END_APPENDED_LISTS()

KDevelop::InstantiationInformation::END_APPENDED_LISTS ( InstantiationInformation  ,
templateParameters   
)

◆ hash()

uint KDevelop::InstantiationInformation::hash ( ) const

Definition at line 123 of file instantiationinformation.cpp.

◆ indexed()

IndexedInstantiationInformation KDevelop::InstantiationInformation::indexed ( ) const

Definition at line 216 of file instantiationinformation.cpp.

◆ isValid()

bool KDevelop::InstantiationInformation::isValid ( ) const
inline

Definition at line 87 of file instantiationinformation.h.

◆ itemSize()

short unsigned int KDevelop::InstantiationInformation::itemSize ( ) const
inline

Definition at line 134 of file instantiationinformation.h.

◆ operator=()

InstantiationInformation & KDevelop::InstantiationInformation::operator= ( const InstantiationInformation &  rhs)

Definition at line 109 of file instantiationinformation.cpp.

◆ operator==()

bool KDevelop::InstantiationInformation::operator== ( const InstantiationInformation &  rhs) const

Definition at line 116 of file instantiationinformation.cpp.

◆ persistent()

bool KDevelop::InstantiationInformation::persistent ( ) const
inline

Definition at line 92 of file instantiationinformation.h.

◆ toString()

QString KDevelop::InstantiationInformation::toString ( bool  local = false) const
Parameters
localIf this is true, only the template-parameters of this scope are printed, but not the parent ones

Definition at line 70 of file instantiationinformation.cpp.

Member Data Documentation

◆ previousInstantiationInformation

IndexedInstantiationInformation KDevelop::InstantiationInformation::previousInstantiationInformation

Instantiation-information for the surrounding context(see IndexedInstantiationInformation).

Definition at line 125 of file instantiationinformation.h.


The documentation for this class was generated from the following files:
  • instantiationinformation.h
  • instantiationinformation.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Sun Mar 7 2021 23:29:31 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