1 #include "BoundaryElement.h" 2 3 static int nextTag = 1; 4 5 void BoundaryElement:: newTag()6newTag() 7 { 8 tag = nextTag++; 9 } 10 operator <<(std::ostream & o,const BoundaryElement & A)11std::ostream& operator<< (std::ostream& o, const BoundaryElement& A) 12 { 13 o << A.tag << ' ' << A.edge << ' ' << A.left << ' ' << A.right; 14 if (A.c != NULL) 15 o << " 203 " << A.a->tag << ' ' << A.b->tag << ' ' << A.c->tag << '\n'; 16 else 17 o << " 202 " << A.a->tag << ' ' << A.b->tag << '\n'; 18 return o; 19 } 20