A reusable typesafe observer implementation
Analíticas: Mostrar analíticasTipo de contenido:- texto
- sin mediación
- volumen
Contenidos:
En: JOOP : the journal of object-oriented programming (vol. 13, nro. 10, Feb. 2001), p. 4-7, 11S.T.:H004.415 JOU PP3430
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 í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.
Ingresar a su cuenta para colocar un comentario.