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

#include <OpFunc.h>

+ Inheritance diagram for OpFunc0< T >:
+ Collaboration diagram for OpFunc0< T >:

Public Member Functions

void op (const Eref &e) const
 
 OpFunc0 (void(T::*func)())
 
- Public Member Functions inherited from OpFunc0Base
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...
 
string rttiType () const
 
- Public Member Functions inherited from OpFunc
 OpFunc ()
 
unsigned int opIndex () const
 
virtual void opVecBuffer (const Eref &e, double *buf) const
 Executes the OpFunc for all data by converting a vector of args. More...
 
bool setIndex (unsigned int i)
 Used when rebuilding the Fid->OpFunc mapping. More...
 
virtual ~OpFunc ()
 

Private Attributes

void(T::* func_ )()
 

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 OpFunc0< T >

Definition at line 13 of file OpFunc.h.

Constructor & Destructor Documentation

template<class T >
OpFunc0< T >::OpFunc0 ( void(T::*)()  func)
inline

Definition at line 16 of file OpFunc.h.

17  : func_( func )
18  {;}
void(T::* func_)()
Definition: OpFunc.h:24

Member Function Documentation

template<class T >
void OpFunc0< T >::op ( const Eref e) const
inlinevirtual

Implements OpFunc0Base.

Definition at line 20 of file OpFunc.h.

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

20  {
21  (reinterpret_cast< T* >( e.data() )->*func_)();
22  }
char * data() const
Definition: Eref.cpp:41
void(T::* func_)()
Definition: OpFunc.h:24

+ Here is the call graph for this function:

Member Data Documentation

template<class T >
void( T::* OpFunc0< T >::func_)()
private

Definition at line 24 of file OpFunc.h.

Referenced by OpFunc0< T >::op().


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