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

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()
|
inlinevirtual |
Definition at line 106 of file typesystem.h.
Member Function Documentation
◆ exchange()
|
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:
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.