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

◆ add()

template<class T >
void PhysxObjectCollection< T >::add ( PT(T)  object)
inline

Definition at line 28 of file physxObjectCollection.I.

◆ 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 58 of file physxObjectCollection.I.

◆ ls() [1/2]

template<class T >
void PhysxObjectCollection< T >::ls
inline

Definition at line 81 of file physxObjectCollection.I.

◆ ls() [2/2]

template<class T >
void PhysxObjectCollection< T >::ls ( std::ostream &  out,
int  indent_level = 0 
) const
inline

Definition at line 91 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 70 of file physxObjectCollection.I.

◆ remove()

template<class T >
void PhysxObjectCollection< T >::remove ( PT(T)  object)
inline

Definition at line 38 of file physxObjectCollection.I.

◆ size()

template<class T >
unsigned int PhysxObjectCollection< T >::size
inline

Definition at line 18 of file physxObjectCollection.I.


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