Ignore:
Timestamp:
06/25/20 00:34:29 (4 years ago)
Author:
Maciej Komosinski
Message:

Genetic format ID becomes a string (no longer limited to a single character)

File:
1 edited

Legend:

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

    r779 r955  
    5252        string HTMLize(const char *g); //returns colored genotype in HTML.
    5353        string HTMLizeShort(const char *g); //returns colored genotype (abbreviated if needed) in HTML.
    54         Geno getSimplest(char format); ///<returns pointer to the simplest genotype of \e format or empty Geno()
    55         const char *getOpName(char format); ///<returns pointer to the active operator set for \e format
     54        Geno getSimplest(const SString& format); ///<returns pointer to the simplest genotype of \e format or empty Geno()
     55        const char *getOpName(const SString& format); ///<returns pointer to the active operator set for \e format
    5656        const vector<GenoOperators*>& GetOperators() const { return oper_fx_list; } ///<returns the list of available genetic operators
    5757private:
    5858        vector<GenoOperators*> oper_fx_list;
    5959        void saveLink(const string parent1, const string parent2, const string child, const float chg);
    60         GenoOperators* getOper_f(char format);
     60        GenoOperators* getOper_f(const SString& format);
    6161        string HTMLize(const char *g, bool shorten);
     62        int findOperFormatIndex(const SString& format);
    6263public:
    6364        vector<GenoLink> GenoLinkList;
     
    6869        int valid_m, valid_xo, validated_m, validated_xo, invalid_m, invalid_xo, failed_m, failed_xo;
    6970        double mutchg, xochg;
    70         SListTempl<char> operformats; //the list of supported_format, in the same order as in seloperpar
     71        SListTempl<SString*> operformats; //the list of supported_format, in the same order as in seloperpar (raw SString* taken from oper_fx_list, not owned by operformats)
    7172        int* seloper; //fields for seloperpar
    7273        Param localpar, localstats;
Note: See TracChangeset for help on using the changeset viewer.