parse.h
Go to the documentation of this file.
1 
40 #ifndef HIGH_PRECISION_PSO_GENERAL_PARSE_H_
41 #define HIGH_PRECISION_PSO_GENERAL_PARSE_H_
42 
43 #include <string>
44 #include <vector>
45 
46 #include "function/function.h"
51 
52 namespace highprecisionpso {
53 
57 namespace parse {
58 
71 Operation* ParseOperation(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
84 PairReduceOperation* ParsePairCombinationOperation(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
97 ConstantEvaluation* ParseConstantEvaluation(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
110 VectorReduceOperation* ParseVectorReduceOperation(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
111 
124 SpecificStatisticalEvaluation* ParseSpecificStatistic(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
137 SpecificStatisticalEvaluation* ParseCombineSpecificStatistic(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
150 Statistic* ParseReduceOperator(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
163 Statistic* ParseStatistic(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
176 Statistic* ParseCombineStatistic(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
177 
190 SpecificFunction* ParseSpecificFunction(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
203 SpecificFunction* ParseCombineSpecificFunction(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
216 Function* ParseFunctionReduceOperator(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
229 Function* ParseStandardFunction(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
242 Function* ParseFunction(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
255 Function* ParseCombineFunction(const std::vector<std::string> & parameters, unsigned int & parsed_parameters);
256 
266 void SignalInvalidCommand(const std::vector<std::string> & parameters);
267 
268 } // namespace parse
269 } // namespace highprecisionpso
270 
271 #endif /* HIGH_PRECISION_PSO_GENERAL_PARSE_H_ */
This file contains abstract classes for function generation.
SpecificStatisticalEvaluation * ParseSpecificStatistic(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a specific statistical evaluation starting at the given index...
PairReduceOperation * ParsePairCombinationOperation(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a pair combination operation starting at the given index.
Function * ParseCombineFunction(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a combined function starting at the given index.
Function * ParseStandardFunction(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a standard function starting at the given index.
void SignalInvalidCommand(const std::vector< std::string > &parameters)
Prints the supplied parameters to stderr and let the program terminate with exit code 1...
This class is an abstract class. It supplies an interface for operations on vectors.
Definition: function.h:191
Statistic * ParseCombineStatistic(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a combined statistic starting at the given index.
Function * ParseFunction(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a function starting at the given index.
This file contains the available random number generators.
This class is an abstract class. It supplies the interface for generating a constant value...
Definition: general_objects.h:532
Function * ParseFunctionReduceOperator(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a function reduce operator starting at the given index.
VectorReduceOperation * ParseVectorReduceOperation(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a vector reduce operation starting at the given index.
This an abstract class. It supplies the interface for reducing a vector of mpf_t values to a single v...
Definition: general_objects.h:153
Operation * ParseOperation(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for an operation starting at the given index.
ConstantEvaluation * ParseConstantEvaluation(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a constant evaluation starting at the given index.
SpecificFunction * ParseSpecificFunction(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a specific function starting at the given index.
This class is an abstract class. It supplies the interface to operate on single mpf_t values...
Definition: general_objects.h:683
SpecificStatisticalEvaluation * ParseCombineSpecificStatistic(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a combined specific statistical evaluation starting at the given index...
This class is an abstract class. It supplies the interface for statistical evaluations.
Definition: direct_statistics.h:54
This file contain classes, which can evaluate matrices depending on the current state of the particle...
This file contain classes, which evaluate to vectors depending on the current state of the particle s...
This class is an abstract class. It supplies the interface for intermediate statistical evaluations...
Definition: specific_statistical_evaluations.h:54
Statistic * ParseStatistic(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a statistic starting at the given index.
This class is an abstract class. It supplies the interface for objective functions.
Definition: function.h:74
SpecificFunction * ParseCombineSpecificFunction(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a combined specific function starting at the given index.
This class is an abstract class. It supplies the interface for reducing two mpf_t values to a single ...
Definition: general_objects.h:403
This file contains various general objects which can be used by or contained in other objects...
base namespace for this project.
Definition: absorption.h:45
Statistic * ParseReduceOperator(const std::vector< std::string > &parameters, unsigned int &parsed_parameters)
Parses the given vector for a reduce operator starting at the given index.