10 #define _MSG_ELEMENT_H
32 unsigned int( *numMsg )(),
33 char* ( *lookupMsg )(
unsigned int ) )
146 unsigned int fieldIndex = 0 )
const
187 char* ( *lookupMsg_ )(
unsigned int );
190 #endif // _Msg_ELEMENT_H
Element * copyElement(Id newParent, Id newId, unsigned int n, bool toGlobal) const
void zombieSwap(const Cinfo *newCinfo)
unsigned int numField(unsigned int rawIndex) const
Inherited virtual. Returns number of field entries for specified data.
unsigned int localDataStart() const
Inherited virtual. Returns index of first data entry on node.
void resize(unsigned int newNumData)
unsigned int startDataIndex(unsigned int node) const
Inherited virtual. As this is a global we always return zero.
unsigned int getNode(unsigned int dataIndex) const
Inherited virtual. Just returns current node.
bool isGlobal() const
True if there is a copy of every dataEntry on all nodes.
MsgElement(Id id, const Cinfo *c, const string &name, unsigned int(*numMsg)(), char *(*lookupMsg)(unsigned int))
virtual void zombieSwap(const Cinfo *zCinfo)
virtual func, this base version must be called by all derived classes
unsigned int rawIndex(unsigned int dataIndex) const
Inherited virtual. Just returns index.
unsigned int totNumLocalField() const
unsigned int getNumOnNode(unsigned int node) const
void resizeField(unsigned int rawIndex, unsigned int newNumField)
unsigned int(* numMsg_)()
char * data(unsigned int rawIndex, unsigned int fieldIndex=0) const
static unsigned int myNode()
unsigned int numData() const
Inherited virtual. Returns number of data entries.
unsigned int numLocalData() const
Inherited virtual. Returns number of data entries.
char *(* lookupMsg_)(unsigned int)
void replaceCinfo(const Cinfo *newCinfo)
Support function for zombieSwap, replaces Cinfo.