Changeset 972 for cpp/frams/model/model.h
- Timestamp:
- 07/03/20 00:32:23 (5 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/model/model.h
r935 r972 102 102 protected: 103 103 ShapeType shape; 104 ShapeType declared_shape; 104 105 105 106 SString nameForErrors() const; 106 107 int internalcheck(CheckType check); 107 108 108 void init(const Geno &srcgen, bool _using_checkpoints, bool _is_checkpoint);109 void init( );109 void init(const Geno &srcgen, ShapeType sh, bool _using_checkpoints, bool _is_checkpoint); 110 void init(ShapeType sh); 110 111 111 112 void delMap(); … … 136 137 bool isUsingCheckpoints() const { return using_checkpoints; } 137 138 bool isCheckpoint() const { return is_checkpoint; } 139 static SString genoFormatForShapeType(ShapeType st); 140 static ShapeType shapeTypeForGenoFormat(const SString& format); 141 static const char* getShapeTypeName(ShapeType sh); 138 142 139 143 void updateRefno(); // set ::refno for all elements … … 150 154 ModelUserTags userdata; 151 155 152 /// Create empty model with invalid empty genotype 153 Model(); 156 /// Create empty model with invalid empty genotype, declaring the shape type for later operations 157 Model(ShapeType sh = SHAPE_UNKNOWN); 158 159 /// Change the declared shape type of the Model 160 void declareShapeType(ShapeType sh); 154 161 155 162 /** Create a model based on provided genotype … … 158 165 @see getMap() 159 166 */ 160 Model(const Geno &src, bool buildmaps = false, bool _using_checkpoints = false, bool _is_checkpoint = false);167 Model(const Geno &src, ShapeType sh, bool buildmaps = false, bool _using_checkpoints = false, bool _is_checkpoint = false); 161 168 Model(const Model &mod, bool buildmaps = false, bool _using_checkpoints = false, bool _is_checkpoint = false); 162 169 /** duplicate the model.
Note: See TracChangeset
for help on using the changeset viewer.