24 return _objects.size();
36 _objects.push_back(
object);
50 it = find(_objects.begin(), _objects.end(), object);
51 if (it != _objects.end()) {
56 physx_cat.warning() <<
"object not found in collection" << endl;
69 get(
unsigned int index)
const {
71 nassertr(index < _objects.size(), NULL);
72 return _objects[index];
85 nassertr(index < _objects.size(), NULL);
86 return _objects[index];
108 ls(ostream &out,
int indent_level)
const {
110 for (
unsigned int i=0; i < size(); i++) {
111 get(i)->ls(out, indent_level + 2);
T * operator[](unsigned int index) const
Returns the n-th PhysxObject in the collection.
This is our own Panda specialization on the default STL vector.
T * get(unsigned int index) const
Returns the n-th PhysxObject in the collection.