View.cpp 227 B

1234567891011121314151617181920
  1. #include "View.h"
  2. View::View()
  3. : ReferenceCounter()
  4. {}
  5. View::~View()
  6. {}
  7. ActionView::ActionView( std::function< void( Model * ) > f )
  8. : View()
  9. {
  10. this->f = f;
  11. }
  12. void ActionView::update( Model *m )
  13. {
  14. f( m );
  15. }