Public Types | Public Member Functions | Public Attributes
bsta_mixture_functor< mixture_, functor_ > Class Template Reference

A functor to apply another functor to one distribution in the mixture. More...

#include <bsta_basic_functors.h>

List of all members.

Public Types

enum  { return_dim = functor_::return_dim }
typedef mixture_::math_type T
typedef functor_::return_T return_T
typedef return_T return_type

Public Member Functions

 bsta_mixture_functor (const functor_ &f, unsigned int index=0)
 Constructor.
bool operator() (const mixture_ &mix, return_T &retval) const
 The main function.

Public Attributes

functor_ functor
 The functor to apply.
unsigned int idx
 The index to apply to.

Detailed Description

template<class mixture_, class functor_>
class bsta_mixture_functor< mixture_, functor_ >

A functor to apply another functor to one distribution in the mixture.

Note:
the distribution must be a mixture

Definition at line 451 of file bsta_basic_functors.h.


Member Typedef Documentation

template<class mixture_ , class functor_ >
typedef functor_::return_T bsta_mixture_functor< mixture_, functor_ >::return_T

Definition at line 455 of file bsta_basic_functors.h.

template<class mixture_ , class functor_ >
typedef return_T bsta_mixture_functor< mixture_, functor_ >::return_type

Definition at line 456 of file bsta_basic_functors.h.

template<class mixture_ , class functor_ >
typedef mixture_::math_type bsta_mixture_functor< mixture_, functor_ >::T

Definition at line 454 of file bsta_basic_functors.h.


Member Enumeration Documentation

template<class mixture_ , class functor_ >
anonymous enum
Enumerator:
return_dim 

Definition at line 457 of file bsta_basic_functors.h.


Constructor & Destructor Documentation

template<class mixture_ , class functor_ >
bsta_mixture_functor< mixture_, functor_ >::bsta_mixture_functor ( const functor_ &  f,
unsigned int  index = 0 
) [inline]

Constructor.

Definition at line 460 of file bsta_basic_functors.h.


Member Function Documentation

template<class mixture_ , class functor_ >
bool bsta_mixture_functor< mixture_, functor_ >::operator() ( const mixture_ &  mix,
return_T retval 
) const [inline]

The main function.

Definition at line 464 of file bsta_basic_functors.h.


Member Data Documentation

template<class mixture_ , class functor_ >
functor_ bsta_mixture_functor< mixture_, functor_ >::functor

The functor to apply.

Definition at line 473 of file bsta_basic_functors.h.

template<class mixture_ , class functor_ >
unsigned int bsta_mixture_functor< mixture_, functor_ >::idx

The index to apply to.

Definition at line 475 of file bsta_basic_functors.h.


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