vrpn
07.33
Virtual Reality Peripheral Network
|
A container that holds and owns one or more VRPN objects,. More...
#include <vrpn_MainloopContainer.h>
Public Member Functions | |
vrpn_MainloopContainer () | |
Constructor. More... | |
~vrpn_MainloopContainer () | |
Destructor: invokes clear() More... | |
void | clear () |
Clear internal structure holding objects, deleting them in reverse order of their addition. More... | |
vrpn_MainloopObject * | add (vrpn_MainloopObject *o) |
Add an object wrapped by vrpn_MainloopObject. Return NULL if the object has a problem (indicated by broken()). More... | |
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. More... | |
void | mainloop () |
Runs mainloop on all contained objects, in the order that they were added. More... | |
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 |
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 |
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 |
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 109 of file vrpn_MainloopContainer.h.