47#pragma warning(disable:4510 4512 4610)
64 insert(entries[i].str, entries[i].key, checkDuplicates);
65 }
while (entries[i++].key != terminatorKey);
69 void insert(
const std::string str,
const T key,
bool checkDuplicates =
true) {
70 if (checkDuplicates) {
84 void addAlias(
const std::string str,
const T key) {
89 void remove(
const std::string str,
const T key) {
95 T
get(
const std::string& str)
const {
119 bool has(
const T key)
const {
130 std::vector<std::string> result;
132 result.push_back(item.second);
139 std::vector<T> result;
141 result.push_back(item.first);
148 typename std::map<T, std::string>::const_iterator it;
150 list.push_back(it->first);
const std::string & getString(const T key) const
void remove(const std::string str, const T key)
std::vector< std::string > getStrings() const
bool has(const T key) const
std::vector< T > getValues() const
bool hasString(const std::string &str) const
StringBijection(Entry entries[], T terminatorKey, bool checkDuplicates=true)
std::map< std::string, T > myString2T
void addAlias(const std::string str, const T key)
T get(const std::string &str) const
void addKeysInto(std::vector< T > &list) const
std::map< T, std::string > myT2String
void insert(const std::string str, const T key, bool checkDuplicates=true)