Home | History | Annotate | Download | only in lib

Lines Matching defs:Symbol

0 // symbol-table.h
17 // Classes to provide symbol-to-integer and integer-to-symbol mappings.
48 int64 AddSymbol(const string& symbol, int64 key);
50 int64 AddSymbol(const string& symbol) {
51 int64 key = Find(symbol);
52 return (key == -1) ? AddSymbol(symbol, available_key_++) : key;
82 // Return the key associated with the symbol. If the symbol
84 int64 Find(const string& symbol) const {
85 return Find(symbol.c_str());
89 // Return the key associated with the symbol. If the symbol
91 int64 Find(const char* symbol) const {
93 symbol_map_.find(symbol);
145 // \brief Symbol (string) to int and reverse mapping
153 // SymbolTable for the words in the language model can share this symbol
161 // Construct symbol table with a unique name.
180 // Add a symbol with given key to table. A symbol table also
182 // the symbol table).
184 // \param symbol string symbol to add
185 // \param key associated key for string symbol
186 // \return the key created by the symbol table. Symbols allready added to
187 // the symbol table will not get a different key.
188 int64 AddSymbol(const string& symbol, int64 key) {
189 return impl_->AddSymbol(symbol, key);
192 // Add a symbol to the table. The associated value key is automatically
193 // assigned by the symbol table.
195 // \param symbol string to add to the table
196 // \return the value key assigned to the associated string symbol
197 int64 AddSymbol(const string& symbol) {
198 return impl_->AddSymbol(symbol);
201 // Add another symbol table to this table. All key values will be offset
202 // by the current available key (highest key value in the symbol table).
204 // key value after the symbol table has been merged, but a different
205 // value. Adding symbol tables do not result in changes in the base table.
207 // Merging N symbol tables is often useful when combining the various
210 // \param table the symbol table to add to this table
215 // return the name of the symbol table
226 // read an ascii representation of the symbol table
235 // read a binary dump of the symbol table
244 // read a binary dump of the symbol table
267 // Dump an ascii text representation of the symbol table
272 // Dump an ascii text representation of the symbol table
288 // Return the key associated with the symbol. If the symbol
290 int64 Find(const string& symbol) const {
291 return impl_->Find(symbol);
294 // Return the key associated with the symbol. If the symbol
296 int64 Find(const char* symbol) const {
297 return impl_->Find(symbol);
301 // the symbol table
323 // \brief Iterator class for symbols in a symbol table
344 // return the Value() of the current symbol (in64 key)
349 // return the string of the current symbol
350 const char* Symbol(void) {
372 // Tests compatibilty between two sets of symbol tables