Ignore:
Timestamp:
Jan 23, 2006, 10:24:11 PM (19 years ago)
Author:
mjs
Message:

Reviewed by Tim Omernick.


  • kjs/array_object.cpp:
  • kjs/identifier.cpp:
  • kjs/internal.cpp:
  • kxmlcore/HashMap.h: (KXMLCore::PairFirstExtractor::extract):
  • kxmlcore/HashMapPtrSpec.h: (KXMLCore::):
  • kxmlcore/HashSet.h: (KXMLCore::IdentityExtractor::extract):
  • kxmlcore/HashTable.h: (KXMLCore::addIterator): (KXMLCore::removeIterator): (KXMLCore::HashTable::add): (KXMLCore::HashTable::isEmptyBucket): (KXMLCore::HashTable::isDeletedBucket): (KXMLCore::HashTable::HashTable): (KXMLCore::HashTable::lookup): (KXMLCore::HashTable::add): (KXMLCore::HashTable::reinsert): (KXMLCore::HashTable::find): (KXMLCore::HashTable::contains): (KXMLCore::HashTable::remove): (KXMLCore::HashTable::allocateTable): (KXMLCore::HashTable::deallocateTable): (KXMLCore::HashTable::expand): (KXMLCore::HashTable::rehash): (KXMLCore::HashTable::clear): (KXMLCore::HashTable::swap): (KXMLCore::HashTable::operator): (KXMLCore::HashTable::checkTableConsistency): (KXMLCore::HashTable::checkTableConsistencyExceptSize): (KXMLCore::HashTable::invalidateIterators):
File:
1 edited

Legend:

Unmodified
Added
Removed
  • trunk/JavaScriptCore/kxmlcore/HashMap.h

    r12321 r12328  
    3030namespace KXMLCore {
    3131
    32 template<typename PairType>
    33 inline typename PairType::first_type const& extractFirst(const PairType& value)
    34 {
    35     return value.first;
    36 }
     32template<typename Key, typename Mapped>
     33class PairFirstExtractor
     34{
     35    typedef pair<Key, Mapped> ValueType;
     36       
     37public:
     38    static const Key& extract(const ValueType& value)
     39    {
     40        return value.first;
     41    }
     42};
    3743
    3844template<typename Key, typename Mapped, typename HashFunctions>
     
    6874    typedef PairHashTraits<KeyTraits, MappedTraits> ValueTraits;
    6975 private:
    70     typedef HashTable<KeyType, ValueType, extractFirst<ValueType>, HashFunctions, ValueTraits, KeyTraits> ImplType;
     76    typedef HashTable<KeyType, ValueType, PairFirstExtractor<KeyType, MappedType>, HashFunctions, ValueTraits, KeyTraits> ImplType;
    7177    typedef HashMapTranslator<Key, Mapped, HashFunctions> TranslatorType;
    7278 public:
Note: See TracChangeset for help on using the changeset viewer.