MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
GetOpFuncBase< A > Class Template Referenceabstract

#include <OpFuncBase.h>

+ Inheritance diagram for GetOpFuncBase< A >:
+ Collaboration diagram for GetOpFuncBase< A >:

Public Member Functions

const OpFuncmakeHopFunc (HopIndex hopIndex) const
 
void opBuffer (const Eref &e, double *buf) const
 Executes the OpFunc by converting args. More...
 
virtual A returnOp (const Eref &e) const =0
 
- Public Member Functions inherited from OpFunc1Base< vector< A > * >
bool checkFinfo (const Finfo *s) const
 
const OpFuncmakeHopFunc (HopIndex hopIndex) const
 
virtual void op (const Eref &e, vector< A > *arg) const =0
 
void opBuffer (const Eref &e, double *buf) const
 Executes the OpFunc by converting args. More...
 
virtual void opVec (const Eref &e, const vector< vector< A > * > &arg, const OpFunc1Base< vector< 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 ()
 

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 A>
class GetOpFuncBase< A >

This is the base class for all GetOpFuncs.

Definition at line 308 of file OpFuncBase.h.

Member Function Documentation

template<class A >
const OpFunc * GetOpFuncBase< A >::makeHopFunc ( HopIndex  hopIndex) const
virtual

Deferred specification of function from OpFunc1Base, so it is after the declaration of the HopFunc class to which it refers.

Implements OpFunc.

Definition at line 513 of file HopFunc.h.

Referenced by Field< A >::get(), and Field< A >::getVec().

514 {
515  return new GetHopFunc< A >( hopIndex );
516 }

+ Here is the caller graph for this function:

template<class A>
void GetOpFuncBase< A >::opBuffer ( const Eref e,
double *  buf 
) const
inlinevirtual

Executes the OpFunc by converting args.

Implements OpFunc.

Definition at line 326 of file OpFuncBase.h.

References GetOpFuncBase< A >::returnOp(), Conv< T >::size(), and Conv< T >::val2buf().

326  {
327  A ret = returnOp( e );
328  buf[0] = Conv<A>::size( ret );
329  buf++;
330  Conv< A >::val2buf( ret, &buf );
331  }
static void val2buf(const T &val, double **buf)
Definition: Conv.h:56
virtual A returnOp(const Eref &e) const =0
static unsigned int size(const T &val)
Definition: Conv.h:38

+ Here is the call graph for this function:

template<class A>
virtual A GetOpFuncBase< A >::returnOp ( const Eref e) const
pure virtual

Implemented in GetEpFunc< T, A >, and GetOpFunc< T, A >.

Referenced by Field< A >::get(), GetHopFunc< A >::getLocalFieldVec(), GetHopFunc< A >::getLocalVec(), and GetOpFuncBase< A >::opBuffer().

+ Here is the caller graph for this function:


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