All Distance Sketch
0.1
All distance sketch based algorithms
Main Page
Related Pages
Namespaces
Classes
Files
Examples
File List
src
common.h
1
#ifndef SRC_COMMON_H_
2
#define SRC_COMMON_H_
3
4
// C headers
5
#include <limits.h>
6
#include <dirent.h>
7
// C++ Headers
8
#include <mutex>
9
#include <thread>
10
#include <cstring>
11
#include <cstdlib>
12
#include <cstdio>
13
#include <fstream>
14
#include <iostream>
15
#include <list>
16
#include <set>
17
#include <string>
18
#include <vector>
19
#include <algorithm>
20
#include <random>
21
#include <unordered_map>
22
#include <utility>
23
// Other libs
24
#include "boost/archive/text_oarchive.hpp"
25
#include "boost/archive/text_iarchive.hpp"
26
#include "boost/config.hpp"
27
#include "boost/random/mersenne_twister.hpp"
28
#include "boost/random/uniform_real.hpp"
29
#include "boost/random/uniform_real_distribution.hpp"
30
#include "boost/random/uniform_int_distribution.hpp"
31
#include "boost/random/variate_generator.hpp"
32
#include "boost/random/linear_congruential.hpp"
33
34
35
#define PROTO_BUF 1
36
37
#define NOTICE 6
38
#define DEBUG1 5
39
#define DEBUG2 4
40
#define DEBUG3 3
41
#define DEBUG4 2
42
#define DEBUG5 1
43
44
#define CURRENT_LOG_LEVEL NOTICE
45
46
#define LOG_M(level, msg)\
47
if ((level) >= CURRENT_LOG_LEVEL) {\
48
std::cout << __FILE__ << ":" << __LINE__ << " " << msg << std::endl; \
49
} \
50
51
#define _unused(x) ((void)x)
52
53
namespace
all_distance_sketch
{
56
typedef
std::vector<bool> TBitSet;
61
namespace
constants {
62
const
float
UNREACHABLE
= 999999999;
63
}
// namespace constants
64
66
namespace
graph {
67
typedef
float
EdgeWeight;
68
}
// namespace graph
69
70
}
// namespace all_distance_sketch
71
72
#endif // SRC_COMMON_H_
all_distance_sketch
Definition:
common.h:53
all_distance_sketch::constants::UNREACHABLE
const float UNREACHABLE
Definition:
common.h:62
Generated on Fri Jun 3 2016 12:44:40 for All Distance Sketch by
1.8.9.1