A specialization to make the weight accessor work as a mixture accessor. More...
#include <vpdt_mixture_accessors.h>
Classes | |
struct | rebind |
rebind this functor to another distribution type. More... | |
Public Types | |
typedef vpdt_weight_accessor < typename mixture_type::component_type > | accessor_type |
the accessor type. | |
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_mixture_accessor (unsigned int index=0) | |
Constructor. | |
vpdt_mixture_accessor (const accessor_type &a, unsigned int index=0) | |
Constructor. | |
bool | operator() (const mixture_type &mix, return_type &retval) const |
The main function. | |
Public Attributes | |
unsigned int | idx |
The component index. | |
Static Public Attributes | |
static const bool | valid_functor = true |
is this functor valid for its distribution type. |
A specialization to make the weight accessor work as a mixture accessor.
Definition at line 217 of file vpdt_mixture_accessors.h.
typedef vpdt_weight_accessor<typename mixture_type::component_type> vpdt_mixture_accessor< mixture_type, vpdt_weight_accessor< typename mixture_type::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::accessor_type |
the accessor type.
Definition at line 223 of file vpdt_mixture_accessors.h.
typedef mixture_type vpdt_mixture_accessor< mixture_type, vpdt_weight_accessor< typename mixture_type::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::distribution_type |
the distribution operated on by the functor.
Definition at line 227 of file vpdt_mixture_accessors.h.
typedef vpdt_dist_traits<mixture_type>::scalar_type vpdt_mixture_accessor< mixture_type, vpdt_weight_accessor< typename mixture_type::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::return_type |
the functor return type.
Definition at line 225 of file vpdt_mixture_accessors.h.
vpdt_mixture_accessor< mixture_type, vpdt_weight_accessor< typename mixture_type::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::vpdt_mixture_accessor | ( | unsigned int | index = 0 | ) | [inline] |
Constructor.
Definition at line 238 of file vpdt_mixture_accessors.h.
vpdt_mixture_accessor< mixture_type, vpdt_weight_accessor< typename mixture_type::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::vpdt_mixture_accessor | ( | const accessor_type & | a, |
unsigned int | index = 0 |
||
) | [inline] |
Constructor.
Definition at line 242 of file vpdt_mixture_accessors.h.
bool vpdt_mixture_accessor< mixture_type, vpdt_weight_accessor< typename mixture_type::component_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 246 of file vpdt_mixture_accessors.h.
unsigned int vpdt_mixture_accessor< mixture_type, vpdt_weight_accessor< typename mixture_type::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::idx |
The component index.
Definition at line 256 of file vpdt_mixture_accessors.h.
const bool vpdt_mixture_accessor< mixture_type, vpdt_weight_accessor< typename mixture_type::component_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 229 of file vpdt_mixture_accessors.h.