Ignore:
Timestamp:
04/09/15 23:51:28 (7 years ago)
Author:
Maciej Komosinski
Message:
  • explicit c_str() in SString instead of (const char*) cast
  • genetic converters and GenMan? are now thread-local which enables multi-threaded simulator separation
File:
1 edited

Legend:

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

    r346 r348  
    118118
    119119        // managing global Geno-related objects (used for validation and conversion)
    120         static Validators& getValidators();
    121         static void addValidator(GenoValidator* gv,int at_position=9999) { getValidators().insert(at_position,gv); }
    122         static void removeValidator(GenoValidator* gv) { getValidators() -= gv; }
    123         static void useConverters(GenoConvManager& gcm) { converters = &gcm; }
    124         static GenoConvManager &getConverters() { return *converters; }
    125 protected:
    126         static GenoConvManager *converters;
     120        static Validators* useValidators(Validators* val);
     121        static Validators* getValidators();
     122
     123        static GenoConvManager* useConverters(GenoConvManager* gcm);
     124        static GenoConvManager* getConverters();
    127125};
    128126
Note: See TracChangeset for help on using the changeset viewer.