Rosetta
|
A set of useful classes to map between two enumerations. So far, only a subset mapping is implemented. More...
#include <utility/integer_mapping.fwd.hh>
#include <utility/vector1.hh>
#include <utility/pointer/ReferenceCount.hh>
#include <platform/types.hh>
Go to the source code of this file.
Classes | |
class | utility::subset_mapping |
This class handles the bookeeping to map between a set of integer ids in the "source" enumeration to a subset of those ids – the destination enumartion. Elements in the source enumeration that do not map to elements in the destination enumeration are represented by the value 0. Both enumerations should count from 1. Once the class has been initialized, this class offers O(1) mapping between elements in the enumerations. More... | |
Namespaces | |
utility | |
unresizable vector whose size is known at compile time, which may be allocated on the stack, and which indexes from 0. | |
A set of useful classes to map between two enumerations. So far, only a subset mapping is implemented.
Definition in file integer_mapping.hh.