52 lines
856 B
C++
52 lines
856 B
C++
#include <as68hc11/table.hpp>
|
|
#include <as68hc11/symbol.hpp>
|
|
|
|
Table::Table(void)
|
|
{
|
|
}
|
|
|
|
Table::~Table()
|
|
{
|
|
}
|
|
|
|
BOOL Table::locateSymbol(const String &symbolString,SmartPointer<Symbol> &symbol)
|
|
{
|
|
Symbol srchSymbol(symbolString);
|
|
return searchItem(srchSymbol,symbol);
|
|
}
|
|
|
|
#if 0
|
|
BOOL Table::locateSymbolString(String &symbolString,int &tableIndex)
|
|
{
|
|
size_t numSymbols((size_t)size());
|
|
|
|
for(int index=0;index<numSymbols;index++)
|
|
{
|
|
if(operator[](index)==symbolString)
|
|
{
|
|
tableIndex=index;
|
|
return TRUE;
|
|
}
|
|
}
|
|
return FALSE;
|
|
return FALSE;
|
|
}
|
|
|
|
BOOL Table::locateSymbolIdentifier(int symbolIdentifier,int &tableIndex)
|
|
{
|
|
size_t numSymbols((size_t)size());
|
|
|
|
for(int index=0;index<numSymbols;index++)
|
|
{
|
|
if(operator[](index).identifier()==symbolIdentifier)
|
|
{
|
|
tableIndex=index;
|
|
return TRUE;
|
|
}
|
|
}
|
|
return FALSE;
|
|
return FALSE;
|
|
}
|
|
#endif
|
|
|