Next: 2.2 Parser
Up: 2 Notes on Code
Previous: 2 Notes on Code
2.1 Utilities
The util directory contains "utility" classes.
Argument is a class used to
parse command line arguments. Array is a template class representing
an array, and is used widely in the code. HashArray is similar to an
Array except that it is backed up by a map so that its elements are
unique. HashList is similar to a HashArray except that it is a list
implementation. In hashint.h and hashstring.h are the
definitions of HashArrays containing ints and strings.
ArraysAccessor allows you to iterate through all combinations of
items in several arrays. Both DualMap and ConstDualMap map
ints to strings and vice versa.
They are mainly used by Domain in logic/ to hold predicates,
types etc. StrInt is a data structure used by DualMap and
ConstDualMap.
MeanVariance is used to compute the mean and variance of a set of
numbers. MultDArray represents a multi-dimensional array.
PowerSet generates the powerset of {0...n}
except the null set. Timer measures user time in seconds, and
contains a function to print time. util.h is used to contain commonly
used functions that can be shared across modules. Random is a random
number generator.
Next: 2.2 Parser
Up: 2 Notes on Code
Previous: 2 Notes on Code
Marc Sumner
2007-01-16