Ignore:
Timestamp:
06/22/23 04:00:45 (11 months ago)
Author:
Maciej Komosinski
Message:

Cosmetic

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/_demos/geneprops_test.cpp

    r1242 r1260  
    8080        int maxcount = 4;
    8181
    82         enum Function { Legacy, RecreatedLegacy, New05, NewExponential };
    83         Function fun = Legacy;
     82        enum Function { Legacy, AllChange05, ExperimentalExponential };
     83        Function fun = AllChange05;
    8484
    8585        int argpos = 0;
     
    9191                        {
    9292                        case 'l': fun = Legacy; break;
    93                         case 'r': fun = RecreatedLegacy; break;
    94                         case 'n': fun = New05; break;
    95                         case 'e': fun = NewExponential; break;
     93                        case 'n': fun = AllChange05; break;
     94                        case 'e': fun = ExperimentalExponential; break;
    9695                        case 'h': printf("%s args: [modifier [max_count]] (one of " F14_MODIFIERS ")\n"
    9796                                "\t-l = legacy function\n"
    98                                 "\t-r = recreated legacy function\n"
    99                                 "\t-n = new, change=0.5, normalizeBiol4 disabled\n"
    100                                 "\t-e = new exponential function\n", argv[0]);
     97                                "\t-n = modern, change=0.5, normalizeBiol4 disabled\n"
     98                                "\t-e = experimental exponential function\n", argv[0]);
    10199                                return 0;
    102100                        default: fprintf(stderr, "%s: invalid option: %s\n", argv[0], arg); return 2;
     
    115113
    116114        GenePropsOps_Exponential exponential_ops;
    117         GenePropsOps_Old recreated_ops;
    118         GenePropsOps_New05 new05_ops;
     115        GenePropsOps_Legacy legacy_ops;
     116        GenePropsOps_AllChange05 allchange05_ops;
    119117        GenePropsOps *ops;
    120118
    121119        switch (fun)
    122120        {
    123         case RecreatedLegacy: ops = &recreated_ops; break;
    124         case NewExponential:  ops = &exponential_ops; break;
    125         case New05:  ops = &new05_ops; break;
     121        case Legacy: ops = &legacy_ops; break;
     122        case ExperimentalExponential:  ops = &exponential_ops; break;
     123        case AllChange05:  ops = &allchange05_ops; break;
    126124        default: ops = NULL;
    127125        }
     
    138136                                char m = ((1 << c) & i) ? modifier_u : modifier_l;
    139137                                tmp[c] = m;
    140                                 if (fun == Legacy)
    141                                         props.executeModifier_Legacy(m);
    142                                 else
    143                                         props.executeModifier(m, ops);
     138                                props.executeModifier(m, ops);
    144139                        }
    145140                        if (count > 0)
Note: See TracChangeset for help on using the changeset viewer.