eg_gcit.h File Reference


Detailed Description

Definition in file eg_gcit.h.

#include <stdlib.h>
#include <stdio.h>
#include <string.h>
#include <limits.h>
#include <float.h>
#include "eg_macros.h"
#include "eg_mem.h"

Include dependency graph for eg_gcit.h:

This graph shows which files directly or indirectly include this file:

Go to the source code of this file.

Data Structures

struct  EGgcIt_t
 Structure to store the information relevant to the binary gray code iterator. More...

Defines

#define EG_GCIT_DBG   0
 Debug level for the heap.
#define EGgcItClear(__gc)
 free all internally allocated memory for the given EGgcIt_t structure.
#define EGgcItGetChange(__gc)   ((const int)((__gc)->changed_pos))
 return which position in the binary string changed in the last iteration.
#define EGgcItGetSize(__gc)   ((const int)((__gc)->sz))
 Return the number of bits for the given gray code iterator.
#define EGgcItGetTuple(__gc)   ((const int*const)((__gc)->tuple))
 Return a constant pointer to the current tuple.
#define EGgcItInit(__gc, __sz)
 Initialize a binary gray code iterator, and set the iterator to the zero position.
#define EGgcItNext(__gc)
 move to the next binary string, if no next string exists (i.e. we finish the loop), return 0, otherwise return 1.
#define EGgcItReset(__gc)
 Reset an initialized gray code iterator to the zero position.


Generated on Wed Nov 21 09:38:15 2007 for MTgomory by  doxygen 1.4.6