template T getEntryFromHashMap (Z id, hash_map* hashMap) { // Search the entry in the hashMap if (hashMap) { hash_map::iterator hashMapIterator; hashMapIterator = hashMap->find (id); if (hashMapIterator != hashMap->end()) { // Found it return hashMapIterator->second; } } return NULL; }