Ignore:
Timestamp:
05/23/16 13:52:53 (8 years ago)
Author:
Maciej Komosinski
Message:

checkValidity() and validate() are now aware of genotype name

File:
1 edited

Legend:

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

    r287 r513  
    9292/**Checks a genotype for minor mistakes and major errors.
    9393\param geno genotype to be checked
     94\param genoname name of the genotype to be checked
    9495\retval error_position 1-based (or 1 if no exact error position known)
    9596\retval GENOPER_OK when the genotype is fully valid, and can be translated by the converter with \b no modifications nor tweaks*/
    96    virtual int checkValidity(const char *geno) {return GENOPER_NOOPER;}
     97   virtual int checkValidity(const char *geno, const char *genoname) { return GENOPER_NOOPER; }
    9798
    9899/**Validates a genotype. The purpose of this function is to validate
     
    100101to introduce entirely new genes in place of an error.
    101102\param geno input/output: genotype to be validated
     103\param genoname name of the genotype to be validated
    102104\retval GENOPER_OK must be returned in any case ("did my best to validate")*/
    103    virtual int validate(char *&geno) {return GENOPER_NOOPER;}
     105   virtual int validate(char *&geno, const char *genoname) { return GENOPER_NOOPER; }
    104106
    105107/**Mutates a genotype. Mutation should always change something.
Note: See TracChangeset for help on using the changeset viewer.