Ignore:
Timestamp:
10/31/09 14:44:45 (14 years ago)
Author:
Maciej Komosinski
Message:

simple productions are now more complete, and stored once, in a constant variable

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/f8-to-f1/geno_f8.cpp

    r34 r35  
    5050}
    5151
    52 Geno_f8::Geno_f8() {
     52Geno_f8::Geno_f8()
     53{
    5354        supported_format = '8';
    54         this->simpleCommandLetters.push_back('X');
    55         this->simpleCommandLetters.push_back('R');
    56         this->simpleCommandLetters.push_back('r');
    57         this->simpleCommandLetters.push_back('C');
    58         this->simpleCommandLetters.push_back('c');
    59         this->simpleCommandLetters.push_back('Q');
    60         this->simpleCommandLetters.push_back('q');
    61         this->simpleCommandLetters.push_back('[');
    62         this->simpleCommandLetters.push_back(']');
    63         this->simpleCommandLetters.push_back('^');
     55
     56        for(int i=0;i<strlen(GenoConv_F8ToF1::simpleprods);i++)
     57                this->simpleCommandLetters.push_back(GenoConv_F8ToF1::simpleprods[i]);
     58               
    6459        this->converter = new GenoConv_F8ToF1();
    6560
     
    301296SString Geno_f8::mutateChangeArg(SString &in, float& chg) {
    302297        SString mutated;
    303        
     298
    304299        Lsystem *newLsystem = this->converter->createLsystem(in);
    305300        if (newLsystem == NULL) {
     
    10871082       
    10881083#if GENO_F8_DEBUG > 0
    1089         string mutationName = (method == 0) ? "F8_CHANGE_BEGINNING_ARG" :
     1084        string mutationName = (method == 0) ? "F8_CHANGE_BEGINNING_ARG" : //TODO use mutation_method_names[] here
    10901085        (method == 1) ? "F8_CHANGE_ARG" :
    10911086        (method == 2) ? "F8_DELETE_COMMAND" :
Note: See TracChangeset for help on using the changeset viewer.