Main Page | Namespace List | Class Hierarchy | Alphabetical List | Class List | Directories | File List | Namespace Members | Class Members | File Members

FullComparator Class Reference

List of all members.

Public Member Functions

 FullComparator (int _vertexSize)
bool operator() (const Vertex &a, const Vertex &b) const

Private Attributes

int vertexSize

Constructor & Destructor Documentation

FullComparator::FullComparator int  _vertexSize  )  [inline]
 

Definition at line 86 of file cmodfix.cpp.

References vertexSize.

00086                                     :
00087         vertexSize(_vertexSize)
00088     {
00089     }


Member Function Documentation

bool FullComparator::operator() const Vertex a,
const Vertex b
const [inline]
 

Definition at line 91 of file cmodfix.cpp.

References vertexSize.

00092     {
00093         const char* s0 = reinterpret_cast<const char*>(a.attributes);
00094         const char* s1 = reinterpret_cast<const char*>(b.attributes);
00095         for (int i = 0; i < vertexSize; i++)
00096         {
00097             if (s0[i] < s1[i])
00098                 return true;
00099             else if (s0[i] > s1[i])
00100                 return false;
00101         }
00102 
00103         return false;
00104     }


Member Data Documentation

int FullComparator::vertexSize [private]
 

Definition at line 107 of file cmodfix.cpp.

Referenced by FullComparator(), and operator()().


The documentation for this class was generated from the following file:
Generated on Sat Jan 14 22:33:20 2006 for Celestia by  doxygen 1.4.1