MOOSE - Multiscale Object Oriented Simulation Environment
All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros
ObjId.cpp File Reference
#include "header.h"
#include "../shell/Shell.h"
+ Include dependency graph for ObjId.cpp:

Go to the source code of this file.

Functions

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

Function Documentation

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

Definition at line 38 of file ObjId.cpp.

References ObjId::dataIndex, ObjId::fieldIndex, and ObjId::id.

39 {
40  if ( i.dataIndex == 0 && i.fieldIndex == 0 )
41  s << i.id;
42  else if ( i.fieldIndex == 0 )
43  s << i.id << "[" << i.dataIndex << "]";
44  else
45  s << i.id << "[" << i.dataIndex << "][" << i.fieldIndex << "]";
46  return s;
47 }
unsigned int fieldIndex
Definition: ObjId.h:100
Id id
Definition: ObjId.h:98
unsigned int dataIndex
Definition: ObjId.h:99
istream& operator>> ( istream &  s,
ObjId i 
)

need to complete implementation

Definition at line 52 of file ObjId.cpp.

References ObjId::id.

53 {
54  s >> i.id;
55  return s;
56 }
Id id
Definition: ObjId.h:98