Main Page   Modules   Alphabetical List   Data Structures   File List   Data Fields  

ToyMem Union Reference

The main memory type union. More...

#include <ToyMemType.h>

Collaboration diagram for ToyMem:

Collaboration graph
[legend]

Data Fields

DataType_e type
 Type information.

ToyMem_Instruction instruction
 Instruction member.

ToyMem_String string
 String member.

ToyMem_Integer integer
 Integer member.


Detailed Description

The main memory type union.

Can hold a string, integer, or instruction. 'type' is valid for every structure, so it is safe to be read from the union. DATA_ERROR denotes an unused memory item.

Note that all members occupy the same area in memory, so that only one of the instruction, string, and integer members can be valid at one time, as determined by type.

Definition at line 97 of file ToyMemType.h.


Field Documentation

ToyMem_Instruction ToyMem::instruction
 

Instruction member.

Definition at line 102 of file ToyMemType.h.

ToyMem_Integer ToyMem::integer
 

Integer member.

Definition at line 106 of file ToyMemType.h.

Referenced by TMM_StoreHeapInteger(), and TMM_StoreInteger().

ToyMem_String ToyMem::string
 

String member.

Definition at line 104 of file ToyMemType.h.

Referenced by TMM_StoreHeapString(), and TMM_StoreString().

DataType_e ToyMem::type
 

Type information.

Definition at line 100 of file ToyMemType.h.

Referenced by TMM_Create(), TMM_EmptyFrame(), TMM_StoreHeapInteger(), TMM_StoreHeapString(), TMM_StoreInteger(), TMM_StoreString(), and TMM_SwapCreate().


The documentation for this union was generated from the following file:
Generated on Fri Apr 4 14:29:07 2003 for ToyMem by doxygen1.3-rc3