HOG2
Classes | Namespaces | Macros | Typedefs | Enumerations | Functions | Variables
GraphEnvironment.h File Reference
#include "SearchEnvironment.h"
#include "UnitSimulation.h"
#include "Graph.h"
#include "GLUtil.h"
#include <iostream>
#include <stdint.h>
#include <unordered_map>
#include <functional>
Include dependency graph for GraphEnvironment.h:
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  graphMove
 
class  GraphHeuristic
 
class  GraphHeuristicContainer
 
class  GraphLabelHeuristic
 
class  GraphMapHeuristic
 
class  GraphMapPerfectHeuristic
 
class  GraphDistanceHeuristic
 
class  GraphMapInconsistentHeuristic
 
class  GraphEnvironment
 

Namespaces

 GraphSearchConstants
 

Macros

#define UINT32_MAX   4294967295U
 
#define UINT16_MAX   65535
 

Typedefs

typedef unsigned long graphState
 
typedef UnitSimulation< graphState, graphMove, GraphEnvironmentGraphSimulation
 

Enumerations

enum  {
  GraphSearchConstants::kHCost = 0, GraphSearchConstants::kXCoordinate = 5, GraphSearchConstants::kYCoordinate = 6, GraphSearchConstants::kZCoordinate = 7,
  GraphSearchConstants::kTemporaryLabel = 8, GraphSearchConstants::kMapX = 9, GraphSearchConstants::kMapY = 10, GraphSearchConstants::kFirstData = 11
}
 
enum  placementScheme { kFarPlacement, kRandomPlacement, kAvoidPlacement }
 
enum  tHeuristicCombination {
  kIgnore = 0, kRandom = 1, kMax = 2, kGridMax = 3,
  kCompressed = 4
}
 

Functions

static bool operator== (const graphMove &l1, const graphMove &l2)
 
GraphGraphSearchConstants::GetEightConnectedGraph (Map *m, bool directed)
 
GraphGraphSearchConstants::GetFourConnectedGraph (Map *m, bool directed)
 
GraphGraphSearchConstants::GetGraph (Map *m)
 
GraphGraphSearchConstants::GetUndirectedGraph (Map *m)
 GetMapGraph(map) More...
 
void GraphSearchConstants::AddNodesToGraph (Map *m, Graph *g)
 
void GraphSearchConstants::AddEdges (Map *m, Graph *g, int x, int y, bool directed, double straigtEdgeCost, double diagEdgeCost, int straightEdgeProb, int diagEdgeProb)
 AddEdges(map, Graph, x, y) More...
 

Variables

const double GraphSearchConstants::kStraightEdgeCost = 1.0
 
const double GraphSearchConstants::kDiagonalEdgeCost = ROOT_TWO
 

Macro Definition Documentation

◆ UINT16_MAX

#define UINT16_MAX   65535

Definition at line 29 of file GraphEnvironment.h.

◆ UINT32_MAX

#define UINT32_MAX   4294967295U

Definition at line 26 of file GraphEnvironment.h.

Typedef Documentation

◆ GraphSimulation

Definition at line 385 of file GraphEnvironment.h.

◆ graphState

typedef unsigned long graphState

Definition at line 32 of file GraphEnvironment.h.

Enumeration Type Documentation

◆ placementScheme

Enumerator
kFarPlacement 
kRandomPlacement 
kAvoidPlacement 

Definition at line 216 of file GraphEnvironment.h.

◆ tHeuristicCombination

Enumerator
kIgnore 
kRandom 
kMax 
kGridMax 
kCompressed 

Definition at line 254 of file GraphEnvironment.h.

Function Documentation

◆ operator==()

static bool operator== ( const graphMove l1,
const graphMove l2 
)
static

Definition at line 42 of file GraphEnvironment.h.

References graphMove::from, and graphMove::to.