export_argument_list.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 
34 #ifndef ACADO_TOOLKIT_EXPORT_ARGUMENT_LIST_HPP
35 #define ACADO_TOOLKIT_EXPORT_ARGUMENT_LIST_HPP
36 
37 
40 
42 
43 
55 {
56  //
57  // PUBLIC MEMBER FUNCTIONS:
58  //
59  public:
60 
64 
77  ExportArgumentList( const ExportArgument& _argument1,
78  const ExportArgument& _argument2 = emptyConstExportArgument,
79  const ExportArgument& _argument3 = emptyConstExportArgument,
80  const ExportArgument& _argument4 = emptyConstExportArgument,
81  const ExportArgument& _argument5 = emptyConstExportArgument,
82  const ExportArgument& _argument6 = emptyConstExportArgument,
83  const ExportArgument& _argument7 = emptyConstExportArgument,
84  const ExportArgument& _argument8 = emptyConstExportArgument,
85  const ExportArgument& _argument9 = emptyConstExportArgument
86  );
87 
93  );
94 
97  virtual ~ExportArgumentList( );
98 
104  );
105 
106 
121  returnValue addArgument( const ExportArgument& _argument1,
122  const ExportArgument& _argument2 = emptyConstExportArgument,
123  const ExportArgument& _argument3 = emptyConstExportArgument,
124  const ExportArgument& _argument4 = emptyConstExportArgument,
125  const ExportArgument& _argument5 = emptyConstExportArgument,
126  const ExportArgument& _argument6 = emptyConstExportArgument,
127  const ExportArgument& _argument7 = emptyConstExportArgument,
128  const ExportArgument& _argument8 = emptyConstExportArgument,
129  const ExportArgument& _argument9 = emptyConstExportArgument
130  );
131 
132 
137  uint getNumArguments( ) const;
138 
139 
150  virtual returnValue exportCode( std::ostream& stream,
151  const std::string& _realString = "real_t",
152  const std::string& _intString = "int",
153  int _precision = 16
154  ) const;
155 
156 
161  returnValue clear( );
162 
163 
169 
170 
176 
181  const std::vector< ExportArgument >& get( ) const;
182 
183  //
184  // PROTECTED MEMBER FUNCTIONS:
185  //
186  protected:
187 
195  );
196 
197 
198  //
199  // DATA MEMBERS:
200  //
201  protected:
202 
204  std::vector< ExportArgument > arguments;
205 
208 };
209 
210 
212 
213 
214 
215 #endif // ACADO_TOOLKIT_EXPORT_ARGUMENT_LIST_HPP
216 
217 
218 /*
219  * end of file
220  */
returnValue addSingleArgument(const ExportArgument &_argument)
ExportArgumentList & operator=(const ExportArgumentList &rhs)
Allows to pass back messages to the calling function.
BEGIN_NAMESPACE_ACADO typedef unsigned int uint
Definition: acado_types.hpp:42
#define CLOSE_NAMESPACE_ACADO
Defines a matrix-valued variable that can be passed as argument to exported functions.
std::vector< ExportArgument > arguments
Allows to store a list of calling arguments of an ExportFunction.
virtual returnValue exportCode(std::ostream &stream, const std::string &_realString="real_t", const std::string &_intString="int", int _precision=16) const
void rhs(const real_t *x, real_t *f)
static const ExportArgument emptyConstExportArgument
#define BEGIN_NAMESPACE_ACADO
returnValue addArgument(const ExportArgument &_argument1, const ExportArgument &_argument2=emptyConstExportArgument, const ExportArgument &_argument3=emptyConstExportArgument, const ExportArgument &_argument4=emptyConstExportArgument, const ExportArgument &_argument5=emptyConstExportArgument, const ExportArgument &_argument6=emptyConstExportArgument, const ExportArgument &_argument7=emptyConstExportArgument, const ExportArgument &_argument8=emptyConstExportArgument, const ExportArgument &_argument9=emptyConstExportArgument)


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