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

#include <SrcFinfo.h>

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

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 T6 &arg6) const
 
void sendBuffer (const Eref &e, double *buf) const
 
 SrcFinfo6 (const string &name, const string &doc)
 
 ~SrcFinfo6 ()
 
- 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 T6>
class SrcFinfo6< T1, T2, T3, T4, T5, T6 >

Definition at line 458 of file SrcFinfo.h.

Constructor & Destructor Documentation

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

Definition at line 461 of file SrcFinfo.h.

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

Definition at line 463 of file SrcFinfo.h.

464  : SrcFinfo( name, doc )
465  { ; }
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 , class T6 >
string SrcFinfo6< T1, T2, T3, T4, T5, T6 >::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 505 of file SrcFinfo.h.

References Conv< T >::rttiType().

505  {
506  return Conv<T1>::rttiType() + "," + Conv< T2 >::rttiType() +
507  "," + Conv<T3>::rttiType() + "," + Conv< T4 >::rttiType() +
508  "," + Conv<T5>::rttiType() + "," + Conv< T6 >::rttiType();
509  }
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 , class T6 >
void SrcFinfo6< T1, T2, T3, T4, T5, T6 >::send ( const Eref e,
const T1 &  arg1,
const T2 &  arg2,
const T3 &  arg3,
const T4 &  arg4,
const T5 &  arg5,
const T6 &  arg6 
) const
inline

Definition at line 467 of file SrcFinfo.h.

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

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

470  {
471  const vector< MsgDigest >& md = e.msgDigest( getBindIndex() );
472  for ( vector< MsgDigest >::const_iterator
473  i = md.begin(); i != md.end(); ++i ) {
475  dynamic_cast<
477  i->func );
478  assert( f );
479  for ( vector< Eref >::const_iterator
480  j = i->targets.begin(); j != i->targets.end(); ++j ) {
481  if ( j->dataIndex() == ALLDATA ) {
482  Element* e = j->element();
483  unsigned int start = e->localDataStart();
484  unsigned int end = start + e->numData();
485  for ( unsigned int k = start; k < end; ++k )
486  f->op( Eref( e, k ),
487  arg1, arg2, arg3, arg4, arg5, arg6 );
488  } else {
489  f->op( *j, arg1, arg2, arg3, arg4, arg5, arg6 );
490  }
491  }
492  }
493  }
virtual void op(const Eref &e, A1 arg1, A2 arg2, A3 arg3, A4 arg4, A5 arg5, A6 arg6) 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 , class T5 , class T6 >
void SrcFinfo6< T1, T2, T3, T4, T5, T6 >::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 495 of file SrcFinfo.h.

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

496  {
497  const T1& arg1 = Conv< T1 >::buf2val( &buf );
498  const T2& arg2 = Conv< T2 >::buf2val( &buf );
499  const T3& arg3 = Conv< T3 >::buf2val( &buf );
500  const T4& arg4 = Conv< T4 >::buf2val( &buf );
501  const T5& arg5 = Conv< T5 >::buf2val( &buf );
502  send( e, arg1, arg2, arg3, arg4, arg5, Conv< T6 >::buf2val( &buf ) );
503  }
Definition: Conv.h:30
void send(const Eref &e, const T1 &arg1, const T2 &arg2, const T3 &arg3, const T4 &arg4, const T5 &arg5, const T6 &arg6) const
Definition: SrcFinfo.h:467
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: