SLAMflex SE  0.1.0
SLAMflex provides detection and tracking of dominant planes for smartphone devices. This plane can then be used to show AR content relative to the plane orientation. The detection of plane is performed in the field of view of the smartphone camera. In subsequent frames it is tracked. The interface returns the plane position and orientation.
Static Public Attributes | List of all members
TooN::IsField< C > Struct Template Reference

#include <TooN.h>

Static Public Attributes

static const int value = numeric_limits<C>::is_specialized
 Is C a field? More...
 

Detailed Description

template<class C>
struct TooN::IsField< C >

Is a number a field? ie, +, -, *, / defined. Specialize this to make TooN work properly with new types. The primary reason for this is to allow SFINAE to work properly. This is required if there are the following two functions:

Vector<> * X //Generic type X
Vector<> * DiagonalMatrix<>

If one of the functions is a substitution failure, then it will be ignored, allowing the functions to coexist happily. However, not all types of failure are substitution failures. TooN's type deduction happens when determining the return type of the function. This is too early, so the wrong kind of error in the return type deduction causes an error, rather than a substitution failure. The IsField mechanism makes it the right kind of error, thereby allowing a substitution failuer to occur.

Definition at line 101 of file TooN.h.

Member Data Documentation

template<class C>
const int TooN::IsField< C >::value = numeric_limits<C>::is_specialized
static

Is C a field?

Definition at line 103 of file TooN.h.


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