Struct IdentMap

String identifier to Id map - for interning strings

Fields

Name Type Description
_idToString string[ident_t]
_nextId ident_t
_stringToId ident_t[string]

Methods

Name Description
initialize initialize with elements of enum
intern intern string - return ID assigned for it
opIndex lookup id for string, return 0 if string is not found
opIndex lookup name for id, return null if not found

Authors

Vadim Lopatin, coolreader.org@gmail.com

Copyright

Vadim Lopatin, 2015

License

Boost License 1.0