#include <SrcFinfo.h>
Public Member Functions | |
~SrcFinfo1 () | |
SrcFinfo1 (const string &name, const string &doc) | |
void | send (const Eref &er, T arg) const |
void | sendTo (const Eref &er, Id tgt, T arg) const |
void | sendVec (const Eref &er, const vector< T > &arg) const |
void | sendBuffer (const Eref &e, double *buf) const |
string | rttiType () const |
string SrcFinfo1< T >::rttiType | ( | ) | const [inline, virtual] |
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.
References ALLDATA, SrcFinfo::getBindIndex(), Element::localDataStart(), Eref::msgDigest(), Element::numLocalData(), and OpFunc1Base< A >::op().
Referenced by SrcFinfo1< T >::sendBuffer(), testCreateMsg(), testSendMsg(), testSharedMsg(), moose::Compartment::vInitProc(), Pool::vProcess(), and Pool::vReinit().
void SrcFinfo1< T >::sendBuffer | ( | const Eref & | e, | |
double * | buf | |||
) | const [inline, virtual] |
Sends contents of buffer on to msg targets Buffer has a header with the TgtInfo.
Implements SrcFinfo.
References SrcFinfo1< T >::send().
References ALLDATA, Id::element(), SrcFinfo::getBindIndex(), Element::localDataStart(), Eref::msgDigest(), Element::numLocalData(), and OpFunc1Base< A >::op().
void SrcFinfo1< T >::sendVec | ( | const Eref & | er, | |
const vector< T > & | arg | |||
) | const [inline] |
Each target gets successive entries from the arg vector. Rolls over if the # of targets exceeds vector size. Fails totally if the targets are off-node.
References ALLDATA, SrcFinfo::getBindIndex(), Element::localDataStart(), Eref::msgDigest(), Element::numLocalData(), and OpFunc1Base< A >::op().