PIPS
gen_chunk Union Reference

A gen_chunk is used to store every object. More...

#include <genC.h>

+ Collaboration diagram for gen_chunk:

Data Fields

unit u
 
bool b
 
char c
 
_int i
 
float f
 
string s
 
void * e
 For externals (foreign objects) More...
 
struct consl
 A pointer to a list element. More...
 
set t
 
hash_table h
 
union gen_chunkp
 

Detailed Description

A gen_chunk is used to store every object.

It has to be able to store, at least, a (CHUNK *) and every inlinable value. To use a union is a trick to enable the assignment opereator and the ability of passing and returning them as values (for function): this requires a sufficiently clever compiler ! * Note that the field name of inlinable types have to begin with the same letter as the type itself (this can be fixed if necessary but why bother). This characteristic is used by the Newgen code generator.

Definition at line 58 of file genC.h.

Field Documentation

◆ b

bool gen_chunk::b

Definition at line 60 of file genC.h.

Referenced by write_leaf_in().

◆ c

char gen_chunk::c

Definition at line 61 of file genC.h.

◆ e

◆ f

float gen_chunk::f

Definition at line 63 of file genC.h.

Referenced by write_leaf_in().

◆ h

hash_table gen_chunk::h

Definition at line 68 of file genC.h.

◆ i

◆ l

◆ p

◆ s

string gen_chunk::s

◆ t

◆ u

unit gen_chunk::u

Definition at line 59 of file genC.h.


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