vrpn  07.33
Virtual Reality Peripheral Network
vrpn_MainloopContainer Class Reference

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_MainloopObjectadd (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 >
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...
 

Detailed Description

A container that holds and owns one or more VRPN objects,.

Definition at line 36 of file vrpn_MainloopContainer.h.

Constructor & Destructor Documentation

vrpn_MainloopContainer::vrpn_MainloopContainer ( )
inline

Constructor.

Definition at line 39 of file vrpn_MainloopContainer.h.

References add(), clear(), and ~vrpn_MainloopContainer().

Here is the call graph for this function:

vrpn_MainloopContainer::~vrpn_MainloopContainer ( )
inline

Destructor: invokes clear()

Definition at line 73 of file vrpn_MainloopContainer.h.

References clear().

Referenced by vrpn_MainloopContainer().

Here is the call graph for this function:

Member Function Documentation

vrpn_MainloopObject * vrpn_MainloopContainer::add ( vrpn_MainloopObject o)
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(), and vrpn_MainloopContainer().

Here is the call graph for this function:

template<class T >
T vrpn_MainloopContainer::add ( o)
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(), mainloop(), and vrpn_MainloopObject::wrap().

Here is the call graph for this function:

void vrpn_MainloopContainer::clear ( void  )
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(), and ~vrpn_MainloopContainer().

void vrpn_MainloopContainer::mainloop ( void  )
inline

Runs mainloop on all contained objects, in the order that they were added.

Definition at line 109 of file vrpn_MainloopContainer.h.

Referenced by add().


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