faudes::SymbolTable Class ReferenceA SymbolTable associates sybolic names with indices. More...
Detailed DescriptionA SymbolTable associates sybolic names with indices. Symbolic names are restricted to printable ascii, no quoatation ("), no hash (#) and and no blanks. Indices are of type faudes Idx aka (long unsigned) integer and must be positive. Both, indices and symbolic names must be unique within each SymbolTable. Consistency checks on input data are preformed, regardless of the FAUDES_CHECKED compiletime option. Generators refer to a global symboltable for event names and hold a local symboltable for state names. Definition at line 61 of file cfl_symboltable.h. Constructor & Destructor Documentation
Creates a new SymbolTable. Definition at line 33 of file cfl_symboltable.cpp.
Copy constructor. Definition at line 40 of file cfl_symboltable.cpp. Member Function Documentation
Clear all entries. Reimplemented from faudes::Type. Definition at line 65 of file cfl_symboltable.cpp.
Delete entry by symbol.
Definition at line 222 of file cfl_symboltable.cpp.
Delete entry by index.
Definition at line 214 of file cfl_symboltable.cpp.
assign my members Definition at line 45 of file cfl_symboltable.cpp.
Symboltable token io. Reimplemented from faudes::Type. Definition at line 313 of file cfl_symboltable.cpp.
Symboltable token io. Reimplemented from faudes::Type. Definition at line 284 of file cfl_symboltable.cpp.
Test existence of symbol.
Definition at line 271 of file cfl_symboltable.cpp.
Test existence of index.
Definition at line 265 of file cfl_symboltable.cpp.
Get Static Symboltable ref. Definition at line 278 of file cfl_symboltable.cpp.
Index lookup.
Definition at line 245 of file cfl_symboltable.cpp.
Merge a symbolic name with symboltable. If the symbol does not exist, find a new index and add the new entry. If the symbol does exist, lookup its index.
Definition at line 172 of file cfl_symboltable.cpp. Add new entry (aka symbolic name and index) to symboltable,.
Definition at line 140 of file cfl_symboltable.cpp.
Get the largest index in use. Definition at line 94 of file cfl_symboltable.cpp.
Set maximum index which this SymbolTable accepts.
Definition at line 83 of file cfl_symboltable.cpp.
Get maximum index which this SymbolTable accepts. Definition at line 78 of file cfl_symboltable.cpp.
Set name of SymbolTable. Reimplemented from faudes::Type. Definition at line 60 of file cfl_symboltable.cpp.
Return name of SymbolTable. Reimplemented from faudes::Type. Definition at line 55 of file cfl_symboltable.cpp.
Restrict to specified indicees.
Definition at line 230 of file cfl_symboltable.cpp.
Set default names ("1", "2", "3", . ..) for index.
Definition at line 205 of file cfl_symboltable.cpp.
Set symbolic name for existing entry. If the name is the emptystring, an existing entry is cleared. All other invalid names throw an exception.
Definition at line 180 of file cfl_symboltable.cpp.
Size of symboltabel. Definition at line 73 of file cfl_symboltable.cpp.
Symbolic name lookup.
Definition at line 254 of file cfl_symboltable.cpp.
Create unique symbolic name by adding an underscore and extra digits. The current implementation tries to be smart and overwrites any previously added digits. It is also slow.
Definition at line 116 of file cfl_symboltable.cpp.
Test validiy of candidate symbol. The current implementation insists in printable ascii, no quotes ("), no hash (#) and no blanks.
Definition at line 99 of file cfl_symboltable.cpp. Member Data Documentation
Index lookup map. Definition at line 263 of file cfl_symboltable.h.
Upper limit (incl). Definition at line 269 of file cfl_symboltable.h.
Name of the SymbolTable. Definition at line 260 of file cfl_symboltable.h.
Name lookup map. Definition at line 266 of file cfl_symboltable.h.
Largest used index + 1. Definition at line 272 of file cfl_symboltable.h.
static event symbol table (should go to faudes::Generator, or faudes) Definition at line 275 of file cfl_symboltable.h. The documentation for this class was generated from the following files: libFAUDES 2.23h --- 2014.04.03 --- c++ api documentaion by doxygen |