proj home

Files   Classes   Functions   Hierarchy  

simplexface.h

Go to the documentation of this file.
00001 #ifndef SIMPLEXFACE_H
00002 #define SIMPLEXFACE_H
00003 
00004 #include <iosfwd>
00005 using namespace std;
00006 
00007 typedef unsigned int uint;
00008 typedef unsigned int const uintc;
00009 
00010 
00011 //  Brief:  associates a simplex with on of its faces.
00012 //
00013 //
00014 class simplexface
00015 {
00016 public:
00017  
00018   uint id;    // Index to simplex or primitve shape.
00019   uint face;  // The face opposite the associated point.
00020 
00021   // Constructor
00022   simplexface();
00023 
00024   // Constructor
00025   simplexface(uintc _id, uintc _face);
00026 
00027   // Allows this data structure to be used in set and other STL containers.
00028   // So searching is O(log(n)).
00029   bool const operator < (simplexface const & tf) const;
00030 
00031   bool const operator == (simplexface const & tf) const;
00032 
00033   simplexface & operator = (simplexface const & tf);
00034 
00035   ostream & print(ostream & os) const;
00036 
00037 };
00038 
00039 ostream & operator << (ostream & os, simplexface const & x);
00040 
00041 #endif
00042 
00043 

Generated on Fri Mar 4 00:49:31 2011 for Chelton Evans Source by  doxygen 1.5.8