vrpn 07.35
Virtual Reality Peripheral Network
Loading...
Searching...
No Matches
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.
 
 ~vrpn_MainloopContainer ()
 Destructor: invokes clear()
 
void clear ()
 Clear internal structure holding objects, deleting them in reverse order of their addition.
 
vrpn_MainloopObjectadd (vrpn_MainloopObject *o)
 Add an object wrapped by vrpn_MainloopObject. Return NULL if the object has a problem (indicated by broken()).
 
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.
 
void mainloop ()
 Runs mainloop on all contained objects, in the order that they were added.
 

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::vrpn_MainloopContainer ( )
inline

Constructor.

Definition at line 39 of file vrpn_MainloopContainer.h.

◆ ~vrpn_MainloopContainer()

vrpn_MainloopContainer::~vrpn_MainloopContainer ( )
inline

Destructor: invokes clear()

Definition at line 73 of file vrpn_MainloopContainer.h.

References clear().

Here is the call graph for this function:

Member Function Documentation

◆ add() [1/2]

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

Here is the call graph for this function:

◆ add() [2/2]

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

Here is the call graph for this function:

◆ clear()

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

◆ mainloop()

void vrpn_MainloopContainer::mainloop ( )
inline

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

Definition at line 114 of file vrpn_MainloopContainer.h.


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