Ignore:
Timestamp:
02/26/14 20:21:22 (10 years ago)
Author:
sz
Message:

Genetics reorganization (affects ALL applications!):

  • Converters/Validators? are now configured/initialized in a more verbose but also less confusing way
  • At the same time, the PreconfiguredGenetics? object will help you avoid the increased complexity by creating the ready-to-use environment that is sufficient in 99% of cases (see the demos)
  • Format F genetics updated (work in progress)
File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/genetics/genman.h

    r138 r145  
    77
    88#include <common/nonstd.h>
     9#include <common/nonstd_stl.h>
    910#include <frams/param/mutableparam.h>
    1011#include <frams/param/mutparamlist.h>
     
    1213#include "geno.h"
    1314#include "oper_fx.h"
    14 #include <string>
    15 #include <vector>
    1615
    1716#define GENSTYLE_COMMENT GENSTYLE_RGBS(0,150,0,GENSTYLE_BOLD)
     
    2019{
    2120        int count;
    22         std::string g1, g2;
     21        string g1, g2;
    2322        float chg;
    2423        float fit;
     
    5352        Geno GetSimplest(char format); ///<returns pointer to the simplest genotype of \e format or empty Geno()
    5453        const char *GetOpName(char format); ///<returns pointer to the active operator set for \e format
     54        const vector<GenoOperators*>& GetOperators() const { return oper_fx_list; } ///<returns the list of available genetic operators
    5555private:
    56         std::vector<GenoOperators*> geno_fx_list;
    57         void saveLink(std::string prz, std::string pot, float& chg);
    58         GenoOperators* getGeno_f(char format);
     56        vector<GenoOperators*> oper_fx_list;
     57        void saveLink(string prz, string pot, float& chg);
     58        GenoOperators* getOper_f(char format);
    5959        SString HTMLize(const char *g, bool shorten);
    6060public:
    61         std::vector<GenoLink> GenoLinkList;
     61        vector<GenoLink> GenoLinkList;
    6262        int history; //remember history?
    6363        int hilite; //syntax highlighting (Style)
     
    6666        int valid_m, valid_xo, validated_m, validated_xo, invalid_m, invalid_xo, failed_m, failed_xo;
    6767        double mutchg, xochg;
    68         SListTempl<char> operformats; //the list of supported_format, in the order same as in seloperpar
     68        SListTempl<char> operformats; //the list of supported_format, in the same order as in seloperpar
    6969        int* seloper; //fields for seloperpar
    7070        Param localpar, localstats;
Note: See TracChangeset for help on using the changeset viewer.