Rosetta  3.7
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Pages
Classes | Namespaces
integer_mapping.hh File Reference

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>

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
 comment 0
 

Detailed Description

A set of useful classes to map between two enumerations. So far, only a subset mapping is implemented.

Author
Andrew Leaver-Fay (aleav.nosp@m.erfa.nosp@m.y@gma.nosp@m.il.c.nosp@m.om)