//===- HashEntry.tcc ------------------------------------------------------===// // // The MCLinker Project // // This file is distributed under the University of Illinois Open Source // License. See LICENSE.TXT for details. // //===----------------------------------------------------------------------===// //===--------------------------------------------------------------------===// // template implementation of HashEntry template HashEntry::HashEntry(const KeyType& pKey) : m_Key(pKey) { } template HashEntry::~HashEntry() { } template bool HashEntry::compare(const KeyType& pKey) { static KeyCompare comparator; return comparator(m_Key, pKey); } //===--------------------------------------------------------------------===// // template implementation of EntryFactory template EntryFactory::EntryFactory() { } template EntryFactory::~EntryFactory() { } template void EntryFactory::destroy(HashEntryTy* pEntry) { delete pEntry; } template HashEntryTy* EntryFactory::produce( const typename EntryFactory::key_type& pKey) { return new HashEntryTy(pKey); }