source: cpp/frams/_demos/printconvmap.h @ 978

Last change on this file since 978 was 739, checked in by Maciej Komosinski, 7 years ago

Unlimited number of model Parts/Joints/Neurons? when displaying the genotype-to-phenotype mapping

  • Property svn:eol-style set to native
File size: 827 bytes
Line 
1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
2// Copyright (C) 1999-2018  Maciej Komosinski and Szymon Ulatowski.
3// See LICENSE.txt for details.
4
5#ifndef _PRINTCONVMAP_H_
6#define _PRINTCONVMAP_H_
7
8#include <frams/util/sstring.h>
9#include <frams/model/model.h>
10#include <frams/util/multimap.h>
11
12class MultiMap;
13
14void printConvMap(const SString& gen1, const SString& gen2, const MultiMap& map, int left_column_padding = 15);
15
16class ModelDisplayMap
17{
18        MultiMap map;
19        Model &model;
20        int joint_offset, neuron_offset, max_element;
21public:
22        ModelDisplayMap(Model &m);
23        void print(int left_column_padding = 15);
24        const MultiMap & getMap() { return map; } //mapping: true model -> display (so the regular map printing/debugging tools can be used for model maps, avoiding invonveniently huge numbers)
25};
26
27#endif
Note: See TracBrowser for help on using the repository browser.