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

#include <OpFuncBase.h>

+ Inheritance diagram for LookupGetOpFuncBase< L, A >:
+ Collaboration diagram for LookupGetOpFuncBase< L, A >:

Public Member Functions

bool checkFinfo (const Finfo *s) const
 
const OpFunc * makeHopFunc (HopIndex hopIndex) const
 
const OpFunc * makeHopFunc (HopIndex hopIndex, const L &index) const
 
virtual void op (const Eref &e, L index, ObjId recipient, FuncId fid) const =0
 
void opBuffer (const Eref &e, double *buf) const
 Executes the OpFunc by converting args. More...
 
virtual A returnOp (const Eref &e, const L &index) const =0
 
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 ()
 

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 L, class A>
class LookupGetOpFuncBase< L, A >

This is the base class for all LookupGetOpFuncs.

Definition at line 362 of file OpFuncBase.h.

Member Function Documentation

template<class L, class A>
bool LookupGetOpFuncBase< L, A >::checkFinfo ( const Finfo *  s) const
inlinevirtual

Implements OpFunc.

Definition at line 365 of file OpFuncBase.h.

365  {
366  return ( dynamic_cast< const SrcFinfo1< A >* >( s )
367  || dynamic_cast< const SrcFinfo2< FuncId, L >* >( s ) );
368  }
template<class L, class A>
const OpFunc* LookupGetOpFuncBase< L, A >::makeHopFunc ( HopIndex  hopIndex) const
inlinevirtual

Implements OpFunc.

Definition at line 375 of file OpFuncBase.h.

376  {
377  // Perhaps later we can put in something for x-node gets.
378  return 0;
379  }
template<class L, class A>
const OpFunc* LookupGetOpFuncBase< L, A >::makeHopFunc ( HopIndex  hopIndex,
const L &  index 
) const
inline

Definition at line 381 of file OpFuncBase.h.

382  {
383  // We need to convert the index and pass it into the HopFunc
384  // to pass on to target node.
385  return 0;
386  }
template<class L, class A>
virtual void LookupGetOpFuncBase< L, A >::op ( const Eref &  e,
L  index,
ObjId  recipient,
FuncId  fid 
) const
pure virtual
template<class L, class A>
void LookupGetOpFuncBase< L, A >::opBuffer ( const Eref &  e,
double *  buf 
) const
inlinevirtual

Executes the OpFunc by converting args.

Implements OpFunc.

Definition at line 388 of file OpFuncBase.h.

388  {
389  // Later figure out how to handle.
390  }
template<class L, class A>
virtual A LookupGetOpFuncBase< L, A >::returnOp ( const Eref &  e,
const L &  index 
) const
pure virtual

Implemented in GetEpFunc1< T, L, A >, and GetOpFunc1< T, L, A >.

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

+ Here is the caller graph for this function:

template<class L, class A>
string LookupGetOpFuncBase< L, A >::rttiType ( ) const
inlinevirtual

Implements OpFunc.

Definition at line 392 of file OpFuncBase.h.

References Conv< T >::rttiType().

392  {
393  return Conv< A >::rttiType();
394  }
static string rttiType()
Definition: Conv.h:82

+ Here is the call graph for this function:


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