Logo Search packages:      
Sourcecode: xulrunner-1.9 version File versions

template<class KeyClass, class DataType, class UserDataType>
PRUint32 nsBaseHashtable< KeyClass, DataType, UserDataType >::Enumerate ( EnumFunction  enumFunc,
void *  userArg 
) [inline, inherited]

enumerate entries in the hashtable, allowing changes. This functions write-locks the hashtable.

Parameters:
enumFunc enumeration callback
userArg passed unchanged to the EnumFunction

Definition at line 213 of file nsBaseHashtable.h.

Referenced by nsXFormsMDGEngine::AndFlags(), nsXFormsMDGEngine::Clear(), and nsXULDocument::DoneWalking().

  {
    NS_ASSERTION(this->mTable.entrySize,
                 "nsBaseHashtable was not initialized properly.");

    s_EnumArgs enumData = { enumFunc, userArg };
    return PL_DHashTableEnumerate(&this->mTable,
                                  s_EnumStub,
                                  &enumData);
  }


Generated by  Doxygen 1.6.0   Back to index