Files Classes Functions Hierarchy
00001 #include <simplexface.h> 00002 00003 00004 #include <iostream> 00005 using namespace std; 00006 00007 simplexface::simplexface() 00008 : id(0), face(0) 00009 { 00010 } 00011 00012 simplexface::simplexface(uintc _id, uintc _face) 00013 : id(_id), face(_face) 00014 { 00015 } 00016 00017 simplexface & simplexface::operator = 00018 ( 00019 simplexface const & tf 00020 ) 00021 { 00022 id = tf.id; 00023 face = tf.face; 00024 00025 return *this; 00026 } 00027 00028 00029 bool const simplexface::operator < (simplexface const & tf) const 00030 { 00031 if (id!=tf.id) 00032 return id < tf.id; 00033 00034 return face < tf.face; 00035 } 00036 00037 00038 bool const simplexface::operator == (simplexface const & tf) const 00039 { 00040 if (id!=tf.id) 00041 return false; 00042 00043 if (face!=tf.face) 00044 return false; 00045 00046 return true; 00047 } 00048 00049 00050 00051 ostream & simplexface::print(ostream & os) const 00052 { 00053 return os << id << " " << face; 00054 } 00055 00056 00057 00058 ostream & operator << (ostream & os, simplexface const & x) 00059 { 00060 return x.print(os); 00061 } 00062 00063 00064 00065
1.5.8