Wrapper Class:

  1. Define generic container class using void* or base_elem*
  2. for example: stack tex2html_wrap76 void * tex2html_wrap77
  3. Wrapper class is base class of templated container.
  4. For example: template tex2html_wrap76 class stack_elem tex2html_wrap77 stk::private stack tex2html_wrap76 void * tex2html_wrap77 {}.
  5. Methods are inline calls to base methods with a type cast.
  6. Much more code reuse.
  7. Problems: dangerous casts and reference semantics only.




source
psfile jl@crush.caltech.edu index