OSVR-Core
Classes | Namespaces | Macros | Typedefs
ReportTraits.h File Reference

Header containing simple traits definitions. More...

#include <osvr/Util/ClientCallbackTypesC.h>
#include <osvr/TypePack/T.h>
#include <osvr/Util/ReportTypesX.h>

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
 The main namespace for all C++ elements of the framework, internal and external.
 
 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

Macro Definition Documentation

§ OSVR_X

#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: FlexibleKalmanBase.h:91