PxSerializable Class Reference
[Common]
Base class for serializable objects.
More...
#include <PxSerialFramework.h>
![Inheritance graph](classPxSerializable__inherit__graph.png)
![Collaboration graph](classPxSerializable__coll__graph.png)
Public Member Functions | |
virtual const char * | getConcreteTypeName () const |
returns string name of dynamic type. | |
template<class T > | |
T * | is () |
template<class T > | |
const T * | is () const |
PX_INLINE PxType | getConcreteType () const |
Returns concrete type of object. | |
virtual PxU32 | getOrder () const |
virtual void | collectForExport (PxCollection &c) |
Adds an object to the collection. | |
virtual bool | getFields (PxSerialStream &, PxU32) const |
virtual bool | getFields (PxSerialStream &, PxField::Enum) const |
virtual bool | getFields (PxSerialStream &) const |
virtual const PxFieldDescriptor * | getFieldDescriptor (const char *) const |
virtual PxU32 | getObjectSize () const =0 |
virtual void | exportExtraData (PxSerialStream &) |
virtual char * | importExtraData (char *address, PxU32 &) |
virtual bool | resolvePointers (PxRefResolver &, void *) |
virtual void | registerNameForExport (PxNameManager &) |
virtual void | registerPtrsForExport (PxPtrManager &manager) |
virtual void | disableInternalCaching (bool) |
PX_INLINE void | setSerialFlag (PxSerialFlag::Enum flag, bool value) |
PX_INLINE void | setSerialFlags (PxSerialFlags inFlags) |
PX_INLINE PxSerialFlags | getSerialFlags () const |
virtual | ~PxSerializable () |
Static Public Member Functions | |
static void | getMetaData (PxSerialStream &stream) |
Protected Member Functions | |
PxSerializable (PxRefResolver &v) | |
PxSerializable () | |
PX_INLINE void | setSerialType (PxType t) |
template<class T > | |
bool | typeMatch () const |
virtual bool | isKindOf (const char *superClass) const |
Private Attributes | |
PxType | mConcreteType |
PxSerialFlags | mSerialFlags |
Detailed Description
Base class for serializable objects.
- See also:
- PxRefResolver PxCollection
Constructor & Destructor Documentation
virtual PxSerializable::~PxSerializable | ( | ) | [inline, virtual] |
PxSerializable::PxSerializable | ( | PxRefResolver & | v | ) | [inline, protected] |
References PX_UNUSED.
PxSerializable::PxSerializable | ( | ) | [inline, protected] |
Member Function Documentation
virtual void PxSerializable::collectForExport | ( | PxCollection & | c | ) | [inline, virtual] |
Adds an object to the collection.
- Parameters:
-
[in] c collection to add the object to
- See also:
- PxCollection
References PxCollection::addUnique().
virtual void PxSerializable::disableInternalCaching | ( | bool | ) | [inline, virtual] |
virtual void PxSerializable::exportExtraData | ( | PxSerialStream & | ) | [inline, virtual] |
PX_INLINE PxType PxSerializable::getConcreteType | ( | ) | const [inline] |
Returns concrete type of object.
- Returns:
- PxConcreteType::Enum of serialized object
- See also:
- PxConcreteType
virtual const char* PxSerializable::getConcreteTypeName | ( | ) | const [inline, virtual] |
returns string name of dynamic type.
- Returns:
- class name of most derived type of this object.
Reimplemented in PxAggregate, PxArticulation, PxArticulationJoint, PxArticulationLink, PxConstraint, PxMaterial, PxRigidDynamic, PxRigidStatic, PxShape, PxCloth, PxClothFabric, PxD6Joint, PxDistanceJoint, PxFixedJoint, PxPrismaticJoint, PxRevoluteJoint, PxSphericalJoint, PxConvexMesh, PxHeightField, PxTriangleMesh, PxParticleFluid, and PxParticleSystem.
References NULL.
virtual const PxFieldDescriptor* PxSerializable::getFieldDescriptor | ( | const char * | ) | const [inline, virtual] |
References NULL.
virtual bool PxSerializable::getFields | ( | PxSerialStream & | ) | const [inline, virtual] |
virtual bool PxSerializable::getFields | ( | PxSerialStream & | , | |
PxField::Enum | ||||
) | const [inline, virtual] |
virtual bool PxSerializable::getFields | ( | PxSerialStream & | , | |
PxU32 | ||||
) | const [inline, virtual] |
static void PxSerializable::getMetaData | ( | PxSerialStream & | stream | ) | [static] |
Reimplemented in PxJoint.
virtual PxU32 PxSerializable::getObjectSize | ( | ) | const [pure virtual] |
virtual PxU32 PxSerializable::getOrder | ( | ) | const [inline, virtual] |
References PxSerialOrder::eDEFAULT.
PX_INLINE PxSerialFlags PxSerializable::getSerialFlags | ( | ) | const [inline] |
virtual char* PxSerializable::importExtraData | ( | char * | address, | |
PxU32 & | ||||
) | [inline, virtual] |
const T* PxSerializable::is | ( | ) | const [inline] |
References NULL.
T* PxSerializable::is | ( | ) | [inline] |
References NULL.
virtual bool PxSerializable::isKindOf | ( | const char * | superClass | ) | const [inline, protected, virtual] |
Reimplemented in PxActor, PxAggregate, PxArticulation, PxArticulationJoint, PxArticulationLink, PxConstraint, PxMaterial, PxObserver, PxRigidActor, PxRigidBody, PxRigidDynamic, PxRigidStatic, PxShape, PxCloth, PxClothFabric, PxD6Joint, PxDistanceJoint, PxFixedJoint, PxJoint, PxPrismaticJoint, PxRevoluteJoint, PxSphericalJoint, PxConvexMesh, PxHeightField, PxTriangleMesh, PxParticleBase, PxParticleFluid, and PxParticleSystem.
Referenced by PxTriangleMesh::isKindOf(), PxShape::isKindOf(), PxObserver::isKindOf(), PxMaterial::isKindOf(), PxJoint::isKindOf(), PxHeightField::isKindOf(), PxConvexMesh::isKindOf(), PxConstraint::isKindOf(), PxClothFabric::isKindOf(), PxArticulationJoint::isKindOf(), PxArticulation::isKindOf(), PxAggregate::isKindOf(), and PxActor::isKindOf().
virtual void PxSerializable::registerNameForExport | ( | PxNameManager & | ) | [inline, virtual] |
virtual void PxSerializable::registerPtrsForExport | ( | PxPtrManager & | manager | ) | [inline, virtual] |
References PxPtrManager::registerPtr().
virtual bool PxSerializable::resolvePointers | ( | PxRefResolver & | , | |
void * | ||||
) | [inline, virtual] |
PX_INLINE void PxSerializable::setSerialFlag | ( | PxSerialFlag::Enum | flag, | |
bool | value | |||
) | [inline] |
PX_INLINE void PxSerializable::setSerialFlags | ( | PxSerialFlags | inFlags | ) | [inline] |
PX_INLINE void PxSerializable::setSerialType | ( | PxType | t | ) | [inline, protected] |
bool PxSerializable::typeMatch | ( | ) | const [inline, protected] |
References PxConcreteType::eUNDEFINED.
Member Data Documentation
PxType PxSerializable::mConcreteType [private] |
PxSerialFlags PxSerializable::mSerialFlags [private] |
The documentation for this class was generated from the following file:
Copyright © 2008-2012 NVIDIA Corporation, 2701 San Tomas Expressway, Santa Clara, CA 95050 U.S.A. All rights reserved. www.nvidia.com