HOG2
|
#include <algorithm>
#include <array>
#include <bitset>
#include <cassert>
#include <cstring>
#include <iostream>
#include <numeric>
#include <regex>
#include <sstream>
#include <string>
#include "SearchEnvironment.h"
#include "vectorCache.h"
Go to the source code of this file.
Enumerations | |
enum | WitnessAction { kUp, kDown, kLeft, kRight, kStart, kEnd } |
enum | WitnessRegionConstraintType { kNoRegionConstraint = 0, kSeparation = 1, kStar = 2, kTetris = 3, kNegativeTetris = 4, kTriangle = 5, kEraser = 6, kRegionConstraintCount = 7 } |
enum | WitnessPathConstraintType { kNoPathConstraint = 0, kMustCross = 1, kCannotCross = 2, kPathConstraintCount = 3 } |
Functions | |
template<int width, int height> | |
int | GetEdgeHash (bool horizontal, int x, int y) |
template<int width, int height> | |
int | GetEdgeHash (int x1, int y1, int x2, int y2) |
template<int width, int height> | |
static bool | operator== (const WitnessState< width, height > &a, const WitnessState< width, height > &b) |
template<int width, int height> | |
std::ostream & | operator<< (std::ostream &os, const Witness< width, height > &witness) |
template<int width, int height> | |
std::istream & | operator>> (std::istream &is, Witness< width, height > &witness) |
enum WitnessAction |
int GetEdgeHash | ( | bool | horizontal, |
int | x, | ||
int | y | ||
) |
int GetEdgeHash | ( | int | x1, |
int | y1, | ||
int | x2, | ||
int | y2 | ||
) |
|
inline |
Definition at line 3140 of file Witness.h.
References Witness< width, height >::Serialize().
|
static |