Classes | Public Types | Public Member Functions | Static Public Attributes
vpdt_weight_accessor< mixture_type, Disambiguate > Class Template Reference

A functor to return the weight of the component with given index. More...

#include <vpdt_mixture_accessors.h>

List of all members.

Classes

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

Public Types

typedef vpdt_dist_traits
< mixture_type >::scalar_type 
return_type
 the functor return type.
typedef mixture_type distribution_type
 the distribution operated on by the functor.

Public Member Functions

 vpdt_weight_accessor (unsigned int index=0)
 Constructor.
bool operator() (const mixture_type &mix, return_type &retval) const
 The main function.

Static Public Attributes

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

Detailed Description

template<class mixture_type, class Disambiguate = void>
class vpdt_weight_accessor< mixture_type, Disambiguate >

A functor to return the weight of the component with given index.

Definition at line 76 of file vpdt_mixture_accessors.h.


Member Typedef Documentation

template<class mixture_type , class Disambiguate = void>
typedef mixture_type vpdt_weight_accessor< mixture_type, Disambiguate >::distribution_type

the distribution operated on by the functor.

Definition at line 82 of file vpdt_mixture_accessors.h.

template<class mixture_type , class Disambiguate = void>
typedef vpdt_dist_traits<mixture_type>::scalar_type vpdt_weight_accessor< mixture_type, Disambiguate >::return_type

the functor return type.

Definition at line 80 of file vpdt_mixture_accessors.h.


Constructor & Destructor Documentation

template<class mixture_type , class Disambiguate = void>
vpdt_weight_accessor< mixture_type, Disambiguate >::vpdt_weight_accessor ( unsigned int  index = 0) [inline]

Constructor.

Definition at line 93 of file vpdt_mixture_accessors.h.


Member Function Documentation

template<class mixture_type , class Disambiguate = void>
bool vpdt_weight_accessor< mixture_type, Disambiguate >::operator() ( const mixture_type &  mix,
return_type retval 
) const [inline]

The main function.

Definition at line 96 of file vpdt_mixture_accessors.h.


Member Data Documentation

template<class mixture_type , class Disambiguate = void>
const bool vpdt_weight_accessor< mixture_type, Disambiguate >::valid_functor = false [static]

is this functor valid for its distribution type.

Definition at line 84 of file vpdt_mixture_accessors.h.


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