41 #ifndef RELATIVELOCATIONMAP_H_
42 #define RELATIVELOCATION_H_
44 #include "RelativeLocation.h"
68 data =
new vector<T>(size);
72 RelativeLocationMap<T>::~RelativeLocationMap(){
77 T& RelativeLocationMap<T>::get(
int key){
78 if(key < 0 || key > size)
return 0;
83 T& RelativeLocationMap<T>::RelativeLocationMap<T>::get(RelativeLocation location){
84 return get(location.getIndex());
88 T& RelativeLocationMap<T>::operator[](RelativeLocation location){
89 return data[location.getIndex()];
93 int RelativeLocationMap<T>::getSize(){