Assignment Search Framework
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
map_loc_hash_function.h
Go to the documentation of this file.
1 /*
2  * map_loc_hash_function.h
3  *
4  * LICENSE HERE
5  *
6  * Created on: 2016-09-29
7  * Author: Rick Valenzano
8  */
9 
10 #ifndef MAP_LOC_HASH_FUNCTION_H_
11 #define MAP_LOC_HASH_FUNCTION_H_
12 
13 #include "../../generic_defs/state_hash_function.h"
14 #include "map_location.h"
16 
22 class MapLocHashFunction: public StateHashFunction<MapLocation>
23 {
24 public:
29 
33  virtual ~MapLocHashFunction();
34 
35  // Overloaded function
36  virtual StateHash getStateHash(const MapLocation &state) const;
37 
44 
51  void setMapDimensions(unsigned width, unsigned height);
52 
53 protected:
54  uint64_t map_width;
55  uint64_t map_height;
56 };
57 
58 #endif /* MAP_LOC_HASH_FUNCTION_H_ */
uint64_t StateHash
The hash value of a state.
Definition: state_hash_function.h:14
MapLocHashFunction()
Definition: map_loc_hash_function.cpp:12
Definition: map_pathfinding_transitions.h:41
uint64_t map_height
The height of the map. Stored as uint64_t to avoid extra type casting.
Definition: map_loc_hash_function.h:55
Definition: state_hash_function.h:22
uint64_t map_width
The width of the map. Stored as uint64_t to avoid extra type casting.
Definition: map_loc_hash_function.h:54
void setMapDimensions(const MapPathfindingTransitions &ops)
Definition: map_loc_hash_function.cpp:27
Definition: map_location.h:21
virtual ~MapLocHashFunction()
Definition: map_loc_hash_function.cpp:16
virtual StateHash getStateHash(const MapLocation &state) const
Definition: map_loc_hash_function.cpp:20
Definition: map_loc_hash_function.h:22