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 ////////////////////////////////////////////////////////////////////////////////
16 // $Id: map.h,v 1.5 2006-07-26 06:53:19 fleuret Exp $
34 virtual void init(int np);
35 virtual void update_map() = 0;
38 // A MapConcatener groups several maps and make them appear as a
41 class MapConcatener : public Map {
42 int _nb_max_maps, _nb_maps;
45 MapConcatener(int nb_max_maps);
47 void load(istream &is);
48 void save(ostream &os);
49 void add_map(Map *map);
54 // A MapExpander is a map whose parameters are functions of the
55 // parameter of an input map
57 class MapExpander : public Map {
59 scalar_t *_unit_weights, *_state_switch;
62 MapExpander(int nb_units);
64 void load(istream &is);
65 void save(ostream &os);
66 void set_input(Map *input);