⭐ 欢迎来到虫虫下载站! | 📦 资源下载 📁 资源专辑 ℹ️ 关于我们
⭐ 虫虫下载站

📄 genomehandler.h

📁 此代码经过大量使用
💻 H
字号:
/***************************************************************************                          genomehandler.h  -  description                             -------------------    begin                : Mon Dec 10 2001    copyright            : (C) 2001 by Rudiger Koch    email                : rkoch@rkoch.org ***************************************************************************//*************************************************************************** *                                                                         * *   This program is free software; you can redistribute it and/or modify  * *   it under the terms of the GNU General Public License as published by  * *   the Free Software Foundation; either version 2 of the License, or     * *   (at your option) any later version.                                   * *                                                                         * ***************************************************************************/#ifndef GENOMEHANDLER_H#define GENOMEHANDLER_Husing namespace std;#include <string>/** @class GenomeHandler genomehandler.h amygdala/genomehandler.h  * virtual class to derive a handler from. The class is used as this:  * <ol>  * <li> the startChromosome() function is called to start each chromosome  * <li> for every gene in the chromosome, the gene() is called  * <li> to signal that the parsing has finished, the finish() function is called.  *      The implementation of the finish() function should then complete the buildup  *      of the NN  * </ol>  *@author Rudiger Koch  */class GenomeHandler {public:    GenomeHandler();	  virtual ~GenomeHandler();    /** gets called for each gene found in the genome     * @param one gene of the current chromosome */    virtual void gene(string gene) = 0;    /** gets called for each chromosome in the genome      * @param geneLength the length of the genes that will be sent */    virtual void startChromosome(int geneLength, int genes) = 0;  /** this function is called by Genome to notify the handler that     * no more genes get submitted. The handler is then supposed    * to do the rest of it's work.    */    virtual void finish() = 0;};#endif

⌨️ 快捷键说明

复制代码 Ctrl + C
搜索代码 Ctrl + F
全屏模式 F11
切换主题 Ctrl + Shift + D
显示快捷键 ?
增大字号 Ctrl + =
减小字号 Ctrl + -