00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015 #ifndef PHYSXOBJECTCOLLECTION_H
00016 #define PHYSXOBJECTCOLLECTION_H
00017
00018 #include "pandabase.h"
00019
00020 #include "config_physx.h"
00021
00022
00023
00024
00025
00026 template <class T>
00027 class EXPCL_PANDAPHYSX PhysxObjectCollection {
00028
00029 public:
00030 INLINE unsigned int size() const;
00031 INLINE void add(PT(T) object);
00032 INLINE void remove(PT(T) object);
00033 INLINE T *get(unsigned int index) const;
00034 INLINE T *operator [] (unsigned int index) const;
00035
00036 INLINE void ls() const;
00037 INLINE void ls(ostream &out, int indent_level=0) const;
00038
00039 private:
00040 pvector<PT(T)> _objects;
00041 };
00042
00043 #include "physxObjectCollection.I"
00044
00045 #endif // PHYSXOBJECTCOLLECTION_H