STK++ 0.9.13
STK::hidden::RandApplier< Type > Struct Template Reference

Visitor putting a choosen random variable. More...

#include <STK_Appliers.h>

Public Types

typedef RemoveConst< Type >::Type TypeConst
 

Public Member Functions

 RandApplier (Law::IUnivLaw< Type > const &law)
 
TypeConst operator() ()
 

Public Attributes

Law::IUnivLaw< Type > constlaw_
 

Detailed Description

template<typename Type>
struct STK::hidden::RandApplier< Type >

Visitor putting a choosen random variable.

Definition at line 73 of file STK_Appliers.h.

Member Typedef Documentation

◆ TypeConst

template<typename Type >
typedef RemoveConst<Type>::Type STK::hidden::RandApplier< Type >::TypeConst

Definition at line 75 of file STK_Appliers.h.

Constructor & Destructor Documentation

◆ RandApplier()

template<typename Type >
STK::hidden::RandApplier< Type >::RandApplier ( Law::IUnivLaw< Type > const law)
inline

Definition at line 76 of file STK_Appliers.h.

76:law_(law){}
Law::IUnivLaw< Type > const & law_

Member Function Documentation

◆ operator()()

template<typename Type >
TypeConst STK::hidden::RandApplier< Type >::operator() ( )
inline

Definition at line 77 of file STK_Appliers.h.

77{ return law_.rand();}

References STK::hidden::RandApplier< Type >::law_.

Member Data Documentation

◆ law_

template<typename Type >
Law::IUnivLaw<Type> const& STK::hidden::RandApplier< Type >::law_

Definition at line 78 of file STK_Appliers.h.

Referenced by STK::hidden::RandApplier< Type >::operator()().


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