14 #ifndef PX_PHYSICS_PX_BASE
15 #define PX_PHYSICS_PX_BASE
38 eOWNS_MEMORY = (1<<0),
39 eIS_RELEASABLE = (1<<1)
65 virtual void release() = 0;
81 template<
class T> T*
is() {
return typeMatch<T>() ? static_cast<T*>(
this) :
NULL; }
91 template<
class T>
const T*
is()
const {
return typeMatch<T>() ? static_cast<const T*>(
this) :
NULL; }
143 : mConcreteType(concreteType), mBaseFlags(baseFlags) {}
158 virtual bool isKindOf(
const char* superClass)
const {
return !strcmp(superClass,
"PxBase"); }
160 template<
class T>
bool typeMatch()
const