Back to index

lightning-sunbird  0.9+nobinonly
Public Member Functions | Public Attributes
AtomTableEntry Struct Reference
Inheritance diagram for AtomTableEntry:
Inheritance graph
[legend]
Collaboration diagram for AtomTableEntry:
Collaboration graph
[legend]

List of all members.

Public Member Functions

PRBool IsStaticAtom () const
void SetAtomImpl (AtomImpl *aAtom)
void SetStaticAtomWrapper (nsStaticAtomWrapper *aAtom)
void ClearAtom ()
PRBool HasValue () const
AtomImplGetAtomImpl () const
nsStaticAtomWrapperGetStaticAtomWrapper () const
const nsStaticAtomGetStaticAtom () const
const char * get () const
nsIAtomGetAtom () const

Public Attributes

PtrBits mAtom
PLDHashNumber keyHash

Detailed Description

Definition at line 101 of file nsAtomTable.cpp.


Member Function Documentation

Definition at line 123 of file nsAtomTable.cpp.

                          {
    mAtom = nsnull;
  }

Here is the caller graph for this function:

const char* AtomTableEntry::get ( ) const [inline]

Definition at line 149 of file nsAtomTable.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

nsIAtom* AtomTableEntry::GetAtom ( ) const [inline]

Definition at line 155 of file nsAtomTable.cpp.

                                  {
    nsIAtom* result;
    
    if (IsStaticAtom())
      result = GetStaticAtomWrapper();
    else {
      result = GetAtomImpl();
      NS_ADDREF(result);
    }
    
    return result;
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 132 of file nsAtomTable.cpp.

                                       {
    NS_ASSERTION(!IsStaticAtom(), "This is a static atom, not an AtomImpl");
    return (AtomImpl*) (mAtom & ~0x1);
  }

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 142 of file nsAtomTable.cpp.

Here is the call graph for this function:

Here is the caller graph for this function:

Definition at line 137 of file nsAtomTable.cpp.

                                                           {
    NS_ASSERTION(IsStaticAtom(), "This is an AtomImpl, not a static atom");
    return (nsStaticAtomWrapper*) (mAtom & ~0x1);
  }

Here is the call graph for this function:

Here is the caller graph for this function:

PRBool AtomTableEntry::HasValue ( ) const [inline]

Definition at line 127 of file nsAtomTable.cpp.

                                 {
    return (mAtom & ~0x1) != 0;
  }

Here is the caller graph for this function:

Definition at line 106 of file nsAtomTable.cpp.

                                     {
    return (mAtom & 0x1) != 0;
  }

Here is the caller graph for this function:

void AtomTableEntry::SetAtomImpl ( AtomImpl aAtom) [inline]

Definition at line 110 of file nsAtomTable.cpp.

                                           {
    NS_ASSERTION(aAtom, "Setting null atom");
    mAtom = PtrBits(aAtom);
  }

Here is the caller graph for this function:

Definition at line 115 of file nsAtomTable.cpp.

                                                               {
    NS_ASSERTION(aAtom, "Setting null atom");
    NS_ASSERTION((PtrBits(aAtom) & ~0x1) == PtrBits(aAtom),
                 "Pointers must align or this is broken");
    
    mAtom = PtrBits(aAtom) | 0x1;
  }

Here is the caller graph for this function:


Member Data Documentation

Definition at line 113 of file pldhash.h.

Definition at line 104 of file nsAtomTable.cpp.


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