Home | History | Annotate | Download | only in lib

Lines Matching defs:SymbolTable

144 // \class SymbolTable
147 // The SymbolTable implements the mappings of labels to strings and reverse.
153 // SymbolTable for the words in the language model can share this symbol
156 class SymbolTable {
162 SymbolTable(const string& name) : impl_(new SymbolTableImpl(name)) {}
165 SymbolTable(const SymbolTable& table) : impl_(table.impl_) {
171 ~SymbolTable() {
176 SymbolTable* Copy() const {
177 return new SymbolTable(*this);
211 void AddTable(const SymbolTable& table) {
227 static SymbolTable* ReadText(const string& filename) {
232 return new SymbolTable(impl);
236 static SymbolTable* Read(istream &strm, const string& source) {
241 return new SymbolTable(impl);
245 static SymbolTable* Read(const string& filename) {
248 LOG(ERROR) << "SymbolTable::Read: Can't open file " << filename;
261 LOG(ERROR) << "SymbolTable::Write: Can't open file " << filename;
276 LOG(ERROR) << "SymbolTable::WriteText: Can't open file " << filename;
307 explicit SymbolTable(SymbolTableImpl* impl) : impl_(impl) {}
317 void operator=(const SymbolTable &table); // disallow
327 SymbolTableIterator(const SymbolTable& symbol_table) {
373 inline bool CompatSymbols(const SymbolTable *syms1,
374 const SymbolTable *syms2) {