OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
osvr::common::traits::ReportStateGetter< ReportType > Struct Template Reference

Helper traits struct for reportState(), to access the state member of the various report types. More...

#include <osvr/Common/ReportState.h>

Static Public Member Functions

static StateType< ReportType >
::type const & 
apply (ReportType const &r)
 
static StateType< ReportType >
::type 
apply (ReportType &r)
 

Detailed Description

template<typename ReportType>
struct osvr::common::traits::ReportStateGetter< ReportType >

Helper traits struct for reportState(), to access the state member of the various report types.

Default implementation is fine for any reports where the state member of the report struct is called simply state - only explicitly specialize if that isn't the case.

Definition at line 48 of file ReportState.h.


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