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

#include <EpFunc.h>

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

Public Member Functions

 GetEpFunc (A(T::*func)(const Eref &e) const )
 
void op (const Eref &e, vector< A > *ret) const
 
A returnOp (const Eref &e) const
 
- Public Member Functions inherited from GetOpFuncBase< A >
const OpFunc * makeHopFunc (HopIndex hopIndex) const
 
void opBuffer (const Eref &e, double *buf) const
 Executes the OpFunc by converting args. More...
 
- Public Member Functions inherited from OpFunc1Base< vector< A > * >
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...
 
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 ()
 

Private Attributes

A(T::* func_ )(const Eref &e) const
 

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

This specialized EpFunc is for returning a single field value. Unlike the regular GetOpFunc, this variant takes the Eref and Qinfo. It generates an opFunc that takes a single argument: FuncId of the function on the object that requested the value. The EpFunc then sends back a message with the info.

Definition at line 174 of file EpFunc.h.

Constructor & Destructor Documentation

template<class T , class A >
GetEpFunc< T, A >::GetEpFunc ( A(T::*)(const Eref &e) const  func)
inline

Definition at line 177 of file EpFunc.h.

178  : func_( func )
179  {;}
A(T::* func_)(const Eref &e) const
Definition: EpFunc.h:199

Member Function Documentation

template<class T , class A >
void GetEpFunc< T, A >::op ( const Eref &  e,
vector< A > *  ret 
) const
inlinevirtual

Implements OpFunc1Base< vector< A > * >.

Definition at line 181 of file EpFunc.h.

References GetEpFunc< T, A >::returnOp().

181  {
182  ret->push_back( returnOp( e ) );
183  }
A returnOp(const Eref &e) const
Definition: EpFunc.h:194

+ Here is the call graph for this function:

template<class T , class A >
A GetEpFunc< T, A >::returnOp ( const Eref &  e) const
inlinevirtual

Implements GetOpFuncBase< A >.

Definition at line 194 of file EpFunc.h.

References GetEpFunc< T, A >::func_.

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

194  {
195  return ( getEpFuncData< T >( e )->*func_ )( e );
196  }
A(T::* func_)(const Eref &e) const
Definition: EpFunc.h:199

+ Here is the caller graph for this function:

Member Data Documentation

template<class T , class A >
A( T::* GetEpFunc< T, A >::func_)(const Eref &e) const
private

Definition at line 199 of file EpFunc.h.

Referenced by GetEpFunc< T, A >::returnOp().


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