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

common.h File Reference

#include <vector>
#include <map>
#include <list>
#include <string>
#include <iostream>
#include <cassert>
#include <cmath>

Include dependency graph for common.h:

Include dependency graph

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

Included by dependency graph

Go to the source code of this file.

Defines

#define ASSERT(TEST, INFO)   assert((TEST) && INFO)
#define WARN(INFO)   std::cerr << "Warning: " << INFO << std::endl;
#define WARN_IF(TEST, INFO)   if(TEST) WARN("[ " #INFO " ]");
#define MSG(INFO)   std::cout << "-- " INFO << std::endl;
#define MSG_IF(TEST, INFO)   if(TEST) MSG(INFO);

Typedefs

typedef unsigned char uChar
typedef unsigned short uShort
typedef unsigned int uInt
typedef uChar instruction
typedef uInt threadId
typedef uInt processId
typedef uInt address


Define Documentation

#define ASSERT TEST,
INFO   )     assert((TEST) && INFO)
 

Definition at line 29 of file common.h.

Referenced by process::getProgram(), program::read(), and program::write().

#define MSG INFO   )     std::cout << "-- " INFO << std::endl;
 

Definition at line 45 of file common.h.

#define MSG_IF TEST,
INFO   )     if(TEST) MSG(INFO);
 

Definition at line 49 of file common.h.

#define WARN INFO   )     std::cerr << "Warning: " << INFO << std::endl;
 

Definition at line 35 of file common.h.

Referenced by virtualMachine::replaceInstruction(), and virtualMachine::run().

#define WARN_IF TEST,
INFO   )     if(TEST) WARN("[ " #INFO " ]");
 

Definition at line 39 of file common.h.


Typedef Documentation

typedef uInt address
 

Definition at line 56 of file common.h.

Referenced by thread::getAddress(), process::getThreadAddress(), program::read(), process::spawnThread(), and program::write().

typedef uChar instruction
 

Definition at line 53 of file common.h.

Referenced by virtualMachine::addInstruction(), and virtualMachine::step().

typedef uInt processId
 

Definition at line 55 of file common.h.

Referenced by process::getId(), virtualMachine::run(), and virtualMachine::step().

typedef uInt threadId
 

Definition at line 54 of file common.h.

Referenced by process::spawnThread(), and virtualMachine::step().

typedef unsigned char uChar
 

Definition at line 16 of file common.h.

typedef unsigned int uInt
 

Definition at line 18 of file common.h.

Referenced by idGen< recycleReleasedIds, noWrapAround >::getId(), noWrapAround< _newIdGen >::getNewId(), assertOnWrapAround< _newIdGen >::getNewId(), wrapAround< _newIdGen >::getNewId(), virtualMachine::getNumInstructions(), virtualMachine::getNumProcesses(), process::getNumThreads(), recycleReleasedIds::getRecycledId(), noRecycling::getRecycledId(), program::read(), virtualMachine::run(), process::spawnThread(), and program::write().

typedef unsigned short uShort
 

Definition at line 17 of file common.h.


Generated on Sun Mar 6 22:12:29 2005 for virtualMachine03 by doxygen 1.3.7