Google OR-Tools: ortools/util/cached_log.h Source File

Go to the documentation of this file.

1

2

3

4

5

6

7

8

9

10

11

12

13

14#ifndef ORTOOLS_UTIL_CACHED_LOG_H_

15#define ORTOOLS_UTIL_CACHED_LOG_H_

16

17#include <cstdint>

18#include <vector>

19

21

22

23

24

25

26

28 public:

30

31

34

36

37

38 void Init(int cache_size);

39

40

42

43 private:

44 std::vector<double> cache_;

45};

46}

47

48#endif

double Log2(int64_t input) const

void Init(int cache_size)

CachedLog(const CachedLog &)=delete

CachedLog & operator=(const CachedLog &)=delete

static int input(yyscan_t yyscanner)