Template Struct lookup_table

Struct Documentation

template<typename DataT>
struct lookup_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 up and down increases and decreases the value of depth. add will 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