CMS 3D CMS Logo

 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Member Functions | Private Attributes
funct::Slave< F > Struct Template Reference

#include <FunctClone.h>

Public Member Functions

double operator() () const
 
double operator() (double x) const
 
void setId (size_t i)
 
 Slave (const Master< F > &master)
 

Private Attributes

size_t id_
 
const Master< F > & master_
 

Detailed Description

template<typename F>
struct funct::Slave< F >

Definition at line 48 of file FunctClone.h.

Constructor & Destructor Documentation

template<typename F >
funct::Slave< F >::Slave ( const Master< F > &  master)
inline

Definition at line 49 of file FunctClone.h.

References cms::cuda::assert(), funct::Slave< F >::id_, and funct::Slave< F >::master_.

49  : master_(master), id_(master.size()) {
50  assert(id_ > 0);
51  master_.add();
52  }
Master< F > master(const F &f)
Definition: FunctClone.h:63
assert(be >=bs)
const Master< F > & master_
Definition: FunctClone.h:58
size_t id_
Definition: FunctClone.h:59

Member Function Documentation

template<typename F >
double funct::Slave< F >::operator() ( ) const
inline

Definition at line 53 of file FunctClone.h.

References funct::Slave< F >::id_, and funct::Slave< F >::master_.

53 { return master_.get(id_); }
const Master< F > & master_
Definition: FunctClone.h:58
size_t id_
Definition: FunctClone.h:59
template<typename F >
double funct::Slave< F >::operator() ( double  x) const
inline

Definition at line 54 of file FunctClone.h.

References funct::Slave< F >::id_, and funct::Slave< F >::master_.

54 { return master_.get(id_, x); }
const Master< F > & master_
Definition: FunctClone.h:58
size_t id_
Definition: FunctClone.h:59
template<typename F >
void funct::Slave< F >::setId ( size_t  i)
inline

Definition at line 55 of file FunctClone.h.

References mps_fire::i, and funct::Slave< F >::id_.

55 { id_ = i; }
size_t id_
Definition: FunctClone.h:59

Member Data Documentation

template<typename F >
size_t funct::Slave< F >::id_
private
template<typename F >
const Master<F>& funct::Slave< F >::master_
private

Definition at line 58 of file FunctClone.h.

Referenced by funct::Slave< F >::operator()(), and funct::Slave< F >::Slave().