#include <bsta_basic_functors.h>
This is needed because weight is not a property of the mixture component, it is a property on the mixture itself that is defined for each component.
Definition at line 396 of file bsta_basic_functors.h.
Public Types | |
| typedef bsta_weight_functor< typename mixture_::component_type > | accessor_type |
| the accessor type. | |
| typedef vpdt_dist_traits< mixture_ >::scalar_type | return_type |
| the functor return type. | |
| typedef mixture_ | 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_ &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. | |
Classes | |
| struct | rebind |
| rebind this functor to another distribution type. More... | |
| typedef bsta_weight_functor<typename mixture_::component_type> vpdt_mixture_accessor< mixture_, bsta_weight_functor< typename mixture_::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::accessor_type |
| typedef vpdt_dist_traits<mixture_>::scalar_type vpdt_mixture_accessor< mixture_, bsta_weight_functor< typename mixture_::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::return_type |
| typedef mixture_ vpdt_mixture_accessor< mixture_, bsta_weight_functor< typename mixture_::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::distribution_type |
| vpdt_mixture_accessor< mixture_, bsta_weight_functor< typename mixture_::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::vpdt_mixture_accessor | ( | unsigned int | index = 0 |
) | [inline] |
| vpdt_mixture_accessor< mixture_, bsta_weight_functor< typename mixture_::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::vpdt_mixture_accessor | ( | const accessor_type & | a, | |
| unsigned int | index = 0 | |||
| ) | [inline] |
| bool vpdt_mixture_accessor< mixture_, bsta_weight_functor< typename mixture_::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::operator() | ( | const mixture_ & | mix, | |
| return_type & | retval | |||
| ) | const [inline] |
const bool vpdt_mixture_accessor< mixture_, bsta_weight_functor< typename mixture_::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::valid_functor = true [static] |
is this functor valid for its distribution type.
Definition at line 408 of file bsta_basic_functors.h.
| unsigned int vpdt_mixture_accessor< mixture_, bsta_weight_functor< typename mixture_::component_type >, typename vpdt_enable_if< vpdt_is_mixture< mixture_ > >::type >::idx |
1.5.1