Public Member Functions | |
| FullComparator (int _vertexSize) | |
| bool | operator() (const Vertex &a, const Vertex &b) const |
Private Attributes | |
| int | vertexSize |
|
|
Definition at line 86 of file cmodfix.cpp. References vertexSize. 00086 : 00087 vertexSize(_vertexSize) 00088 { 00089 }
|
|
||||||||||||
|
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 }
|
|
|
Definition at line 107 of file cmodfix.cpp. Referenced by FullComparator(), and operator()(). |
1.4.1