glotzsimapi::type Struct Reference
[Simulation API]

Defines object types with arbitrary names. More...

#include <type.h>

List of all members.

Public Types

enum  {
  A = 1, B = 2, C = 4, D = 8,
  E = 16, F = 32, G = 64, H = 128,
  I = 256, J = 512, K = 1024, L = 2048,
  M = 4096, N = 8192, O = 16384, P = 32768,
  Q = 65536, R = 131072, S = 262144, T = 524288,
  U = 1048576, V = 2097152, W = 4194304, X = 8388608,
  Y = 16777216, Z = 33554432
}


Detailed Description

Defines object types with arbitrary names.

Author:
Aaron Keys
Note:
Max is currently 26 types, although this can easily be extended to 32 by adding to the enum. If more than 32 types must be defined, we should replace the enum with a series of bitsets. We forgo this for now.
The type enum gives one bit for each type A-Z. Using a bit-wise system allows us to store all type information in an int which can be manipulated easily to get unique combinations of types. For example, we can use the bitwise "or" operator to designate interactions between A and B as a new type (A|B) = 001 | 010 = 011 = 3.

Member Enumeration Documentation

anonymous enum

Enumerator:
A 
B 
C 
D 
E 
F 
G 
H 
I 
J 
K 
L 
M 
N 
O 
P 
Q 
R 
S 
T 
U 
V 
W 
X 
Y 
Z 


The documentation for this struct was generated from the following file:
Generated on Tue Feb 24 20:54:58 2009 by  doxygen 1.5.3