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

#include <OpFunc.h>

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

Public Member Functions

void op (const Eref &e, A arg) const
 
 OpFunc1 (void(T::*func)(A))
 
- Public Member Functions inherited from OpFunc1Base< A >
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< 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_ )(A)
 

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 A>
class OpFunc1< T, A >

Definition at line 27 of file OpFunc.h.

Constructor & Destructor Documentation

template<class T , class A >
OpFunc1< T, A >::OpFunc1 ( void(T::*)(A)  func)
inline

Definition at line 30 of file OpFunc.h.

31  : func_( func )
32  {;}
void(T::* func_)(A)
Definition: OpFunc.h:37

Member Function Documentation

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

Implements OpFunc1Base< A >.

Definition at line 33 of file OpFunc.h.

References Eref::data(), and OpFunc1< T, A >::func_.

33  {
34  (reinterpret_cast< T* >( e.data() )->*func_)( arg );
35  }
char * data() const
Definition: Eref.cpp:41
void(T::* func_)(A)
Definition: OpFunc.h:37

+ Here is the call graph for this function:

Member Data Documentation

template<class T , class A >
void( T::* OpFunc1< T, A >::func_)(A)
private

Definition at line 37 of file OpFunc.h.

Referenced by OpFunc1< T, A >::op().


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