Changeset 1259 for cpp/frams/genetics/f4/f4_general.h
- Timestamp:
- 06/22/23 03:52:39 (17 months ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/f4/f4_general.h
r1249 r1259 33 33 class f4_Cells; // later 34 34 35 36 /** @name Types of f4_Cell's */ 37 //@{ 38 #define CELL_UNDIFF 40 ///<undifferentiated cell 39 #define CELL_STICK 41 ///<differentiated to stick, cannot divide 40 #define CELL_NEURON 42 ///<differentiated to neuron, can divide 41 //@} 42 35 enum class f4_Cell_type { 36 CELL_UNDIFF, ///<undifferentiated cell 37 CELL_STICK, ///<differentiated to stick, cannot divide 38 CELL_NEURON ///<differentiated to neuron, can divide 39 }; 43 40 44 41 class f4_CellConn; … … 154 151 * at least once. If one cell requires another one to develop, oneStep 155 152 * should be deployed again on this cell. 156 * 153 * 157 154 * This method, unlike genotype tree creation, checks semantics. This means that 158 155 * this function will fail (set error code) if: … … 184 181 185 182 int nr; ///<number of cell (seems to be used only in the approximate f1 converter for neuron connections) 186 int type;///<type183 f4_Cell_type type; ///<type 187 184 f4_Cell *dadlink; ///<pointer to cell parent 188 185 f4_Cells *org; ///<uplink to organism … … 462 459 * @return a pointer to the f4_Node object representing the f4 tree root 463 460 */ 464 //f4_Node* f4_processTree(const char *geno);465 466 /**467 * Scans a genotype string starting from a given position. This recursive method creates468 * a tree of f4_Node objects. This method extracts each potentially functional element469 * of a genotype string to a separate f4_Nodes. When the branching character '<' occurs,470 * f4_processRecur is deployed for the latest f4_Node element. This method does not471 * analyse the genotype semantically, it only checks if the syntax is proper. The only472 * semantic aspect is neuron class name extraction, where the GenoOperators473 * class is used to parse the potential neuron class name.474 * This is an internal function; for regular cases, use f4_process().475 * @param genot the string with the entire genotype476 * @param genot_len length of genot (precomputed for efficiency)477 * @param pos_inout the current position of processing in string (advanced by the function)478 * @param parent current parent of the analysed branch of the genotype479 * @return 0 if processing was successful, otherwise returns the position of an error in the genotype480 */461 //f4_Node* f4_processTree(const char *geno); 462 463 /** 464 * Scans a genotype string starting from a given position. This recursive method creates 465 * a tree of f4_Node objects. This method extracts each potentially functional element 466 * of a genotype string to a separate f4_Nodes. When the branching character '<' occurs, 467 * f4_processRecur is deployed for the latest f4_Node element. This method does not 468 * analyse the genotype semantically, it only checks if the syntax is proper. The only 469 * semantic aspect is neuron class name extraction, where the GenoOperators 470 * class is used to parse the potential neuron class name. 471 * This is an internal function; for regular cases, use f4_process(). 472 * @param genot the string with the entire genotype 473 * @param genot_len length of genot (precomputed for efficiency) 474 * @param pos_inout the current position of processing in string (advanced by the function) 475 * @param parent current parent of the analysed branch of the genotype 476 * @return 0 if processing was successful, otherwise returns the position of an error in the genotype 477 */ 481 478 int f4_processRecur(const char *genot, const int genot_len, int &pos_inout, f4_Node *parent); 482 479
Note: See TracChangeset
for help on using the changeset viewer.