MCPcopy Create free account
hub / github.com/KDE/kdevelop / dynamicCast

Method dynamicCast

kdevplatform/language/duchain/duchainpointer.h:153–159  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

151
152 template <class NewType>
153 DUChainPointer<NewType> dynamicCast() const
154 {
155 if (d && dynamic_cast<NewType*>(d->base())) //When the reference to the pointer is constant that doesn't mean that the pointed object needs to be constant
156 return DUChainPointer<NewType>(static_cast<NewType*>(d->base()));
157 else
158 return DUChainPointer<NewType>();
159 }
160
161 Type* data() const
162 {

Callers

nothing calls this directly

Calls 1

baseMethod · 0.80

Tested by

no test coverage detected