A container that holds and owns one or more VRPN objects,. More...
#include <vrpn_MainloopContainer.h>
Public Member Functions | |
| vrpn_MainloopContainer () | |
| Constructor. | |
| ~vrpn_MainloopContainer () | |
| Destructor: invokes clear() | |
| void | clear () |
| Clear internal structure holding objects, deleting them in reverse order of their addition. | |
| vrpn_MainloopObject * | add (vrpn_MainloopObject *o) |
| Add an object wrapped by vrpn_MainloopObject. Return NULL if the object has a problem (indicated by broken()). | |
| template<class T> | |
| T | add (T o) |
| Template method to automatically wrap objects with vrpn_MainloopObject before adding them. Return NULL if there is a problem with the object add. | |
| void | mainloop () |
| Runs mainloop on all contained objects, in the order that they were added. | |
A container that holds and owns one or more VRPN objects,.
Definition at line 36 of file vrpn_MainloopContainer.h.
|
inline |
Constructor.
Definition at line 39 of file vrpn_MainloopContainer.h.
|
inline |
Destructor: invokes clear()
Definition at line 73 of file vrpn_MainloopContainer.h.
References clear().

|
inline |
Template method to automatically wrap objects with vrpn_MainloopObject before adding them. Return NULL if there is a problem with the object add.
Definition at line 55 of file vrpn_MainloopContainer.h.
References add(), and vrpn_MainloopObject::wrap().

|
inline |
Add an object wrapped by vrpn_MainloopObject. Return NULL if the object has a problem (indicated by broken()).
Definition at line 75 of file vrpn_MainloopContainer.h.
References vrpn_MainloopObject::broken().
Referenced by add().

|
inline |
Clear internal structure holding objects, deleting them in reverse order of their addition.
Delete in reverse order
Definition at line 96 of file vrpn_MainloopContainer.h.
Referenced by ~vrpn_MainloopContainer().
|
inline |
Runs mainloop on all contained objects, in the order that they were added.
Definition at line 114 of file vrpn_MainloopContainer.h.