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

Last change on this file since 1311 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
RevLine 
[286]1// This file is a part of Framsticks SDK.  http://www.framsticks.com/
[732]2// Copyright (C) 1999-2018  Maciej Komosinski and Szymon Ulatowski.
[286]3// See LICENSE.txt for details.
[109]4
5#ifndef _PRINTCONVMAP_H_
6#define _PRINTCONVMAP_H_
7
8#include <frams/util/sstring.h>
[739]9#include <frams/model/model.h>
10#include <frams/util/multimap.h>
[109]11
12class MultiMap;
13
[739]14void printConvMap(const SString& gen1, const SString& gen2, const MultiMap& map, int left_column_padding = 15);
[109]15
[739]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
[109]27#endif
Note: See TracBrowser for help on using the repository browser.