A reusable typesafe observer implementation

Por: Analíticas: Mostrar analíticasTipo de contenido:
  • texto
Tipo de medio:
  • sin mediación
Tipo de soporte:
  • volumen
Tema(s):
Contenidos:
This implementation is almost identical to the non-parameterized version. The only difference is that the type of the argument for the member function u pd a t e is now specified using the template parameter. Consequently, a concrete observer will always be delivered to a concrete subject.' The Observer template cannot, of course, be used as such, but must be derived from, as in a non-template version. When the Ob server template has been implemented, it is clear how the Subject template should look.
En: JOOP : the journal of object-oriented programming (vol. 13, nro. 10, Feb. 2001), p. 4-7, 11S.T.:H004.415 JOU PP3430
Valoración
    Valoración media: 0.0 (0 votos)
No hay ítems correspondientes a este registro

This implementation is almost identical to the non-parameterized version. The only difference is that the type of the argument for the member function u pd a t e is now specified using the template parameter. Consequently, a concrete observer will always be delivered to a concrete subject.' The Observer template cannot, of course, be used as such, but must be derived from, as in a non-template version. When the Ob server template has been implemented, it is clear how the Subject template should look.

No hay comentarios en este titulo.

para colocar un comentario.