Skip to content

Commit

Permalink
refactor and migrate root directory
Browse files Browse the repository at this point in the history
  • Loading branch information
DennisOSRM committed May 8, 2014
1 parent c924b20 commit 881a57b
Showing 1 changed file with 4 additions and 7 deletions.
11 changes: 4 additions & 7 deletions typedefs.h
Original file line number Diff line number Diff line change
Expand Up @@ -36,18 +36,15 @@ SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
#define M_PI 3.14159265358979323846
#endif

template<typename digitT>
digitT round(digitT x) {
return std::floor(x + 0.5);
}
template <typename digitT> digitT round(digitT x) { return std::floor(x + 0.5); }
#endif

typedef unsigned int NodeID;
typedef unsigned int EdgeID;
typedef int EdgeWeight;

static const NodeID SPECIAL_NODEID = std::numeric_limits<unsigned>::max();
static const EdgeID SPECIAL_EDGEID = std::numeric_limits<unsigned>::max();
static const EdgeWeight INVALID_EDGE_WEIGHT = std::numeric_limits<int>::max();
constexpr NodeID SPECIAL_NODEID = std::numeric_limits<unsigned>::max();
constexpr EdgeID SPECIAL_EDGEID = std::numeric_limits<unsigned>::max();
constexpr EdgeWeight INVALID_EDGE_WEIGHT = std::numeric_limits<int>::max();

#endif /* TYPEDEFS_H_ */

0 comments on commit 881a57b

Please sign in to comment.