OSVR-Core
Static Public Member Functions | List of all members
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 <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.


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