Home | History | Annotate | Download | only in lib

Lines Matching refs:symbol

0 // symbol-table.h
17 // Classes to provide symbol-to-integer and integer-to-symbol mappings.
47 int64 AddSymbol(const string& symbol, int64 key);
49 int64 AddSymbol(const string& symbol) {
50 int64 key = Find(symbol);
51 return (key == -1) ? AddSymbol(symbol, available_key_++) : key;
81 // Return the key associated with the symbol. If the symbol
83 int64 Find(const string& symbol) const {
84 return Find(symbol.c_str());
88 // Return the key associated with the symbol. If the symbol
90 int64 Find(const char* symbol) const {
92 symbol_map_.find(symbol);
144 // \brief Symbol (string) to int and reverse mapping
152 // SymbolTable for the words in the language model can share this symbol
160 // Construct symbol table with a unique name.
179 // Add a symbol with given key to table. A symbol table also
181 // the symbol table).
183 // \param symbol string symbol to add
184 // \param key associated key for string symbol
185 // \return the key created by the symbol table. Symbols allready added to
186 // the symbol table will not get a different key.
187 int64 AddSymbol(const string& symbol, int64 key) {
188 return impl_->AddSymbol(symbol, key);
191 // Add a symbol to the table. The associated value key is automatically
192 // assigned by the symbol table.
194 // \param symbol string to add to the table
195 // \return the value key assigned to the associated string symbol
196 int64 AddSymbol(const string& symbol) {
197 return impl_->AddSymbol(symbol);
200 // Add another symbol table to this table. All key values will be offset
201 // by the current available key (highest key value in the symbol table).
203 // key value after the symbol table has been merged, but a different
204 // value. Adding symbol tables do not result in changes in the base table.
206 // Merging N symbol tables is often useful when combining the various
209 // \param table the symbol table to add to this table
214 // return the name of the symbol table
225 // read an ascii representation of the symbol table
234 // read a binary dump of the symbol table
243 // read a binary dump of the symbol table
266 // Dump an ascii text representation of the symbol table
271 // Dump an ascii text representation of the symbol table
287 // Return the key associated with the symbol. If the symbol
289 int64 Find(const string& symbol) const {
290 return impl_->Find(symbol);
293 // Return the key associated with the symbol. If the symbol
295 int64 Find(const char* symbol) const {
296 return impl_->Find(symbol);
300 // the symbol table
322 // \brief Iterator class for symbols in a symbol table
343 // return the Value() of the current symbol (in64 key)
348 // return the string of the current symbol
349 const char* Symbol(void) {
371 // Tests compatibilty between two sets of symbol tables