OSVR Framework (Internal Development Docs)  0.6-1962-g59773924
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Macros Modules Pages
ReportTraits.h File Reference

Header containing simple traits definitions. More...

Go to the source code of this file.

Classes

struct  osvr::common::traits::CallbackType< T >
 Metafunction/trait taking a ReportType and returning the associated CallbackType. More...
 
struct  osvr::common::traits::ReportFromCallback< T >
 Metafunction/trait taking a CallbackType and returning the associated ReportType. More...
 
struct  osvr::common::traits::StateType< T >
 Metafunction/trait taking a ReportType and returning the associated StateType. More...
 

Namespaces

 osvr
 <
 
 osvr::common
 Handles spatial transformations.
 
 osvr::common::traits
 Type traits and metaprogramming supports related to specially-handled reports.
 

Macros

#define OSVR_X(TYPE)
 

Typedefs

template<typename T >
using osvr::common::traits::CallbackFromReport_t = typepack::t_< CallbackType< T >>
 Alias for the CallbackType associated with a given ReportType.
 
template<typename T >
using osvr::common::traits::StateFromReport_t = typepack::t_< StateType< T >>
 Alias for the StateType associated with a given ReportType.
 
template<typename T >
using osvr::common::traits::ReportFromCallback_t = typepack::t_< ReportFromCallback< T >>
 Alias for the ReportType associated with a given CallbackType.
 

Detailed Description

Header containing simple traits definitions.

While this file contains all of the main traits generated by macros, it is suggested that you include the specific header file for the trait you want to use, in case the structure changes and to make the include list more semantic.

Date
2014
Author
Sensics, Inc. http://sensics.com/osvr

Definition in file ReportTraits.h.

Macro Definition Documentation

#define OSVR_X (   TYPE)
Value:
template <> struct CallbackType<OSVR_##TYPE##Report> { \
typedef OSVR_##TYPE##Callback type; \
}; \
template <> struct ReportFromCallback<OSVR_##TYPE##Callback> { \
typedef OSVR_##TYPE##Report type; \
}; \
template <> struct StateType<OSVR_##TYPE##Report> { \
typedef OSVR_##TYPE##State type; \
};
typename FilterType::State StateType
Given a filter type, get the state type.

Definition at line 62 of file ReportTraits.h.