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

kdevplatform/language/duchain

  • KDevelop
  • TypeExchanger
Public Member Functions | List of all members
KDevelop::TypeExchanger Class Reference

#include <typesystem.h>

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

Public Member Functions

virtual ~TypeExchanger ()
 
virtual AbstractType::Ptr exchange (const AbstractType::Ptr &)
 

Detailed Description

A class that can be used to walk through all types that are references from one type, and exchange them with other types.

Examples for such types: Base-classes of a class, function-argument types of a function, etc.

Definition at line 103 of file typesystem.h.

Constructor & Destructor Documentation

◆ ~TypeExchanger()

virtual KDevelop::TypeExchanger::~TypeExchanger ( )
inlinevirtual

Definition at line 106 of file typesystem.h.

Member Function Documentation

◆ exchange()

TypePtr< KDevelop::AbstractType > KDevelop::TypeExchanger::exchange ( const AbstractType::Ptr &  )
virtual

By default should return the given type, and can return another type that the given should be replaced with.

Types should allow replacing all their held types using this from within their exchangeTypes function. The default-implementation recurses the exchange, so should be called from within the derived implementation if that is wished.

Reimplemented in KDevelop::SimpleTypeExchanger.

Definition at line 229 of file typesystem.cpp.


The documentation for this class was generated from the following files:
  • typesystem.h
  • typesystem.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2021 The KDE developers.
Generated on Thu Jan 21 2021 23:35:47 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