Changeset 803 for cpp/frams/genetics/fL/fL_general.h
- Timestamp:
- 06/07/18 17:42:49 (6 years ago)
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
cpp/frams/genetics/fL/fL_general.h
r797 r803 315 315 * @return string with trimmed spaces 316 316 */ 317 static std::string trimSpaces( std::stringdata);317 static std::string trimSpaces(const std::string& data); 318 318 319 319 /** … … 328 328 * @return 0 if processing ended successfully, 1-based position of error otherwise 329 329 */ 330 int processLine(fLElementType type, SStringline, fL_Element *&obj, int linenumber, int begin, int end);330 int processLine(fLElementType type, const SString &line, fL_Element *&obj, int linenumber, int begin, int end); 331 331 332 332 /** … … 343 343 * @return 0 if processing finished successfully, 1-based position of error if it occured 344 344 */ 345 int parseGenotype( SStringgenotype);345 int parseGenotype(const SString &genotype); 346 346 347 347 /** … … 365 365 * @return true if new token is found, false if there is no more tokens or when there was parenthesis mismatch (if pos == -1, then it is parenthesis mismatch) 366 366 */ 367 bool getNextObject(int &pos, SStringsrc, SString &token);367 bool getNextObject(int &pos, const SString &src, SString &token); 368 368 369 369 /** … … 376 376 * @return 0 if conversion went successfully, 1 when there is a problem with parsing 377 377 */ 378 int createWord( SStringworddef, fL_Word *&word, int numparams, int begin, int end);378 int createWord(const SString &worddef, fL_Word *&word, int numparams, int begin, int end); 379 379 380 380 /** … … 385 385 * @return 0 if tokenizing finished successfully, 1 otherwise 386 386 */ 387 int tokenize( SStringsequence, std::list<fL_Word *> &result, int numparams, int begin, int end);387 int tokenize(const SString &sequence, std::list<fL_Word *> &result, int numparams, int begin, int end); 388 388 389 389 /** … … 452 452 * @return pointer to the input neuron, or NULL if no neuron could be found 453 453 */ 454 Neuro *findInputNeuron(std::pair<std::list<fL_Word *>::iterator, Neuro *> currneu, fL_Word *attractor);454 Neuro* findInputNeuron(std::pair<std::list<fL_Word *>::iterator, Neuro *> currneu, fL_Word *attractor); 455 455 456 456 /**
Note: See TracChangeset
for help on using the changeset viewer.