he file otsConfig.hpp contains several metafunctions (see
[Abrahams1]
for definition of metafunction) that
encapsule most common implementation primitives. Such encapsulation allows for
substitution of implementation without changing the higher levels of the
project's code. It also contains definition of templated primitives that
uniformly accept template parameters defined in different libraries.
The file otsConfig.hpp uses forward definitions and does not include most
implementation hpp-files. This must be so to prevent excessive compile-time
cross-dependencies. Hence, when using most of the metafunctions defined in
otsConfig.hpp the programmer also have to include header files for the classes
instantiated in the metafunction body.
The following section explains the use of the otsConfig-defined threading
primitives.
|