ANTLR3C  3.3.1
ANTLR3_HASH_ENUM_struct Struct Reference

Internal structure representing an enumeration of a table. More...

#include <antlr3collections.h>

Collaboration diagram for ANTLR3_HASH_ENUM_struct:

Data Fields

ANTLR3_UINT32 bucket
 
pANTLR3_HASH_ENTRY entry
 
void(* free )(struct ANTLR3_HASH_ENUM_struct *table)
 
int(* next )(struct ANTLR3_HASH_ENUM_struct *en, pANTLR3_HASH_KEY *key, void **data)
 
pANTLR3_HASH_TABLE table
 

Detailed Description

Internal structure representing an enumeration of a table.

This is returned by antlr3Enumeration() Allows the programmer to traverse the table in hash order without knowing what is in the actual table.

Note that it is up to the caller to ensure that the table structure does not change in the hash bucket that is currently being enumerated as this structure just tracks the next pointers in the bucket series.

Field Documentation

◆ bucket

ANTLR3_UINT32 ANTLR3_HASH_ENUM_struct::bucket

◆ entry

pANTLR3_HASH_ENTRY ANTLR3_HASH_ENUM_struct::entry

◆ free

void(* ANTLR3_HASH_ENUM_struct::free) (struct ANTLR3_HASH_ENUM_struct *table)

Referenced by antlr3BitsetList(), and antlr3EnumNew().

◆ next

int(* ANTLR3_HASH_ENUM_struct::next) (struct ANTLR3_HASH_ENUM_struct *en, pANTLR3_HASH_KEY *key, void **data)

Referenced by antlr3BitsetList(), and antlr3EnumNew().

◆ table

pANTLR3_HASH_TABLE ANTLR3_HASH_ENUM_struct::table

The documentation for this struct was generated from the following file: