Changeset 346 for cpp/frams/genetics/geno.cpp
- Timestamp:
- 04/07/15 04:20:14 (10 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/geno.cpp
r286 r346 7 7 #include <frams/model/model.h> 8 8 9 SListTempl<GenoValidator*> Geno::validators;10 9 GenoConvManager *Geno::converters = NULL; 10 11 THREAD_LOCAL_DEF(Geno::Validators, geno_validators); 12 13 Geno::Validators& Geno::getValidators() {return tlsGetRef(geno_validators);} 11 14 12 15 void Geno::init(const SString& genstring, char genformat, const SString& genname, const SString& comment) … … 234 237 if (isvalid >= 0) return; 235 238 if (gen.len() == 0) { isvalid = 0; return; } 236 FOREACH(GenoValidator*, v, validators) 239 Validators& vals=getValidators(); 240 FOREACH(GenoValidator*, v, vals) 237 241 if ((isvalid = v->testGenoValidity(*this)) >= 0) 238 242 return;
Note: See TracChangeset
for help on using the changeset viewer.