SrcFinfo Class Reference

#include <SrcFinfo.h>

Inheritance diagram for SrcFinfo:
Inheritance graph
[legend]
Collaboration diagram for SrcFinfo:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 SrcFinfo (const string &name, const string &doc)
 ~SrcFinfo ()
void registerFinfo (Cinfo *c)
bool strSet (const Eref &tgt, const string &field, const string &arg) const
bool strGet (const Eref &tgt, const string &field, string &returnValue) const
BindIndex getBindIndex () const
void setBindIndex (BindIndex b)
bool checkTarget (const Finfo *target) const
bool addMsg (const Finfo *target, ObjId mid, Element *src) const
virtual void sendBuffer (const Eref &e, double *buf) const =0

Static Public Attributes

static const BindIndex BadBindIndex = 65535

Detailed Description

This set of classes define Message Sources. Their main job is to supply a type-safe send operation, and to provide typechecking for it.


Constructor & Destructor Documentation

SrcFinfo::SrcFinfo ( const string &  name,
const string &  doc 
)
SrcFinfo::~SrcFinfo (  )  [inline]

Member Function Documentation

bool SrcFinfo::addMsg ( const Finfo target,
ObjId  mid,
Element src 
) const

First checks that the target will work, then adds the Msg.

References Element::addMsgAndFunc(), OpFunc::checkFinfo(), d, DestFinfo::getFid(), and DestFinfo::getOpFunc().

Here is the call graph for this function:

bool SrcFinfo::checkTarget ( const Finfo target  )  const

Checks that the target will work for this Msg.

References OpFunc::checkFinfo(), d, and DestFinfo::getOpFunc().

Here is the call graph for this function:

BindIndex SrcFinfo::getBindIndex (  )  const
void SrcFinfo::registerFinfo ( Cinfo c  )  [virtual]

Returns string-ified form to handle template expectations for name field string getName() const; Assign function Ids, bindIndex and so on.

Implements Finfo.

References Cinfo::registerBindIndex().

Here is the call graph for this function:

virtual void SrcFinfo::sendBuffer ( const Eref e,
double *  buf 
) const [pure virtual]

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

Implemented in SrcFinfo0, SrcFinfo1< T >, SrcFinfo2< T1, T2 >, SrcFinfo3< T1, T2, T3 >, SrcFinfo4< T1, T2, T3, T4 >, SrcFinfo5< T1, T2, T3, T4, T5 >, and SrcFinfo6< T1, T2, T3, T4, T5, T6 >.

void SrcFinfo::setBindIndex ( BindIndex  b  ) 

Referenced by testSendMsg().

bool SrcFinfo::strGet ( const Eref tgt,
const string &  field,
string &  returnValue 
) const [inline, virtual]

Function to return value of field into a string argument. Returns true on success. Normally called only from SetGet::strGet.

Implements Finfo.

bool SrcFinfo::strSet ( const Eref tgt,
const string &  field,
const string &  arg 
) const [inline, virtual]

Function to set this field using a string argument. Returns true on success. Normally called only from SetGet::strSet.

Implements Finfo.


Member Data Documentation

const BindIndex SrcFinfo::BadBindIndex = 65535 [static]

This set of classes define Message Sources. Their main job is to supply a type-safe send operation, and to provide typechecking for it.

Referenced by getBindIndex().


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

Generated on 1 Jul 2015 for MOOSE by  doxygen 1.6.1