45#pragma warning(disable:4510 4512 4610)
63 insert(entries[i].str, entries[i].key, checkDuplicates);
64 }
while (entries[i++].key != terminatorKey);
68 void insert(
const std::string str,
int key,
bool checkDuplicates =
true) {
69 if (checkDuplicates) {
83 void addAlias(
const std::string str,
int key) {
88 void remove(
const std::string str,
int key) {
94 int get(
const std::string& str)
const {
134 std::vector<int> result;
136 result.push_back(item.second);
143 typename std::map<std::string, int>::const_iterator it;
145 list.push_back(it->second);
std::vector< std::string > getStrings() const
SequentialStringBijection()
std::map< std::string, int > myString2T
void remove(const std::string str, int key)
int get(const std::string &str) const
void addKeysInto(std::vector< int > &list) const
void addAlias(const std::string str, int key)
SequentialStringBijection(Entry entries[], int terminatorKey, bool checkDuplicates=true)
std::vector< int > getValues() const
bool hasString(const std::string &str) const
void insert(const std::string str, int key, bool checkDuplicates=true)
const std::string & getString(int key) const
std::vector< std::string > myT2String