HDK
|
Go to the source code of this file.
Functions | |
PXR_NAMESPACE_OPEN_SCOPE bool | TfSafeTypeCompare (const std::type_info &t1, const std::type_info &t2) |
template<typename TO , typename FROM > | |
TO | TfSafeDynamic_cast (FROM *ptr) |
Safely compare C++ RTTI type structures.
Definition in file safeTypeCompare.h.
TO TfSafeDynamic_cast | ( | FROM * | ptr | ) |
Safely perform a dynamic cast.
Usage should mirror regular dynamic_cast:
Note that this function also works with TfRefPtr
and TfWeakPtr
managed objects.
Definition at line 55 of file safeTypeCompare.h.
|
inline |
Safely compare std::type_info
structures.
Returns true
if t1
and t2
denote the same type.
Definition at line 40 of file safeTypeCompare.h.