Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
vpdt_mixture_accessor< mixture_type, accessor_type, Disambiguate > Class Template Reference

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...
 

Static Public Attributes

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

Detailed Description

template<class mixture_type, class accessor_type, class Disambiguate = void>
class vpdt_mixture_accessor< mixture_type, accessor_type, Disambiguate >

A functor to apply another functor to the component with given index.

Definition at line 142 of file vpdt_mixture_accessors.h.

Member Typedef Documentation

◆ distribution_type

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

the distribution operated on by the functor.

Definition at line 148 of file vpdt_mixture_accessors.h.

◆ return_type

template<class mixture_type , class accessor_type , class Disambiguate = void>
typedef accessor_type::return_type vpdt_mixture_accessor< mixture_type, accessor_type, Disambiguate >::return_type

the functor return type.

Definition at line 146 of file vpdt_mixture_accessors.h.

Constructor & Destructor Documentation

◆ vpdt_mixture_accessor() [1/2]

template<class mixture_type , class accessor_type , class Disambiguate = void>
vpdt_mixture_accessor< mixture_type, accessor_type, Disambiguate >::vpdt_mixture_accessor ( unsigned int  index = 0)
inline

Constructor.

Definition at line 159 of file vpdt_mixture_accessors.h.

◆ vpdt_mixture_accessor() [2/2]

template<class mixture_type , class accessor_type , class Disambiguate = void>
vpdt_mixture_accessor< mixture_type, accessor_type, Disambiguate >::vpdt_mixture_accessor ( const accessor_type &  a,
unsigned int  index = 0 
)
inline

Constructor.

Definition at line 162 of file vpdt_mixture_accessors.h.

Member Function Documentation

◆ operator()()

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

The main function.

Definition at line 165 of file vpdt_mixture_accessors.h.

Member Data Documentation

◆ valid_functor

template<class mixture_type , class accessor_type , class Disambiguate = void>
const bool vpdt_mixture_accessor< mixture_type, accessor_type, Disambiguate >::valid_functor = false
static

is this functor valid for its distribution type.

Definition at line 150 of file vpdt_mixture_accessors.h.


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