vrpn 07.35
Virtual Reality Peripheral Network
Loading...
Searching...
No Matches
detail::TypedMainloopObject< T * > Class Template Reference

Template class for holding generic VRPN objects with type information. More...

#include <vrpn_MainloopObject.h>

Inheritance diagram for detail::TypedMainloopObject< T * >:
Collaboration diagram for detail::TypedMainloopObject< T * >:

Public Member Functions

 TypedMainloopObject (T *o, bool do_delete=true)
 
virtual ~TypedMainloopObject ()
 
virtual void mainloop ()
 The mainloop function: the primary thing we look for in a VRPN object.
 
virtual bool broken ()
 Checks the connectionPtr() for the VRPN object to make sure it is not NULL.
 
- Public Member Functions inherited from vrpn_MainloopObject
virtual ~vrpn_MainloopObject ()
 Destructor.
 

Protected Member Functions

virtual void * _returnContained () const
 Internal function to return a typeless pointer of the contained object, for comparison purposes.
 
- Protected Member Functions inherited from vrpn_MainloopObject
 vrpn_MainloopObject ()
 

Protected Attributes

T * _instance
 
bool _do_delete
 

Additional Inherited Members

- Static Public Member Functions inherited from vrpn_MainloopObject
template<class T >
static vrpn_MainloopObjectwrap (T o)
 Templated wrapping function.
 
template<class T >
static vrpn_MainloopObjectwrap (T o, bool owner)
 Templated wrapping function that can encourage the wrapper to not destroy the wrapped object at destruction.
 

Detailed Description

template<class T>
class detail::TypedMainloopObject< T * >

Template class for holding generic VRPN objects with type information.

Definition at line 105 of file vrpn_MainloopObject.h.

Constructor & Destructor Documentation

◆ TypedMainloopObject()

template<class T >
detail::TypedMainloopObject< T * >::TypedMainloopObject ( T * o,
bool do_delete = true )
inline

Definition at line 107 of file vrpn_MainloopObject.h.

References VRPN_MAINLOOPOBJECT_MSG.

◆ ~TypedMainloopObject()

template<class T >
virtual detail::TypedMainloopObject< T * >::~TypedMainloopObject ( )
inlinevirtual

Definition at line 117 of file vrpn_MainloopObject.h.

References VRPN_MAINLOOPOBJECT_MSG.

Member Function Documentation

◆ _returnContained()

template<class T >
virtual void * detail::TypedMainloopObject< T * >::_returnContained ( ) const
inlineprotectedvirtual

Internal function to return a typeless pointer of the contained object, for comparison purposes.

Implements vrpn_MainloopObject.

Definition at line 140 of file vrpn_MainloopObject.h.

◆ broken()

template<class T >
virtual bool detail::TypedMainloopObject< T * >::broken ( )
inlinevirtual

Checks the connectionPtr() for the VRPN object to make sure it is not NULL.

Implements vrpn_MainloopObject.

Definition at line 137 of file vrpn_MainloopObject.h.

◆ mainloop()

template<class T >
virtual void detail::TypedMainloopObject< T * >::mainloop ( )
inlinevirtual

The mainloop function: the primary thing we look for in a VRPN object.

Implements vrpn_MainloopObject.

Definition at line 135 of file vrpn_MainloopObject.h.

Member Data Documentation

◆ _do_delete

template<class T >
bool detail::TypedMainloopObject< T * >::_do_delete
protected

Definition at line 142 of file vrpn_MainloopObject.h.

◆ _instance

template<class T >
T* detail::TypedMainloopObject< T * >::_instance
protected

Definition at line 141 of file vrpn_MainloopObject.h.


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