OSVR-Core
Public Member Functions | List of all members
osvr::client::RemoteHandlerInternals Class Reference

Class holding shared implementation between the various handlers. More...

#include <RemoteHandlerInternals.h>

Public Member Functions

 RemoteHandlerInternals (common::InterfaceList &ifaces)
 Construct with a reference to an interface list.
 
RemoteHandlerInternalsoperator= (RemoteHandlerInternals &)=delete
 
template<typename ReportType >
void setStateAndTriggerCallbacks (const OSVR_TimeValue &timestamp, ReportType const &report)
 Set state and call callbacks for a report type.
 
template<typename F >
void forEachInterface (F &&f)
 Do something with every client interface object, if the above options don't suit your needs. More...
 

Detailed Description

Class holding shared implementation between the various handlers.

Primarily used to avoid the need for loops and move the point of transfer for the reports out of the individual handlers to have fewer places to change if (when) that implementation detail is altered.

Member Function Documentation

§ forEachInterface()

template<typename F >
void osvr::client::RemoteHandlerInternals::forEachInterface ( F &&  f)
inline

Do something with every client interface object, if the above options don't suit your needs.

Todo:
is this needed? it increments a shared_ptr reference count which is expensive.

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