genomehandler.h

来自「此代码经过大量使用」· C头文件 代码 · 共 56 行

H
56
字号
/***************************************************************************                          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 + =
减小字号Ctrl + -
显示快捷键?