Back to index

lightning-sunbird  0.9+nobinonly
Defines
nsHashSets.h File Reference
#include "nsDoubleHashtable.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Defines

#define DECL_DHASH_SET(CLASSNAME, ENTRY_CLASS, KEY_TYPE)
#define DHASH_SET(CLASSNAME, ENTRY_CLASS, KEY_TYPE)   DHASH_WRAPPER(CLASSNAME##Super,ENTRY_CLASS,KEY_TYPE)
#define DHASH_EXPORT   NS_COM
#define DHASH_EXPORT

Define Documentation

#define DECL_DHASH_SET (   CLASSNAME,
  ENTRY_CLASS,
  KEY_TYPE 
)
Value:
DECL_DHASH_WRAPPER(CLASSNAME##Super,ENTRY_CLASS,KEY_TYPE)                     \
class DHASH_EXPORT CLASSNAME : public CLASSNAME##Super {                      \
public:                                                                       \
  CLASSNAME() : CLASSNAME##Super() { }                                        \
  ~CLASSNAME() { }                                                            \
  nsresult Put(const KEY_TYPE aKey) {                                         \
    return AddEntry(aKey) ? NS_OK : NS_ERROR_OUT_OF_MEMORY;                   \
  }                                                                           \
  PRBool Contains(const KEY_TYPE aKey) {                                      \
    return GetEntry(aKey) ? PR_TRUE : PR_FALSE;                               \
  }                                                                           \
};

Definition at line 78 of file nsHashSets.h.

Definition at line 104 of file nsHashSets.h.

Definition at line 104 of file nsHashSets.h.

#define DHASH_SET (   CLASSNAME,
  ENTRY_CLASS,
  KEY_TYPE 
)    DHASH_WRAPPER(CLASSNAME##Super,ENTRY_CLASS,KEY_TYPE)

Definition at line 92 of file nsHashSets.h.