Public Types | Public Member Functions | Public Attributes | Static Public Attributes | List of all members
vpdt_mixture_any_detector< mixture_type, detector_type > Class Template Reference

Apply a detector to each component to see if ANY match. More...

#include <vpdt_mixture_detector.h>

Public Types

typedef bool return_type
 the functor return type. More...
 
typedef mixture_type distribution_type
 the distribution operated on by the detector. More...
 
typedef mixture_type::field_type F
 the data type to represent a point in the field. More...
 
typedef vpdt_field_traits< F >::scalar_type T
 define the scalar type (normally specified by template parameter T). More...
 

Public Member Functions

 vpdt_mixture_any_detector (const detector_type &d)
 Constructor. More...
 
bool operator() (const mixture_type &mix, const F &sample, bool &result) const
 The main function. More...
 

Public Attributes

detector_type detect
 The detector to apply to components. More...
 

Static Public Attributes

static const unsigned int return_dim = 1
 the functor return type. More...
 

Detailed Description

template<class mixture_type, class detector_type>
class vpdt_mixture_any_detector< mixture_type, detector_type >

Apply a detector to each component to see if ANY match.

Return true if any component matches

Definition at line 20 of file vpdt_mixture_detector.h.

Member Typedef Documentation

◆ distribution_type

template<class mixture_type , class detector_type >
typedef mixture_type vpdt_mixture_any_detector< mixture_type, detector_type >::distribution_type

the distribution operated on by the detector.

Definition at line 28 of file vpdt_mixture_detector.h.

◆ F

template<class mixture_type , class detector_type >
typedef mixture_type::field_type vpdt_mixture_any_detector< mixture_type, detector_type >::F

the data type to represent a point in the field.

Definition at line 31 of file vpdt_mixture_detector.h.

◆ return_type

template<class mixture_type , class detector_type >
typedef bool vpdt_mixture_any_detector< mixture_type, detector_type >::return_type

the functor return type.

Definition at line 24 of file vpdt_mixture_detector.h.

◆ T

template<class mixture_type , class detector_type >
typedef vpdt_field_traits<F>::scalar_type vpdt_mixture_any_detector< mixture_type, detector_type >::T

define the scalar type (normally specified by template parameter T).

Definition at line 33 of file vpdt_mixture_detector.h.

Constructor & Destructor Documentation

◆ vpdt_mixture_any_detector()

template<class mixture_type , class detector_type >
vpdt_mixture_any_detector< mixture_type, detector_type >::vpdt_mixture_any_detector ( const detector_type &  d)
inline

Constructor.

Definition at line 36 of file vpdt_mixture_detector.h.

Member Function Documentation

◆ operator()()

template<class mixture_type , class detector_type >
bool vpdt_mixture_any_detector< mixture_type, detector_type >::operator() ( const mixture_type &  mix,
const F sample,
bool &  result 
) const
inline

The main function.

Definition at line 39 of file vpdt_mixture_detector.h.

Member Data Documentation

◆ detect

template<class mixture_type , class detector_type >
detector_type vpdt_mixture_any_detector< mixture_type, detector_type >::detect

The detector to apply to components.

Definition at line 52 of file vpdt_mixture_detector.h.

◆ return_dim

template<class mixture_type , class detector_type >
const unsigned int vpdt_mixture_any_detector< mixture_type, detector_type >::return_dim = 1
static

the functor return type.

Definition at line 26 of file vpdt_mixture_detector.h.


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