MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
EpFunc1< T, A > Class Template Reference

#include <EpFunc.h>

+ Inheritance diagram for EpFunc1< T, A >:
+ Collaboration diagram for EpFunc1< T, A >:

Public Member Functions

 EpFunc1 (void(T::*func)(const Eref &, A))
 
void op (const Eref &e, A arg) const
 
- Public Member Functions inherited from OpFunc1Base< A >
bool checkFinfo (const Finfo *s) const
 
const OpFunc * makeHopFunc (HopIndex hopIndex) const
 
void opBuffer (const Eref &e, double *buf) const
 Executes the OpFunc by converting args. More...
 
virtual void opVec (const Eref &e, const vector< A > &arg, const OpFunc1Base< A > *op) const
 
void opVecBuffer (const Eref &e, double *buf) const
 Executes the OpFunc for all data by converting a vector of args. More...
 
string rttiType () const
 
- Public Member Functions inherited from OpFunc
 OpFunc ()
 
unsigned int opIndex () const
 
bool setIndex (unsigned int i)
 Used when rebuilding the Fid->OpFunc mapping. More...
 
virtual ~OpFunc ()
 

Private Attributes

void(T::* func_ )(const Eref &e, A)
 

Additional Inherited Members

- Static Public Member Functions inherited from OpFunc
static const OpFunc * lookop (unsigned int opIndex)
 
static unsigned int rebuildOpIndex ()
 cleans out the entire Ops vector. Returns size of orig vector. More...
 

Detailed Description

template<class T, class A>
class EpFunc1< T, A >

Definition at line 64 of file EpFunc.h.

Constructor & Destructor Documentation

template<class T, class A>
EpFunc1< T, A >::EpFunc1 ( void(T::*)(const Eref &, A)  func)
inline

Definition at line 67 of file EpFunc.h.

68  : func_( func )
69  {;}
void(T::* func_)(const Eref &e, A)
Definition: EpFunc.h:76

Member Function Documentation

template<class T, class A>
void EpFunc1< T, A >::op ( const Eref &  e,
A  arg 
) const
inlinevirtual

Implements OpFunc1Base< A >.

Definition at line 71 of file EpFunc.h.

71  {
72  ( reinterpret_cast< T* >( e.data() )->*func_ )( e, arg );
73  }
char * data() const
Definition: Eref.cpp:41
void(T::* func_)(const Eref &e, A)
Definition: EpFunc.h:76

Member Data Documentation

template<class T, class A>
void( T::* EpFunc1< T, A >::func_)(const Eref &e, A)
private

Definition at line 76 of file EpFunc.h.

Referenced by EpFunc1< T, ProcPtr >::op().


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