A functor to apply another functor to the component with given index. More...
#include <vpdt_mixture_accessors.h>
Classes | |
| struct | rebind |
| rebind this functor to another distribution type. More... | |
Public Types | |
| typedef accessor_type::return_type | return_type |
| the functor return type. More... | |
| typedef mixture_type | distribution_type |
| the distribution operated on by the functor. More... | |
Public Member Functions | |
| vpdt_mixture_accessor (unsigned int index=0) | |
| Constructor. More... | |
| vpdt_mixture_accessor (const accessor_type &a, unsigned int index=0) | |
| Constructor. More... | |
| bool | operator() (const mixture_type &mix, return_type &retval) const |
| The main function. More... | |
Public Attributes | |
| accessor_type | accessor |
| The accessor to apply. More... | |
| unsigned int | idx |
| The component index. More... | |
Static Public Attributes | |
| static const bool | valid_functor = true |
| is this functor valid for its distribution type. More... | |
A functor to apply another functor to the component with given index.
Definition at line 174 of file vpdt_mixture_accessors.h.
| typedef mixture_type vpdt_mixture_accessor< mixture_type, accessor_type, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::distribution_type |
the distribution operated on by the functor.
Definition at line 181 of file vpdt_mixture_accessors.h.
| typedef accessor_type::return_type vpdt_mixture_accessor< mixture_type, accessor_type, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::return_type |
the functor return type.
Definition at line 179 of file vpdt_mixture_accessors.h.
|
inline |
Constructor.
Definition at line 192 of file vpdt_mixture_accessors.h.
|
inline |
Constructor.
Definition at line 196 of file vpdt_mixture_accessors.h.
|
inline |
The main function.
Definition at line 200 of file vpdt_mixture_accessors.h.
| accessor_type vpdt_mixture_accessor< mixture_type, accessor_type, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::accessor |
The accessor to apply.
Definition at line 209 of file vpdt_mixture_accessors.h.
| unsigned int vpdt_mixture_accessor< mixture_type, accessor_type, typename vpdt_enable_if< vpdt_is_mixture< mixture_type > >::type >::idx |
The component index.
Definition at line 211 of file vpdt_mixture_accessors.h.
|
static |
is this functor valid for its distribution type.
Definition at line 183 of file vpdt_mixture_accessors.h.
1.8.15