Browse Source

Removed Bucket::erase()

release/0.19
Jessica James 8 years ago
parent
commit
03a09b3c5f
  1. 7
      Jupiter/Hash_Table.h
  2. 9
      Jupiter/Hash_Table_Imp.h

7
Jupiter/Hash_Table.h

@ -100,13 +100,6 @@ namespace Jupiter
*/ */
template<typename CallT> void callback(CallT &in_callback) const; template<typename CallT> void callback(CallT &in_callback) const;
/**
* @brief Erases all entries from the bucket
*
* @return Number of entries erased
*/
size_t erase();
/** /**
* @brief Copy assignment operator * @brief Copy assignment operator
* *

9
Jupiter/Hash_Table_Imp.h

@ -163,15 +163,6 @@ void Jupiter::Hash_Table<KeyT, ValueT, InKeyT, InValueT, HashF>::Bucket::callbac
in_callback(*node->data); in_callback(*node->data);
} }
template<typename KeyT, typename ValueT, typename InKeyT, typename InValueT, size_t(*HashF)(const InKeyT &)>
size_t Jupiter::Hash_Table<KeyT, ValueT, InKeyT, InValueT, HashF>::Bucket::erase()
{
size_t length = m_entries.size();
m_entries.eraseAndDelete();
return length;
}
template<typename KeyT, typename ValueT, typename InKeyT, typename InValueT, size_t(*HashF)(const InKeyT &)> template<typename KeyT, typename ValueT, typename InKeyT, typename InValueT, size_t(*HashF)(const InKeyT &)>
typename Jupiter::Hash_Table<KeyT, ValueT, InKeyT, InValueT, HashF>::Bucket &Jupiter::Hash_Table<KeyT, ValueT, InKeyT, InValueT, HashF>::Bucket::operator=(const Bucket &in_bucket) typename Jupiter::Hash_Table<KeyT, ValueT, InKeyT, InValueT, HashF>::Bucket &Jupiter::Hash_Table<KeyT, ValueT, InKeyT, InValueT, HashF>::Bucket::operator=(const Bucket &in_bucket)
{ {

Loading…
Cancel
Save