VR-Forces Development_Version Class Documentation
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Groups Pages
17.5 - Symbol Strings

The DtSymbolString class (symStr.h), and related classes, provide a way to treat strings as symbols instead of as ordinary strings.

When a symbol string is created from a string, the string is stored inside of a table of strings and the symbol string is given a key with which to get the associated string from the table. As a result, unique strings are stored only once. This can result in significant memory savings if many instances of the same string were formerly stored in the system. Additionally, because each symbol string references its string by a key, string comparison becomes key comparison (much more efficient). In general, the symbol string classes are used in the reader/writer classes and the DtSpecification classes. You should not have to update code to use the DtSymbolStrings, other than to provide the appropriate functions if any classes were derived from reader/writer classes implementing member functions using DtSymbolStrings.

The symbol string classes and header files, which are in gdb.lib, are:

[<< Spatial Subdivisions] [Home] [Top of Page] [VR-Forces Sessions >>]


Document ID: Generated on Tue Mar 8 22:13:38 EST 2016 from SVN revision 162938
Copyright © 2005-2015 VT MÄK. All Rights Reserved (www.mak.com)