Classes | Public Types | Public Member Functions | Static Public Attributes | List of all members
vpdt_mean_accessor< dist_type > Class Template Reference

An accessor to return the mean of the distribution. More...

#include <vpdt_distribution_accessors.h>

Classes

struct  rebind
 rebind this functor to another distribution type. More...
 

Public Types

typedef dist_type::field_type return_type
 the functor return type. More...
 
typedef dist_type distribution_type
 the distribution operated on by the functor. More...
 

Public Member Functions

bool operator() (const dist_type &d, return_type &retval) const
 The main function. More...
 

Static Public Attributes

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

Detailed Description

template<class dist_type>
class vpdt_mean_accessor< dist_type >

An accessor to return the mean of the distribution.

Definition at line 47 of file vpdt_distribution_accessors.h.

Member Typedef Documentation

◆ distribution_type

template<class dist_type >
typedef dist_type vpdt_mean_accessor< dist_type >::distribution_type

the distribution operated on by the functor.

Definition at line 53 of file vpdt_distribution_accessors.h.

◆ return_type

template<class dist_type >
typedef dist_type::field_type vpdt_mean_accessor< dist_type >::return_type

the functor return type.

Definition at line 51 of file vpdt_distribution_accessors.h.

Member Function Documentation

◆ operator()()

template<class dist_type >
bool vpdt_mean_accessor< dist_type >::operator() ( const dist_type &  d,
return_type retval 
) const
inline

The main function.

Definition at line 64 of file vpdt_distribution_accessors.h.

Member Data Documentation

◆ valid_functor

template<class dist_type >
const bool vpdt_mean_accessor< dist_type >::valid_functor = true
static

is this functor valid for its distribution type.

Definition at line 55 of file vpdt_distribution_accessors.h.


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