~dominik-burgdoerfer/webplodder/0.3

« back to all changes in this revision

Viewing changes to src/webplodder/utils/comparenodes.cpp

  • Committer: Dominik Burgdörfer
  • Date: 2010-06-01 22:43:27 UTC
  • Revision ID: dominik@domachine-20100601224327-hur0s6hx5dyleevu
Initial commit

Show diffs side-by-side

added added

removed removed

Lines of Context:
 
1
// =======================================================================
 
2
// 
 
3
//       Filename:  comparenodes.cpp
 
4
// 
 
5
//    Description:  
 
6
// 
 
7
//        Version:  1.0
 
8
//        Created:  03.05.2010 18:17:34
 
9
//       Revision:  none
 
10
//       Compiler:  g++
 
11
// 
 
12
//         Author:  Dominik 'domachine' Burgdörfer (-), dominik.burgdoerfer@googlemail.com
 
13
//        Company:  -
 
14
// 
 
15
// =======================================================================
 
16
 
 
17
#include "comparenodes.hpp"
 
18
#include "../navigation/node.hpp"
 
19
 
 
20
namespace webplodder {
 
21
    namespace utils {
 
22
        bool compareNodes(const navigation::Node& node1,
 
23
                          const navigation::Node& node2)
 
24
        {
 
25
            return (node1.pos() < node2.pos());
 
26
        }
 
27
    }
 
28
}