Public Types | Public Member Functions | Protected Attributes

nsCStringKey Class Reference

#include <nsHashtable.h>

Inheritance diagram for nsCStringKey:
Collaboration diagram for nsCStringKey:

List of all members.

Public Types

enum  Ownership { NEVER_OWN, OWN_CLONE, OWN }

Public Member Functions

 nsCStringKey (const nsCStringKey &aStrKey)
 nsCStringKey (const char *str, PRInt32 strLen=-1, Ownership own=OWN_CLONE)
 nsCStringKey (const nsAFlatCString &str)
 nsCStringKey (const nsACString &str)
 ~nsCStringKey (void)
PRUint32 HashCode (void) const
PRBool Equals (const nsHashKey *aKey) const
nsHashKeyClone () const
 nsCStringKey (nsIObjectInputStream *aStream, nsresult *aResult)
nsresult Write (nsIObjectOutputStream *aStream) const
const char * GetString () const
PRUint32 GetStringLength () const

Protected Attributes

char * mStr
PRUint32 mStrLen
Ownership mOwnership

Member Enumeration Documentation


Constructor & Destructor Documentation

nsCStringKey::nsCStringKey ( const nsCStringKey aStrKey  ) 
nsCStringKey::nsCStringKey ( const char *  str,
PRInt32  strLen = -1,
Ownership  own = OWN_CLONE 
nsCStringKey::nsCStringKey ( const nsAFlatCString str  ) 
nsCStringKey::nsCStringKey ( const nsACString str  ) 
nsCStringKey::~nsCStringKey ( void   ) 
nsCStringKey::nsCStringKey ( nsIObjectInputStream aStream,
nsresult aResult 

Member Function Documentation

nsHashKey* nsCStringKey::Clone (  )  const [virtual]

Implements nsHashKey.

PRBool nsCStringKey::Equals ( const nsHashKey aKey  )  const [virtual]

Implements nsHashKey.

const char* nsCStringKey::GetString (  )  const [inline]
PRUint32 nsCStringKey::GetStringLength (  )  const [inline]
PRUint32 nsCStringKey::HashCode ( void   )  const [virtual]

Implements nsHashKey.

nsresult nsCStringKey::Write ( nsIObjectOutputStream aStream  )  const [virtual]

Reimplemented from nsHashKey.

Member Data Documentation

char* nsCStringKey::mStr [protected]
PRUint32 nsCStringKey::mStrLen [protected]

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