ObjId Class Reference

#include <ObjId.h>

Collaboration diagram for ObjId:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 ObjId ()
 ObjId (Id i, unsigned int d, unsigned int f=0)
 ObjId (Id i)
 ObjId (const string &path)
string path () const
Eref eref () const
bool operator== (const ObjId &other) const
bool operator!= (const ObjId &other) const
bool operator< (const ObjId &other) const
bool isDataHere () const
bool isGlobal () const
 Returns true if the Element is global.
bool isOffNode () const
 Returns true if we need to go off-node for calling operations.
char * data () const
Elementelement () const
bool bad () const

Public Attributes

Id id
unsigned int dataIndex
unsigned int fieldIndex

Friends

ostream & operator<< (ostream &s, const ObjId &i)
istream & operator>> (istream &s, ObjId &i)

Detailed Description

This class manages lookups for specific data entries in elements, in a node-independent manner. It is basically a composite of Id and DataIndex.


Constructor & Destructor Documentation

ObjId::ObjId (  )  [inline]

Returns the root Id

ObjId::ObjId ( Id  i,
unsigned int  d,
unsigned int  f = 0 
) [inline]

Creates a ObjId using specified Id and DataIndex

ObjId::ObjId ( Id  i  )  [inline]
ObjId::ObjId ( const string &  path  ) 

Creates an ObjId by reading the path string Returns bad on failure.


Member Function Documentation

bool ObjId::bad (  )  const

True if the return value is bad: either returning a failure, or the DataIndex or FieldIndex is out of range. However, this is a node-local funtion so it can't report the FieldIndex status in all cases.

References BADINDEX, dataIndex, fieldIndex, and Element::numData().

Referenced by ReadCell::addChannelMessage(), benchmarkMsg(), testAssortedMsg(), testMsgElementListing(), and testTreeTraversal().

Here is the call graph for this function:

char * ObjId::data (  )  const
Element * ObjId::element (  )  const
Eref ObjId::eref (  )  const
bool ObjId::isDataHere (  )  const

True if the data is present on the current node. Always true for globals, which confuses the matter somewhat.

References dataIndex, element(), and Shell::myNode().

Referenced by LookupField< L, A >::get(), and Field< A >::get().

Here is the call graph for this function:

bool ObjId::isGlobal (  )  const
bool ObjId::isOffNode (  )  const
bool ObjId::operator!= ( const ObjId other  )  const

References dataIndex, fieldIndex, and id.

bool ObjId::operator< ( const ObjId other  )  const

For sorting

References dataIndex, fieldIndex, and id.

bool ObjId::operator== ( const ObjId other  )  const

For equality check

References dataIndex, fieldIndex, and id.

string ObjId::path (  )  const

Returns the absolute path including all array indices.

References eref().

Referenced by Shell::doMove(), Function::getExpr(), Field< A >::getVec(), testObjIdToAndFromPath(), and testTreeTraversal().

Here is the call graph for this function:


Friends And Related Function Documentation

ostream& operator<< ( ostream &  s,
const ObjId i 
) [friend]
istream& operator>> ( istream &  s,
ObjId i 
) [friend]

Member Data Documentation

unsigned int ObjId::dataIndex
unsigned int ObjId::fieldIndex

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

Generated on 1 Jul 2015 for MOOSE by  doxygen 1.6.1