CMS 3D CMS Logo

funct::Slave< F > Struct Template Reference

#include <PhysicsTools/Utilities/interface/FunctClone.h>

List of all members.

Public Member Functions

double operator() (double x) const
double operator() () 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 54 of file FunctClone.h.


Constructor & Destructor Documentation

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

Definition at line 55 of file FunctClone.h.

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

00055                                    : master_(master), id_(master.size()) { 
00056       assert(id_ > 0);
00057       master_.add();
00058     }


Member Function Documentation

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

Definition at line 60 of file FunctClone.h.

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

00060 { return master_.get(id_, x); }

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

Definition at line 59 of file FunctClone.h.

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

00059 { return master_.get(id_); }

template<typename F>
void funct::Slave< F >::setId ( size_t  i  )  [inline]

Definition at line 61 of file FunctClone.h.

References funct::Slave< F >::id_.

00061 { id_ = i; }


Member Data Documentation

template<typename F>
size_t funct::Slave< F >::id_ [private]

Definition at line 64 of file FunctClone.h.

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

template<typename F>
const Master<F>& funct::Slave< F >::master_ [private]

Definition at line 63 of file FunctClone.h.

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


The documentation for this struct was generated from the following file:
Generated on Tue Jun 9 18:47:03 2009 for CMSSW by  doxygen 1.5.4