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

#include <SrcFinfo.h>

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

Public Member Functions

string rttiType () const
 
void send (const Eref &e, const T1 &arg1, const T2 &arg2, const T3 &arg3, const T4 &arg4) const
 
void sendBuffer (const Eref &e, double *buf) const
 
 SrcFinfo4 (const string &name, const string &doc)
 
 ~SrcFinfo4 ()
 
- 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 SrcFinfo4< T1, T2, T3, T4 >

Definition at line 346 of file SrcFinfo.h.

Constructor & Destructor Documentation

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

Definition at line 349 of file SrcFinfo.h.

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

Definition at line 351 of file SrcFinfo.h.

352  : SrcFinfo( name, doc )
353  { ; }
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>
string SrcFinfo4< T1, T2, T3, T4 >::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 390 of file SrcFinfo.h.

References Conv< T >::rttiType().

390  {
391  return Conv<T1>::rttiType() + "," + Conv< T2 >::rttiType() +
392  "," + Conv<T3>::rttiType() + "," + Conv< T4 >::rttiType();
393  }
static string rttiType()
Definition: Conv.h:82

+ Here is the call graph for this function:

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

Definition at line 356 of file SrcFinfo.h.

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

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

359  {
360  const vector< MsgDigest >& md = e.msgDigest( getBindIndex() );
361  for ( vector< MsgDigest >::const_iterator
362  i = md.begin(); i != md.end(); ++i ) {
364  dynamic_cast< const OpFunc4Base< T1, T2, T3, T4 >* >(
365  i->func );
366  assert( f );
367  for ( vector< Eref >::const_iterator
368  j = i->targets.begin(); j != i->targets.end(); ++j ) {
369  if ( j->dataIndex() == ALLDATA ) {
370  Element* e = j->element();
371  unsigned int start = e->localDataStart();
372  unsigned int end = start + e->numData();
373  for ( unsigned int k = start; k < end; ++k )
374  f->op( Eref( e, k ), arg1, arg2, arg3, arg4 );
375  } else {
376  f->op( *j, arg1, arg2, arg3, arg4 );
377  }
378  }
379  }
380  }
virtual void op(const Eref &e, A1 arg1, A2 arg2, A3 arg3, A4 arg4) const =0
BindIndex getBindIndex() const
Definition: SrcFinfo.cpp:28
Element * element() const
Definition: Eref.h:42
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>
void SrcFinfo4< T1, T2, T3, T4 >::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 382 of file SrcFinfo.h.

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

383  {
384  const T1& arg1 = Conv< T1 >::buf2val( &buf );
385  const T2& arg2 = Conv< T2 >::buf2val( &buf );
386  const T3& arg3 = Conv< T3 >::buf2val( &buf );
387  send( e, arg1, arg2, arg3, Conv< T4 >::buf2val( &buf ) );
388  }
Definition: Conv.h:30
void send(const Eref &e, const T1 &arg1, const T2 &arg2, const T3 &arg3, const T4 &arg4) const
Definition: SrcFinfo.h:356
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: