vrpn_MainloopObject * add(vrpn_MainloopObject *o)
Add an object wrapped by vrpn_MainloopObject. Return NULL if the object has a problem (indicated by b...
T add(T o)
Template method to automatically wrap objects with vrpn_MainloopObject before adding them....
void mainloop()
Runs mainloop on all contained objects, in the order that they were added.
void clear()
Clear internal structure holding objects, deleting them in reverse order of their addition.
~vrpn_MainloopContainer()
Destructor: invokes clear()
An interface for all VRPN objects that have a "mainloop" method. Not instantiated directly: use vrpn_...
virtual bool broken()=0
Checks the connectionPtr() for the VRPN object to make sure it is not NULL.
static vrpn_MainloopObject * wrap(T o)
Templated wrapping function.