Panda3D
Public Member Functions | List of all members
PhysxObjectCollection< T > Class Template Reference

Public Member Functions

void add (PT(T) object)
 
T * get (unsigned int index) const
 Returns the n-th PhysxObject in the collection. More...
 
void ls () const
 
void ls (std::ostream &out, int indent_level=0) const
 
T * operator [] (unsigned int index) const
 Returns the n-th PhysxObject in the collection. More...
 
void remove (PT(T) object)
 
unsigned int size () const
 

Detailed Description

template<class T>
class PhysxObjectCollection< T >

Definition at line 25 of file physxObjectCollection.h.

Member Function Documentation

◆ get()

template<class T >
T * PhysxObjectCollection< T >::get ( unsigned int  index) const
inline

Returns the n-th PhysxObject in the collection.

The operator [] is maybe a more convenient way to access objects from the collection.

Definition at line 59 of file physxObjectCollection.I.

◆ operator []()

template<class T >
T * PhysxObjectCollection< T >::operator [] ( unsigned int  index) const
inline

Returns the n-th PhysxObject in the collection.

This is the same as the get() method.

Definition at line 71 of file physxObjectCollection.I.


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