Public Members | |
| TypeBasedDispatch () | |
| void | set_value (const LString &index, T val) |
| Set a value for a metaclass Once a lookup_value is called, using this function is illegal. | |
| T | lookup_value (SuifObject *x) |
| find the appropriate T for this SuifObject If the object does not have an entry, get the value for it's metaclass. More... | |
| T | get_value (SuifObject *x) const |
| Get the value for this object, if there is none, return NULL. | |
The table must be completely initialized before looking up values.
Used by the Group walker to choose the appropriate walker to call. A GroupWalker allows any of a group of nodes to be walked, each with its own apply operator.
Set a value for a metaclass Once a lookup_value is called, using this function is illegal.
find the appropriate T for this SuifObject If the object does not have an entry, get the value for it's metaclass.
Once this method is called, it is illegal to call put_value() again
Get the value for this object, if there is none, return NULL.
written by Dimitri van Heesch, © 1997-1999