MOOSE - Multiscale Object Oriented Simulation Environment
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
SrcFinfo5< T1, T2, T3, T4, T5 > Class Template Reference

#include <SrcFinfo.h>

+ Inheritance diagram for SrcFinfo5< T1, T2, T3, T4, T5 >:
+ Collaboration diagram for SrcFinfo5< T1, T2, T3, T4, T5 >:

Public Member Functions

string rttiType () const
 
void send (const Eref &e, const T1 &arg1, const T2 &arg2, const T3 &arg3, const T4 &arg4, const T5 &arg5) const
 
void sendBuffer (const Eref &e, double *buf) const
 
 SrcFinfo5 (const string &name, const string &doc)
 
 ~SrcFinfo5 ()
 
- Public Member Functions inherited from SrcFinfo
bool addMsg (const Finfo *target, ObjId mid, Element *src) const
 
bool checkTarget (const Finfo *target) const
 
BindIndex getBindIndex () const
 
void registerFinfo (Cinfo *c)
 
void setBindIndex (BindIndex b)
 
 SrcFinfo (const string &name, const string &doc)
 
bool strGet (const Eref &tgt, const string &field, string &returnValue) const
 
bool strSet (const Eref &tgt, const string &field, const string &arg) const
 
 ~SrcFinfo ()
 
- Public Member Functions inherited from Finfo
const string & docs () const
 Returns documentation string. More...
 
 Finfo (const string &name, const string &doc)
 
virtual vector< string > innerDest () const
 
virtual vector< string > innerSrc () const
 
const string & name () const
 
virtual void postCreationFunc (Id newId, Element *newElm) const
 
virtual ~Finfo ()
 

Additional Inherited Members

- Static Public Member Functions inherited from Finfo
static const CinfoinitCinfo ()
 
- Static Public Attributes inherited from SrcFinfo
static const BindIndex BadBindIndex = 65535
 

Detailed Description

template<class T1, class T2, class T3, class T4, class T5>
class SrcFinfo5< T1, T2, T3, T4, T5 >

Definition at line 400 of file SrcFinfo.h.

Constructor & Destructor Documentation

template<class T1, class T2, class T3, class T4, class T5>
SrcFinfo5< T1, T2, T3, T4, T5 >::~SrcFinfo5 ( )
inline

Definition at line 403 of file SrcFinfo.h.

403 {;}
template<class T1, class T2, class T3, class T4, class T5>
SrcFinfo5< T1, T2, T3, T4, T5 >::SrcFinfo5 ( const string &  name,
const string &  doc 
)
inline

Definition at line 405 of file SrcFinfo.h.

406  : SrcFinfo( name, doc )
407  { ; }
SrcFinfo(const string &name, const string &doc)
Definition: SrcFinfo.cpp:18
const string & name() const
Definition: Finfo.cpp:80

Member Function Documentation

template<class T1, class T2, class T3, class T4, class T5>
string SrcFinfo5< T1, T2, T3, T4, T5 >::rttiType ( ) const
inlinevirtual

Returns the documentation string for the Finfo string docs() const; Returns the RTTI type string for the finfo by referring to an internal virtual function. string type() const; Returns the list of subsidiary SrcFinfos. Used in Shared Finfos, empty otherwise. Goes via internal virtual function. vector< string > src() const; Returns the list of subsidiary destFinfos. Used in SharedFinfos and ValueFinfos, empty otherwise. Goes via internal virtual function. vector< string > dest() const; Returns an RTTI type string for this Finfo.

Reimplemented from Finfo.

Definition at line 446 of file SrcFinfo.h.

References Conv< T >::rttiType().

446  {
447  return Conv<T1>::rttiType() + "," + Conv< T2 >::rttiType() +
448  "," + Conv<T3>::rttiType() + "," + Conv< T4 >::rttiType() +
449  "," + Conv<T5>::rttiType();
450  }
static string rttiType()
Definition: Conv.h:82

+ Here is the call graph for this function:

template<class T1, class T2, class T3, class T4, class T5>
void SrcFinfo5< T1, T2, T3, T4, T5 >::send ( const Eref e,
const T1 &  arg1,
const T2 &  arg2,
const T3 &  arg3,
const T4 &  arg4,
const T5 &  arg5 
) const
inline

Definition at line 410 of file SrcFinfo.h.

References ALLDATA, Eref::element(), SrcFinfo::getBindIndex(), Element::localDataStart(), Eref::msgDigest(), Element::numData(), and OpFunc5Base< A1, A2, A3, A4, A5 >::op().

Referenced by SrcFinfo5< T1, T2, T3, T4, T5 >::sendBuffer().

413  {
414  const vector< MsgDigest >& md = e.msgDigest( getBindIndex() );
415  for ( vector< MsgDigest >::const_iterator
416  i = md.begin(); i != md.end(); ++i ) {
418  dynamic_cast<
419  const OpFunc5Base< T1, T2, T3, T4, T5 >* >( i->func );
420  assert( f );
421  for ( vector< Eref >::const_iterator
422  j = i->targets.begin(); j != i->targets.end(); ++j ) {
423  if ( j->dataIndex() == ALLDATA ) {
424  Element* e = j->element();
425  unsigned int start = e->localDataStart();
426  unsigned int end = start + e->numData();
427  for ( unsigned int k = start; k < end; ++k )
428  f->op( Eref( e, k ),
429  arg1, arg2, arg3, arg4, arg5 );
430  } else {
431  f->op( *j, arg1, arg2, arg3, arg4, arg5 );
432  }
433  }
434  }
435  }
BindIndex getBindIndex() const
Definition: SrcFinfo.cpp:28
Element * element() const
Definition: Eref.h:42
virtual void op(const Eref &e, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5) const =0
const unsigned int ALLDATA
Used by ObjId and Eref.
Definition: consts.cpp:22
const vector< MsgDigest > & msgDigest(unsigned int bindIndex) const
Definition: Eref.cpp:67
Definition: Eref.h:26
virtual unsigned int numData() const =0
Returns number of data entries across all nodes.
virtual unsigned int localDataStart() const =0
Returns index of first data entry on this node.

+ Here is the call graph for this function:

+ Here is the caller graph for this function:

template<class T1, class T2, class T3, class T4, class T5>
void SrcFinfo5< T1, T2, T3, T4, T5 >::sendBuffer ( const Eref e,
double *  buf 
) const
inlinevirtual

Sends contents of buffer on to msg targets Buffer has a header with the TgtInfo.

Implements SrcFinfo.

Definition at line 437 of file SrcFinfo.h.

References Conv< T >::buf2val(), and SrcFinfo5< T1, T2, T3, T4, T5 >::send().

438  {
439  const T1& arg1 = Conv< T1 >::buf2val( &buf );
440  const T2& arg2 = Conv< T2 >::buf2val( &buf );
441  const T3& arg3 = Conv< T3 >::buf2val( &buf );
442  const T4& arg4 = Conv< T4 >::buf2val( &buf );
443  send( e, arg1, arg2, arg3, arg4, Conv< T5 >::buf2val( &buf ) );
444  }
void send(const Eref &e, const T1 &arg1, const T2 &arg2, const T3 &arg3, const T4 &arg4, const T5 &arg5) const
Definition: SrcFinfo.h:410
Definition: Conv.h:30
static const T & buf2val(double **buf)
Definition: Conv.h:44

+ Here is the call graph for this function:


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