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

#include <HopFunc.h>

+ Inheritance diagram for HopFunc4< A1, A2, A3, A4 >:
+ Collaboration diagram for HopFunc4< A1, A2, A3, A4 >:

Public Member Functions

 HopFunc4 (HopIndex hopIndex)
 
void op (const Eref &e, A1 arg1, A2 arg2, A3 arg3, A4 arg4) const
 
- Public Member Functions inherited from OpFunc4Base< A1, A2, A3, A4 >
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...
 
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

HopIndex hopIndex_
 

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 A1, class A2, class A3, class A4>
class HopFunc4< A1, A2, A3, A4 >

Definition at line 306 of file HopFunc.h.

Constructor & Destructor Documentation

template<class A1 , class A2 , class A3 , class A4 >
HopFunc4< A1, A2, A3, A4 >::HopFunc4 ( HopIndex  hopIndex)
inline

Definition at line 310 of file HopFunc.h.

311  : hopIndex_( hopIndex )
312  {;}
HopIndex hopIndex_
Definition: HopFunc.h:326

Member Function Documentation

template<class A1 , class A2 , class A3 , class A4 >
void HopFunc4< A1, A2, A3, A4 >::op ( const Eref &  e,
A1  arg1,
A2  arg2,
A3  arg3,
A4  arg4 
) const
inlinevirtual

Implements OpFunc4Base< A1, A2, A3, A4 >.

Definition at line 314 of file HopFunc.h.

References addToBuf(), dispatchBuffers(), HopFunc4< A1, A2, A3, A4 >::hopIndex_, and Conv< T >::val2buf().

315  {
316  double* buf = addToBuf( e, hopIndex_,
317  Conv< A1 >::size( arg1 ) + Conv< A2 >::size( arg2 ) +
318  Conv< A3 >::size( arg3 ) + Conv< A4 >::size( arg4 ) );
319  Conv< A1 >::val2buf( arg1, &buf );
320  Conv< A2 >::val2buf( arg2, &buf );
321  Conv< A3 >::val2buf( arg3, &buf );
322  Conv< A4 >::val2buf( arg4, &buf );
324  }
static void val2buf(const T &val, double **buf)
Definition: Conv.h:56
double * addToBuf(const Eref &e, HopIndex hopIndex, unsigned int size)
Definition: HopFunc.cpp:29
Definition: Conv.h:30
void dispatchBuffers(const Eref &e, HopIndex hopIndex)
Definition: HopFunc.cpp:47
HopIndex hopIndex_
Definition: HopFunc.h:326

+ Here is the call graph for this function:

Member Data Documentation

template<class A1 , class A2 , class A3 , class A4 >
HopIndex HopFunc4< A1, A2, A3, A4 >::hopIndex_
private

Definition at line 326 of file HopFunc.h.

Referenced by HopFunc4< A1, A2, A3, A4 >::op().


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