2 ////////////////////////////////////////////////////////////////////////////////
3 // This program is free software; you can redistribute it and/or //
4 // modify it under the terms of the GNU General Public License //
5 // version 2 as published by the Free Software Foundation. //
7 // This program is distributed in the hope that it will be useful, but //
8 // WITHOUT ANY WARRANTY; without even the implied warranty of //
9 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU //
10 // General Public License for more details. //
12 // Written and (C) by François Fleuret //
13 // Contact <francois.fleuret@epfl.ch> for comments & bug reports //
14 ////////////////////////////////////////////////////////////////////////////////
32 virtual void init(int np);
33 virtual void update_map() = 0;
36 // A MapConcatener groups several maps and make them appear as a
39 class MapConcatener : public Map {
40 int _nb_max_maps, _nb_maps;
43 MapConcatener(int nb_max_maps);
45 void load(istream &is);
46 void save(ostream &os);
47 void add_map(Map *map);
52 // A MapExpander is a map whose parameters are functions of the
53 // parameter of an input map
55 class MapExpander : public Map {
57 scalar_t *_unit_weights, *_state_switch;
60 MapExpander(int nb_units);
62 void load(istream &is);
63 void save(ostream &os);
64 void set_input(Map *input);