29#ifndef PX_COLLECTION_H
30#define PX_COLLECTION_H
32#include "common/PxSerialFramework.h"
203 virtual PxU32
getObjects(
PxBase** userBuffer, PxU32 bufferSize, PxU32 startIndex=0)
const = 0;
Base class for objects that can be members of a PxCollection.
Definition PxBase.h:73
Collection class for serialization.
Definition PxCollection.h:104
virtual void addId(PxBase &object, PxSerialObjectId id)=0
Adds an id to a member PxBase object.
virtual PxBase & getObject(PxU32 index) const =0
Gets the PxBase object of this collection given its index.
virtual PxU32 getNbIds() const =0
Gets number of PxSerialObjectId names in this collection.
virtual PxSerialObjectId getId(const PxBase &object) const =0
Gets the PxSerialObjectId name of a PxBase object within the collection.
virtual void remove(PxCollection &collection)=0
Removes all PxBase objects of collection from this collection.
virtual PxBase * find(PxSerialObjectId id) const =0
Looks for a PxBase object given a PxSerialObjectId value.
virtual void removeId(PxSerialObjectId id)=0
Removes id from a contained PxBase object.
virtual PxU32 getIds(PxSerialObjectId *userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0
Copies member PxSerialObjectId values to a user specified buffer.
virtual PxU32 getObjects(PxBase **userBuffer, PxU32 bufferSize, PxU32 startIndex=0) const =0
Copies member PxBase pointers to a user specified buffer.
virtual PxU32 getNbObjects() const =0
Gets number of PxBase objects in this collection.
virtual bool contains(PxBase &object) const =0
Returns whether the collection contains a certain PxBase object.
virtual void add(PxCollection &collection)=0
Adds all PxBase objects and their ids of collection to this collection.
virtual void remove(PxBase &object)=0
Removes a PxBase member object from the collection.
virtual void release()=0
Deletes a collection object.
virtual void add(PxBase &object, PxSerialObjectId id=PX_SERIAL_OBJECT_ID_INVALID)=0
Adds a PxBase object to the collection.
PX_C_EXPORT PX_PHYSX_COMMON_API physx::PxCollection *PX_CALL_CONV PxCreateCollection()
Creates a collection object.
Definition CmCollection.cpp:212
#define PX_CALL_CONV
Definition PxPreprocessor.h:299
Sorts an array of objects in ascending order, assuming that the predicate implements the < operator:
Definition PxBoxController.h:39
PxU64 PxSerialObjectId
ID type for PxBase objects in a PxCollection.
Definition PxSerialFramework.h:61