Main Page | Class Hierarchy | Class List | File List | Class Members | File Members

program Class Reference

holds the data for a program More...

#include <program.h>

List of all members.

Public Member Functions

 program ()
 ~program ()
void generate (uInt seed)
 generate a random program from the specified seed

template<typename T> T read (address addr)
 returns the data at the specified address

template<typename T> void write (address addr, T val)
 writes the data to the specified address


Detailed Description

holds the data for a program

Definition at line 13 of file program.h.


Constructor & Destructor Documentation

program::program  )  [inline]
 

Definition at line 17 of file program.h.

program::~program  )  [inline]
 

Definition at line 18 of file program.h.


Member Function Documentation

void program::generate uInt  seed  ) 
 

generate a random program from the specified seed

fills the currently allocated data with random data

template<typename T>
T program::read address  addr  )  [inline]
 

returns the data at the specified address

the memory is assumed to wrap round and so all addresses are valid unless the program is of length 0, in which case no address is valid.

Definition at line 35 of file program.h.

References address, ASSERT, read(), and uInt.

Referenced by read().

template<typename T>
void program::write address  addr,
val
[inline]
 

writes the data to the specified address

the memory is assumed to wrap round and so all addresses are valid unless the program is of length 0, in which case no address is valid.

Definition at line 83 of file program.h.

References address, ASSERT, uInt, and write().

Referenced by write().


The documentation for this class was generated from the following file:
Generated on Sun Mar 6 22:12:35 2005 for virtualMachine03 by doxygen 1.3.7