BayesOpt
parser.hpp
Go to the documentation of this file.
1 
2 /*
3 -------------------------------------------------------------------------
4  This file is part of BayesOpt, an efficient C++ library for
5  Bayesian optimization.
6 
7  Copyright (C) 2011-2015 Ruben Martinez-Cantin <rmcantin@unizar.es>
8 
9  BayesOpt is free software: you can redistribute it and/or modify it
10  under the terms of the GNU Affero General Public License as published by
11  the Free Software Foundation, either version 3 of the License, or
12  (at your option) any later version.
13 
14  BayesOpt is distributed in the hope that it will be useful, but
15  WITHOUT ANY WARRANTY; without even the implied warranty of
16  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
17  GNU Affero General Public License for more details.
18 
19  You should have received a copy of the GNU Affero General Public License
20  along with BayesOpt. If not, see <http://www.gnu.org/licenses/>.
21 ------------------------------------------------------------------------
22 */
23 
24 #ifndef _PARSER_HPP_
25 #define _PARSER_HPP_
26 
27 #include <vector>
28 
29 namespace bayesopt
30 {
31  namespace utils
32  {
37  void parseExpresion(std::string input, std::string& parent,
38  std::string& child1, std::string& child2);
39 
44  void parseExpresion(std::string input, std::string& parent,
45  std::vector<std::string>& childs);
46 
50  void split(std::string &input, char delim, std::vector<std::string> &elems);
51 
52  } //namespace utils
53 
54 } //namespace bayesopt
55 
56 #endif
Namespace of the library interface.
Definition: using.dox:1
void split(std::string &input, char delim, std::vector< std::string > &elems)
Splits the input string with a delimiter to extract elements.
Definition: parser.cpp:113
void parseExpresion(std::string input, std::string &parent, std::string &child1, std::string &child2)
Parse expresions of the form Parent(Child1, Child2).
Definition: parser.cpp:35