Edge.cpp File Reference

#include <Edge.h>

Include dependency graph for Edge.cpp:

Go to the source code of this file.

Functions

bool operator== (const Edge &e1, const Edge &e2)
bool operator!= (const Edge &e1, const Edge &e2)
std::ostream & operator<< (std::ostream &flux, const Edge &e)


Function Documentation

bool operator!= ( const Edge e1,
const Edge e2 
)

Definition at line 130 of file Edge.cpp.

00131 {return !(e1==e2);}

std::ostream& operator<< ( std::ostream &  flux,
const Edge e 
)

Definition at line 132 of file Edge.cpp.

References Edge::face_01, Edge::face_10, Edge::half_edge, Edge::index_0, Edge::index_1, Edge::next_edge, and Edge::previous_edge.

00133 {
00134   flux<<"i ["<<e.index_0<<","<<e.index_1<<"] , f ["<<e.face_01<<","<<e.face_10<<"] , e ["<<e.next_edge<<","<<e.previous_edge<<"]"<<" h "<<e.half_edge;
00135   return flux;
00136 }

bool operator== ( const Edge e1,
const Edge e2 
)

Definition at line 111 of file Edge.cpp.

References Edge::face_01, Edge::face_10, Edge::half_edge, Edge::index_0, Edge::index_1, Edge::next_edge, and Edge::previous_edge.

00112 {
00113   if(e1.index_0!=e2.index_0)
00114     return 0;
00115   if(e1.index_1!=e2.index_1)
00116     return 0;
00117   if(e1.face_01!=e2.face_01)
00118     return 0;
00119   if(e1.face_10!=e2.face_10)
00120     return 0;
00121   if(e1.next_edge!=e2.next_edge)
00122     return 0;
00123   if(e1.previous_edge!=e2.previous_edge)
00124     return 0;
00125   if(e1.half_edge!=e2.half_edge)
00126     return 0;
00127 
00128   return 1;
00129 }


Generated on Mon Mar 30 16:56:08 2009 by  doxygen 1.5.6