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

Go to the source code of this file.

Functions

ostream & operator<< (ostream &s, const Eref &e)
 

Function Documentation

ostream& operator<< ( ostream &  s,
const Eref e 
)

Definition at line 25 of file Eref.cpp.

References Eref::e_, Eref::f_, Element::getName(), and Eref::i_.

26 {
27  if ( e.i_ == 0 ) {
28  if ( e.f_ == 0 )
29  s << e.e_->getName();
30  else
31  s << e.e_->getName() << "[0][" << e.f_ << "]";
32  } else {
33  if ( e.f_ == 0 )
34  s << e.e_->getName() << "[" << e.i_ << "]";
35  else
36  s << e.e_->getName() << "[" << e.i_ << "][" << e.f_ << "]";
37  }
38  return s;
39 }
unsigned int f_
Definition: Eref.h:95
unsigned int i_
Definition: Eref.h:94
Element * e_
Definition: Eref.h:93
const string & getName() const
Definition: Element.cpp:56

+ Here is the call graph for this function: