Tapkee
methods_traits.hpp File Reference

Go to the source code of this file.

Classes

struct  MethodTraits< method >
 Traits used to obtain information about dimension reduction methods compile-time. More...

Namespaces

namespace  tapkee

Defines

#define METHOD_TRAIT(X, kernel_needed, distance_needed, features_needed)
#define METHOD_THAT_NEEDS_ONLY_KERNEL_IS(X)   METHOD_TRAIT(X,true,false,false)
#define METHOD_THAT_NEEDS_ONLY_DISTANCE_IS(X)   METHOD_TRAIT(X,false,true,false)
#define METHOD_THAT_NEEDS_KERNEL_AND_FEATURES_IS(X)   METHOD_TRAIT(X,true,false,true)
#define METHOD_THAT_NEEDS_DISTANCE_AND_FEATURES_IS(X)   METHOD_TRAIT(X,false,true,true)
#define METHOD_THAT_NEEDS_ONLY_FEATURES_IS(X)   METHOD_TRAIT(X,false,false,true)
#define METHOD_THAT_NEEDS_NOTHING_IS(X)   METHOD_TRAIT(X,false,false,false)

Define Documentation

#define METHOD_THAT_NEEDS_DISTANCE_AND_FEATURES_IS (   X)    METHOD_TRAIT(X,false,true,true)

Definition at line 29 of file methods_traits.hpp.

#define METHOD_THAT_NEEDS_KERNEL_AND_FEATURES_IS (   X)    METHOD_TRAIT(X,true,false,true)

Definition at line 28 of file methods_traits.hpp.

#define METHOD_THAT_NEEDS_NOTHING_IS (   X)    METHOD_TRAIT(X,false,false,false)

Definition at line 31 of file methods_traits.hpp.

#define METHOD_THAT_NEEDS_ONLY_DISTANCE_IS (   X)    METHOD_TRAIT(X,false,true,false)

Definition at line 27 of file methods_traits.hpp.

#define METHOD_THAT_NEEDS_ONLY_FEATURES_IS (   X)    METHOD_TRAIT(X,false,false,true)

Definition at line 30 of file methods_traits.hpp.

#define METHOD_THAT_NEEDS_ONLY_KERNEL_IS (   X)    METHOD_TRAIT(X,true,false,false)

Definition at line 26 of file methods_traits.hpp.

#define METHOD_TRAIT (   X,
  kernel_needed,
  distance_needed,
  features_needed 
)
Value:
template <> const bool MethodTraits<X>::needs_kernel = kernel_needed;           \
template <> const bool MethodTraits<X>::needs_distance = distance_needed;       \
template <> const bool MethodTraits<X>::needs_features = features_needed        \

Definition at line 21 of file methods_traits.hpp.

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Defines