Logo Search packages:      
Sourcecode: xulrunner version File versions  Download package

template<class KeyClass, class DataType, class UserDataType>
PRBool nsBaseHashtable< KeyClass, DataType, UserDataType >::Put ( KeyType  aKey,
UserDataType  aData 
) [inline, inherited]

put a new value for the associated key

Parameters:
aKey the key to put
aData the new data
Returns:
always PR_TRUE, unless memory allocation failed

Reimplemented in nsBaseHashtableMT< KeyClass, DataType, UserDataType >.

Definition at line 143 of file nsBaseHashtable.h.

Referenced by nsXULTemplateQueryProcessorRDF::AddMemoryElements(), nsXULContentBuilder::CreateContainerContentsForQuerySet(), nsXULDocument::DoneWalking(), nsBaseHashtableMT< KeyClass, DataType, UserDataType >::Put(), nsXULDocument::ResumeWalk(), and nsXULTemplateBuilder::UpdateResultInContainer().

  {
    EntryType* ent = PutEntry(aKey);

    if (!ent)
      return PR_FALSE;

    ent->mData = aData;

    return PR_TRUE;
  }


Generated by  Doxygen 1.6.0   Back to index