Logo Search packages:      
Sourcecode: virtualbox-ose version File versions

nsCheapStringSet Class Reference

#include <nsCheapSets.h>

List of all members.


Detailed Description

A string set that takes up minimal size when there are 0 or 1 strings in the set. Use for cases where sizes of 0 and 1 are even slightly common.

Definition at line 47 of file nsCheapSets.h.


Public Member Functions

PRBool Contains (const nsAString &aVal)
nsresult Put (const nsAString &aVal)
void Remove (const nsAString &aVal)

Private Types

typedef PRUint64 PtrBits

Private Member Functions

nsStringHashSet * GetHash ()
nsAString * GetStr ()
nsresult InitHash (nsStringHashSet **aSet)
nsresult SetStr (const nsAString &aVal)

Private Attributes

void * mValOrHash

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

Generated by  Doxygen 1.6.0   Back to index