options.hpp
Go to the documentation of this file.
1 /*
2  * This file is part of ACADO Toolkit.
3  *
4  * ACADO Toolkit -- A Toolkit for Automatic Control and Dynamic Optimization.
5  * Copyright (C) 2008-2014 by Boris Houska, Hans Joachim Ferreau,
6  * Milan Vukov, Rien Quirynen, KU Leuven.
7  * Developed within the Optimization in Engineering Center (OPTEC)
8  * under supervision of Moritz Diehl. All rights reserved.
9  *
10  * ACADO Toolkit is free software; you can redistribute it and/or
11  * modify it under the terms of the GNU Lesser General Public
12  * License as published by the Free Software Foundation; either
13  * version 3 of the License, or (at your option) any later version.
14  *
15  * ACADO Toolkit is distributed in the hope that it will be useful,
16  * but WITHOUT ANY WARRANTY; without even the implied warranty of
17  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
18  * Lesser General Public License for more details.
19  *
20  * You should have received a copy of the GNU Lesser General Public
21  * License along with ACADO Toolkit; if not, write to the Free Software
22  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
23  *
24  */
25 
26 
33 #ifndef ACADO_TOOLKIT_OPTIONS_HPP
34 #define ACADO_TOOLKIT_OPTIONS_HPP
35 
38 
40 
65 class Options
66 {
67  friend class AlgorithmicBase;
68 
69  //
70  // PUBLIC MEMBER FUNCTIONS:
71  //
72  public:
73 
76  Options( );
77 
82  Options( const OptionsList& _optionsList
83  );
84 
87  virtual ~Options( );
88 
94 
95 
105  int& value
106  ) const;
107 
117  double& value
118  ) const;
119 
129  std::string& value
130  ) const;
131 
143  returnValue get( uint idx,
145  int& value
146  ) const;
147 
159  returnValue get( uint idx,
161  double& value
162  ) const;
163 
175  returnValue get( uint idx,
177  std::string& value
178  ) const;
179 
190  int value
191  );
192 
203  double value
204  );
205 
216  const std::string& value
217  );
218 
231  returnValue set( uint idx,
233  int value
234  );
235 
248  returnValue set( uint idx,
250  double value
251  );
252 
265  returnValue set( uint idx,
267  const std::string& value
268  );
269 
270 
280  returnValue setOptions( const Options &arg
281  );
282 
292  const Options &arg
293  );
294 
301  Options getOptions( uint idx
302  ) const;
303 
304 
309  uint getNumOptionsLists( ) const;
310 
311 
316  returnValue printOptionsList( ) const;
317 
325  ) const;
326 
327 
328 
329  //
330  // PROTECTED MEMBER FUNCTIONS:
331  //
332  protected:
333 
339  virtual returnValue setupOptions( );
340 
341 
347 
348 
355 
364  ) const;
365 
366 
372 
380  );
381 
382 
393  int value
394  );
395 
406  double value
407  );
408 
419  const std::string& value
420  );
421 
434  OptionsName name,
435  int value
436  );
437 
450  OptionsName name,
451  double value
452  );
453 
466  OptionsName name,
467  const std::string& value
468  );
469 
470  //
471  // DATA MEMBERS:
472  //
473  protected:
474 
476  std::vector< OptionsList > lists;
477 };
478 
480 
481 #endif // ACADO_TOOLKIT_OPTIONS_HPP
482 
483 /*
484  * end of file
485  */
BooleanType haveOptionsChanged() const
Definition: options.cpp:251
Options getOptions(uint idx) const
Definition: options.cpp:204
Options()
Definition: options.cpp:45
virtual ~Options()
Definition: options.cpp:58
returnValue setOptions(const Options &arg)
Definition: options.cpp:183
Allows to pass back messages to the calling function.
returnValue clearOptionsList()
Base class for all algorithmic modules within the ACADO Toolkit providing some basic functionality...
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Definition: acado_types.hpp:42
#define CLOSE_NAMESPACE_ACADO
returnValue addOptionsList()
Definition: options.cpp:61
std::vector< OptionsList > lists
Definition: options.hpp:476
Provides a generic way to set and pass user-specified options.
Definition: options.hpp:65
Provides a generic list of options (for internal use).
returnValue declareOptionsUnchanged()
Definition: options.cpp:276
returnValue printOptionsList() const
Definition: options.cpp:217
uint getNumOptionsLists() const
Definition: options.cpp:386
#define BEGIN_NAMESPACE_ACADO
returnValue addOption(OptionsName name, int value)
Definition: options.cpp:301
OptionsName
virtual returnValue setupOptions()
Definition: options.cpp:246


acado
Author(s): Milan Vukov, Rien Quirynen
autogenerated on Mon Jun 10 2019 12:34:55