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

nsCheapInt32Set Class Reference

#include <nsCheapSets.h>

List of all members.


Detailed Description

An integer set that takes up only 4 bytes when there are 0 or 1 integers in the set. Use for cases where sizes of 0 and 1 are even slightly common.

Definition at line 122 of file nsCheapSets.h.


Public Member Functions

PRBool Contains (PRInt32 aVal)
nsresult Put (PRInt32 aVal)
void Remove (PRInt32 aVal)

Private Types

typedef PRUint64 PtrBits

Private Member Functions

nsInt32HashSet * GetHash ()
PRInt32 GetInt ()
nsresult InitHash (nsInt32HashSet **aSet)
PRBool IsInt ()
void SetInt (PRInt32 aInt)

Private Attributes

void * mValOrHash

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

Generated by  Doxygen 1.6.0   Back to index