Template Struct lookup_table¶
Defined in File scope.h
Struct Documentation¶
-
template<typename
DataT>
structlookup_table¶ Accepts a prepared object that can be queried through string keys. Maintains a lookup table which contains aliases of such keys. So that the keys can be with both the real name as well as through the alias names. An unsigned integer depth value associated with every aliases. Based on which all aliases of some depth can be cleared. The
upanddownincreases and decreases the value of depth.addwill add an alias with the current depth. It can be used in a scoped environment where the entering to and leaving from an inner scope will call the down and up functions respectively. Calling up will clear the aliases set in the depth below