Changeset 145 for cpp/frams/genetics/geno.h
- Timestamp:
- 02/26/14 20:21:22 (11 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
TabularUnified cpp/frams/genetics/geno.h ¶
r121 r145 11 11 class MultiMap; 12 12 class Geno; 13 class GenoConvManager; 13 14 14 15 class GenoValidator … … 18 19 }; 19 20 21 /// basic GenoValidator that works by building a Model from any Geno (by converting to f0) 22 /// validation fails when the model can't be built or the genotype can't be converted 23 class ModelGenoValidator: public GenoValidator 24 { 25 public: 26 int testGenoValidity(Geno& g); 27 }; 28 20 29 /// basic information about a single genotype. 21 30 class Geno: public DestrBase 22 31 { 32 friend class Simulator;//needs to access validators directly 23 33 SString gen; 24 34 SString name; … … 103 113 104 114 void* owner; 115 116 // managing global Geno-related objects (used for validation and conversion) 117 static void addValidator(GenoValidator* gv) {validators+=gv;} 118 static void removeValidator(GenoValidator* gv) {validators-=gv;} 119 static void useConverters(GenoConvManager& gcm) {converters=&gcm;} 120 static GenoConvManager &getConverters() {return *converters;} 121 protected: 122 static GenoConvManager *converters; 105 123 static SListTempl<GenoValidator*> validators; 106 124 };
Note: See TracChangeset
for help on using the changeset viewer.