Definition at line 24 of file indexmapbidi_test.cc.
◆ ComputePrimes()
void tesseract::IndexMapBiDiTest::ComputePrimes |
( |
IndexMapBiDi * |
map | ) |
|
|
inline |
Definition at line 36 of file indexmapbidi_test.cc.
36 {
38 map->SetMap(2, true);
39
42 }
43 int factor_limit =
static_cast<int>(sqrt(1.0 +
kPrimeLimit));
44 for (int f = 3; f <= factor_limit; f += 2) {
45 if (map->SparseToCompact(f) >= 0) {
47 map->SetMap(f * m, false);
48 }
49 }
50 }
51 map->Setup();
52 }
◆ OutputNameToPath()
std::string tesseract::IndexMapBiDiTest::OutputNameToPath |
( |
const std::string & |
name | ) |
|
|
inline |
Definition at line 32 of file indexmapbidi_test.cc.
32 {
34 }
static std::string JoinPath(const std::string &s1, const std::string &s2)
◆ SetUp()
void tesseract::IndexMapBiDiTest::SetUp |
( |
| ) |
|
|
inlineoverrideprotectedvirtual |
◆ TestPrimes()
void tesseract::IndexMapBiDiTest::TestPrimes |
( |
const IndexMap & |
map | ) |
|
|
inline |
The documentation for this class was generated from the following file: