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

#include <EpFunc.h>

+ Inheritance diagram for EpFunc2< T, A1, A2 >:
+ Collaboration diagram for EpFunc2< T, A1, A2 >:

Public Member Functions

 EpFunc2 (void(T::*func)(const Eref &, A1, A2))
 
void op (const Eref &e, A1 arg1, A2 arg2) const
 
- Public Member Functions inherited from OpFunc2Base< A1, A2 >
bool checkFinfo (const Finfo *s) const
 
const OpFuncmakeHopFunc (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< A1 > &arg1, const vector< A2 > &arg2, const OpFunc2Base< A1, A2 > *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, A1, A2)
 

Additional Inherited Members

- Static Public Member Functions inherited from OpFunc
static const OpFunclookop (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 A1, class A2>
class EpFunc2< T, A1, A2 >

Definition at line 79 of file EpFunc.h.

Constructor & Destructor Documentation

template<class T , class A1 , class A2 >
EpFunc2< T, A1, A2 >::EpFunc2 ( void(T::*)(const Eref &, A1, A2)  func)
inline

Definition at line 83 of file EpFunc.h.

84  : func_( func )
85  {;}
void(T::* func_)(const Eref &e, A1, A2)
Definition: EpFunc.h:92

Member Function Documentation

template<class T , class A1 , class A2 >
void EpFunc2< T, A1, A2 >::op ( const Eref e,
A1  arg1,
A2  arg2 
) const
inlinevirtual

Implements OpFunc2Base< A1, A2 >.

Definition at line 87 of file EpFunc.h.

References Eref::data(), and EpFunc2< T, A1, A2 >::func_.

87  {
88  ( reinterpret_cast< T* >( e.data() )->*func_ )( e, arg1, arg2 );
89  }
void(T::* func_)(const Eref &e, A1, A2)
Definition: EpFunc.h:92
char * data() const
Definition: Eref.cpp:41

+ Here is the call graph for this function:

Member Data Documentation

template<class T , class A1 , class A2 >
void( T::* EpFunc2< T, A1, A2 >::func_)(const Eref &e, A1, A2)
private

Definition at line 92 of file EpFunc.h.

Referenced by EpFunc2< T, A1, A2 >::op().


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