Back to index

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

#include <nsTreeStyleCache.h>

Collaboration diagram for nsTransitionKey:
Collaboration graph

List of all members.

Public Member Functions

 nsTransitionKey (PRUint32 aState, nsIAtom *aSymbol)
PRUint32 HashCode (void) const
PRBool Equals (const nsHashKey *aKey) const
nsHashKey * Clone (void) const

Public Attributes

PRUint32 mState
nsCOMPtr< nsIAtommInputSymbol

Detailed Description

Definition at line 71 of file nsTreeStyleCache.h.

Constructor & Destructor Documentation

nsTransitionKey::nsTransitionKey ( PRUint32  aState,
nsIAtom aSymbol 
) [inline]

Definition at line 77 of file nsTreeStyleCache.h.

:mState(aState), mInputSymbol(aSymbol) {};

Here is the caller graph for this function:

Member Function Documentation

nsHashKey* nsTransitionKey::Clone ( void  ) const [inline]

Definition at line 91 of file nsTreeStyleCache.h.

    return new nsTransitionKey(mState, mInputSymbol);

Here is the call graph for this function:

PRBool nsTransitionKey::Equals ( const nsHashKey *  aKey) const [inline]

Definition at line 86 of file nsTreeStyleCache.h.

    nsTransitionKey* key = (nsTransitionKey*)aKey;
    return key->mState == mState && key->mInputSymbol == mInputSymbol;
PRUint32 nsTransitionKey::HashCode ( void  ) const [inline]

Definition at line 79 of file nsTreeStyleCache.h.

    // Make a 32-bit integer that combines the low-order 16 bits of the state and the input symbol.
    PRInt32 hb = mState << 16;
    PRInt32 lb = (NS_PTR_TO_INT32(mInputSymbol.get()) << 16) >> 16;
    return hb+lb;

Here is the call graph for this function:

Member Data Documentation

Definition at line 75 of file nsTreeStyleCache.h.

Definition at line 74 of file nsTreeStyleCache.h.

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