RavEngine
Loading...
Searching...
No Matches
physx::PxBase Class Referenceabstract

Base class for objects that can be members of a PxCollection. More...

#include <PxBase.h>

Inheritance diagram for physx::PxBase:
[legend]
Collaboration diagram for physx::PxBase:
[legend]

Public Member Functions

virtual void release ()=0
 Releases the PxBase instance, please check documentation of release in derived class.
 
virtual const char * getConcreteTypeName () const =0
 Returns string name of dynamic type.
 
template<class T >
T * is ()
 
template<class T >
const T * is () const
 
PX_FORCE_INLINE PxType getConcreteType () const
 Returns concrete type of object.
 
PX_FORCE_INLINE void setBaseFlag (PxBaseFlag::Enum flag, bool value)
 Set PxBaseFlag

 
PX_FORCE_INLINE void setBaseFlags (PxBaseFlags inFlags)
 Set PxBaseFlags

 
PX_FORCE_INLINE PxBaseFlags getBaseFlags () const
 Returns PxBaseFlags.
 
virtual bool isReleasable () const
 Whether the object is subordinate.
 

Protected Member Functions

PX_INLINE PxBase (PxType concreteType, PxBaseFlags baseFlags)
 Constructor setting concrete type and base flags.
 
PX_INLINE PxBase (PxBaseFlags baseFlags)
 Deserialization constructor setting base flags.
 
virtual ~PxBase ()
 Destructor.
 
virtual bool isKindOf (const char *superClass) const
 Returns whether a given type name matches with the type of this instance.
 
template<class T >
bool typeMatch () const
 

Protected Attributes

PxType mConcreteType
 
PxBaseFlags mBaseFlags
 
PxU32 mBuiltInRefCount
 

Friends

void getBinaryMetaData_PxBase (PxOutputStream &stream)
 

Detailed Description

Base class for objects that can be members of a PxCollection.

All PxBase sub-classes can be serialized.

See also
PxCollection

Member Function Documentation

◆ getBaseFlags()

PX_FORCE_INLINE PxBaseFlags physx::PxBase::getBaseFlags ( ) const
inline

Returns PxBaseFlags.

Returns
PxBaseFlags
See also
PxBaseFlags

◆ getConcreteType()

PX_FORCE_INLINE PxType physx::PxBase::getConcreteType ( ) const
inline

Returns concrete type of object.

Returns
PxConcreteType::Enum of serialized object
See also
PxConcreteType

◆ getConcreteTypeName()

◆ isKindOf()

◆ isReleasable()

virtual bool physx::PxBase::isReleasable ( ) const
inlinevirtual

Whether the object is subordinate.

A class is subordinate, if it can only be instantiated in the context of another class.

Returns
Whether the class is subordinate
See also
PxSerialization::isSerializable

◆ release()

◆ setBaseFlag()

PX_FORCE_INLINE void physx::PxBase::setBaseFlag ( PxBaseFlag::Enum  flag,
bool  value 
)
inline

Set PxBaseFlag

Parameters
[in]flagThe flag to be set
[in]valueThe flags new value

◆ setBaseFlags()

PX_FORCE_INLINE void physx::PxBase::setBaseFlags ( PxBaseFlags  inFlags)
inline

Set PxBaseFlags

Parameters
[in]inFlagsThe flags to be set
See also
PxBaseFlags

The documentation for this class was generated from the following file: