2 * Copyright (C) 2005, Mike Van Emmerik
4 * See the file "LICENSE.TERMS" for information on usage and
5 * redistribution of this file, and for a DISCLAIMER OF ALL
10 /*==============================================================================
12 * OVERVIEW: This file contains the implementation of the class SymTab, a simple class to maintain a pair of maps
13 * so that symbols can be accessed by symbol or by name
14 *============================================================================*/
18 * 12 Jul 05 - Mike: threw out the bsearch() code and implemented dual maps instead
29 void SymTab::Add(ADDRESS a
, char* s
)
35 const char* SymTab::find(ADDRESS a
)
37 std::map
<ADDRESS
, std::string
>::iterator ff
;
41 return ff
->second
.c_str();
44 ADDRESS
SymTab::find(const char* s
)
46 std::map
<std::string
, ADDRESS
>::iterator ff
;