Back to index

tetex-bin  3.0
Classes | Defines
GHash.h File Reference
#include <aconf.h>
#include "gtypes.h"
This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Classes

class  GHash

Defines

#define deleteGHash(hash, T)

Define Documentation

#define deleteGHash (   hash,
  T 
)
Value:
do {                                             \
    GHash *_hash = (hash);                         \
    {                                              \
      GHashIter *_iter;                            \
      GString *_key;                               \
      void *_p;                                    \
      _hash->startIter(&_iter);                    \
      while (_hash->getNext(&_iter, &_key, &_p)) { \
        delete (T*)_p;                             \
      }                                            \
      delete _hash;                                \
    }                                              \
  } while(0)

Definition at line 61 of file GHash.h.