Code cleanup

This commit is contained in:
DennisOSRM 2011-12-14 18:07:58 +01:00
parent 1409d0e06e
commit fdd85a6328

View File

@ -51,30 +51,24 @@ struct GridEntry {
} }
}; };
struct CompareGridEdgeDataByFileIndex struct CompareGridEdgeDataByFileIndex {
{ bool operator () (const GridEntry & a, const GridEntry & b) const {
bool operator () (const GridEntry & a, const GridEntry & b) const
{
return a.fileIndex < b.fileIndex; return a.fileIndex < b.fileIndex;
} }
}; };
struct CompareGridEdgeDataByRamIndex struct CompareGridEdgeDataByRamIndex {
{
typedef GridEntry value_type; typedef GridEntry value_type;
bool operator () (const GridEntry & a, const GridEntry & b) const bool operator () (const GridEntry & a, const GridEntry & b) const {
{
return a.ramIndex < b.ramIndex; return a.ramIndex < b.ramIndex;
} }
value_type max_value() value_type max_value() {
{
GridEntry e; GridEntry e;
e.ramIndex = (1024*1024) - 1; e.ramIndex = (1024*1024) - 1;
return e; return e;
} }
value_type min_value() value_type min_value() {
{
GridEntry e; GridEntry e;
e.ramIndex = 0; e.ramIndex = 0;
return e; return e;