Assignment Search Framework
 All Classes Files Functions Variables Typedefs Enumerations Enumerator Pages
map_location.h
Go to the documentation of this file.
1 /*
2  * map_location.h
3  *
4  * LICENSE HERE
5  *
6  * Created on: 2016-09-23
7  * Author: Rick Valenzano
8  */
9 
10 #ifndef MAP_LOCATION_H_
11 #define MAP_LOCATION_H_
12 
13 #include <cstdint>
14 #include <iostream>
15 
22 {
23 public:
27  MapLocation();
28 
34  MapLocation(uint16_t x_loc, uint16_t y_loc);
35 
39  virtual ~MapLocation();
40 
41  uint16_t x;
42  uint16_t y;
43 };
44 
52 std::ostream& operator <<(std::ostream & out, const MapLocation &loc);
53 
61 bool operator ==(const MapLocation &loc1, const MapLocation &loc2);
62 
70 bool operator !=(const MapLocation &loc1, const MapLocation &loc2);
71 
72 #endif /* MAP_LOCATION_H_ */
uint16_t y
The y coordinate of the state.
Definition: map_location.h:42
virtual ~MapLocation()
Definition: map_location.cpp:20
std::ostream & operator<<(std::ostream &out, const MapLocation &loc)
Definition: map_location.cpp:24
MapLocation()
Definition: map_location.cpp:12
Definition: map_location.h:21
uint16_t x
The x coordinate of the state.
Definition: map_location.h:41
bool operator==(const MapLocation &loc1, const MapLocation &loc2)
Definition: map_location.cpp:30
bool operator!=(const MapLocation &loc1, const MapLocation &loc2)
Definition: map_location.cpp:35