Skip to content
  • Thierry Geraud's avatar
    Turn take_as_init as a 'template method' pattern. · 393d0fc1
    Thierry Geraud authored
    	* mln/core/concept/accumulator.hh
    	(take_as_init): Rename as...
    	(take_as_init_): ...this.  This is default implementation.
    	(take_as_init): New.  Dispatch to take_as_init_.
    	Now, we have the "template method" method pattern.  It is
    	cleaner since we do not have any overriding for the
    	client-side method.
    	(take_n_times, take_n_times_): New.
    	
    	* mln/accu/nil.hh,
    	* mln/accu/tuple.hh,
    	* mln/accu/pair.hh,
    	* mln/accu/lor.hh,
    	* mln/accu/sum.hh,
    	* mln/accu/inf.hh,
    	* mln/accu/land_basic.hh,
    	* mln/accu/min.hh,
    	* mln/accu/max.hh,
    	* mln/accu/bbox.hh,
    	* mln/accu/min_h.hh,
    	* mln/accu/max_h.hh,
    	* mln/accu/lor_basic.hh,
    	* mln/accu/p.hh,
    	* mln/accu/rms.hh,
    	* mln/accu/rank_high_quant.hh,
    	* mln/accu/v.hh,
    	* mln/accu/rank_bool.hh,
    	* mln/accu/sup.hh,
    	* mln/accu/land.hh,
    	* mln/morpho/attribute/sum.hh,
    	* mln/morpho/attribute/count_adjacent_vertices.hh,
    	* mln/morpho/attribute/sharpness.hh,
    	* mln/morpho/attribute/volume.hh,
    	* mln/morpho/attribute/height.hh,
    	* mln/morpho/attribute/card.hh (take_as_init): Update.
    	Rename as...
    	(take_as_init_): ...this overriding name.
    	
    	* tests/accu/count.cc: Update.
    
    
    git-svn-id: https://svn.lrde.epita.fr/svn/oln/trunk@3727 4aad255d-cdde-0310-9447-f3009e2ae8c0
    393d0fc1