Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Protected Attributes
nsContentListKey Class Reference

Class that's used as the key to hash nsContentList implementations for fast retrieval. More...

#include <nsContentList.h>

Inheritance diagram for nsContentListKey:
Inheritance graph
[legend]
Collaboration diagram for nsContentListKey:
Collaboration graph
[legend]

List of all members.

Public Member Functions

 nsContentListKey (nsIDocument *aDocument, nsIAtom *aMatchAtom, PRInt32 aMatchNameSpaceId, nsIContent *aRootContent)
 nsContentListKey (const nsContentListKey &aContentListKey)
PRBool Equals (const nsContentListKey &aContentListKey) const
PRUint32 GetHash (void) const

Protected Attributes

nsCOMPtr< nsIAtommMatchAtom
PRInt32 mMatchNameSpaceId
nsIDocumentmDocument
nsIContentmRootContent

Detailed Description

Class that's used as the key to hash nsContentList implementations for fast retrieval.

Definition at line 99 of file nsContentList.h.


Constructor & Destructor Documentation

nsContentListKey::nsContentListKey ( nsIDocument aDocument,
nsIAtom aMatchAtom,
PRInt32  aMatchNameSpaceId,
nsIContent aRootContent 
) [inline]

Definition at line 102 of file nsContentList.h.

    : mMatchAtom(aMatchAtom),
      mMatchNameSpaceId(aMatchNameSpaceId),
      mDocument(aDocument),
      mRootContent(aRootContent)
  {
  }

Definition at line 113 of file nsContentList.h.

    : mMatchAtom(aContentListKey.mMatchAtom),
      mMatchNameSpaceId(aContentListKey.mMatchNameSpaceId),
      mDocument(aContentListKey.mDocument),
      mRootContent(aContentListKey.mRootContent)
  {
  }

Member Function Documentation

PRBool nsContentListKey::Equals ( const nsContentListKey aContentListKey) const [inline]

Definition at line 121 of file nsContentList.h.

  {
    return
      mMatchAtom == aContentListKey.mMatchAtom &&
      mMatchNameSpaceId == aContentListKey.mMatchNameSpaceId &&
      mDocument == aContentListKey.mDocument &&
      mRootContent == aContentListKey.mRootContent;
  }

Here is the caller graph for this function:

PRUint32 nsContentListKey::GetHash ( void  ) const [inline]

Definition at line 129 of file nsContentList.h.

Here is the call graph for this function:

Here is the caller graph for this function:


Member Data Documentation

Definition at line 141 of file nsContentList.h.

Definition at line 139 of file nsContentList.h.

Definition at line 140 of file nsContentList.h.

Definition at line 146 of file nsContentList.h.


The documentation for this class was generated from the following file: