Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
vpdt_num_components_accessor< mixture_type, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type > Class Template Reference

A functor to return the number of components in a mixture. More...

#include <vpdt_mixture_accessors.h>

Classes

struct  rebind
 rebind this functor to another distribution type. More...
 

Public Types

typedef unsigned int return_type
 the functor return type. More...
 
typedef mixture_type distribution_type
 the distribution operated on by the functor. More...
 

Public Member Functions

bool operator() (const mixture_type &mix, return_type &retval) const
 The main function. More...
 

Static Public Attributes

static const bool valid_functor = true
 is this functor valid for its distribution type. More...
 

Detailed Description

template<class mixture_type>
class vpdt_num_components_accessor< mixture_type, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >

A functor to return the number of components in a mixture.

Definition at line 48 of file vpdt_mixture_accessors.h.

Member Typedef Documentation

◆ distribution_type

template<class mixture_type >
typedef mixture_type vpdt_num_components_accessor< mixture_type, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::distribution_type

the distribution operated on by the functor.

Definition at line 55 of file vpdt_mixture_accessors.h.

◆ return_type

template<class mixture_type >
typedef unsigned int vpdt_num_components_accessor< mixture_type, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::return_type

the functor return type.

Definition at line 53 of file vpdt_mixture_accessors.h.

Member Function Documentation

◆ operator()()

template<class mixture_type >
bool vpdt_num_components_accessor< mixture_type, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::operator() ( const mixture_type &  mix,
return_type retval 
) const
inline

The main function.

Definition at line 66 of file vpdt_mixture_accessors.h.

Member Data Documentation

◆ valid_functor

template<class mixture_type >
const bool vpdt_num_components_accessor< mixture_type, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::valid_functor = true
static

is this functor valid for its distribution type.

Definition at line 57 of file vpdt_mixture_accessors.h.


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