Types.h
Go to the documentation of this file.
1 /*
2  * This file is part of qpOASES.
3  *
4  * qpOASES -- An Implementation of the Online Active Set Strategy.
5  * Copyright (C) 2007-2015 by Hans Joachim Ferreau, Andreas Potschka,
6  * Christian Kirches et al. All rights reserved.
7  *
8  * qpOASES is free software; you can redistribute it and/or
9  * modify it under the terms of the GNU Lesser General Public
10  * License as published by the Free Software Foundation; either
11  * version 2.1 of the License, or (at your option) any later version.
12  *
13  * qpOASES is distributed in the hope that it will be useful,
14  * but WITHOUT ANY WARRANTY; without even the implied warranty of
15  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
16  * See the GNU Lesser General Public License for more details.
17  *
18  * You should have received a copy of the GNU Lesser General Public
19  * License along with qpOASES; if not, write to the Free Software
20  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
21  *
22  */
23 
24 
35 #ifndef QPOASES_TYPES_H
36 #define QPOASES_TYPES_H
37 
38 
39 /* If your compiler does not support the snprintf() function,
40  * uncomment the following line and try to compile again. */
41 /* #define __NO_SNPRINTF__ */
42 
43 
44 /* Uncomment the following line for setting the __DSPACE__ flag. */
45 /* #define __DSPACE__ */
46 
47 /* Uncomment the following line for setting the __XPCTARGET__ flag. */
48 /* #define __XPCTARGET__ */
49 
50 
51 /* Uncomment the following line for setting the __NO_FMATH__ flag. */
52 /* #define __NO_FMATH__ */
53 
54 /* Uncomment the following line to enable debug information. */
55 /* #define __DEBUG__ */
56 
57 /* Uncomment the following line to enable suppress any kind of console output. */
58 /* #define __SUPPRESSANYOUTPUT__ */
59 
60 
63 #define __ALWAYS_INITIALISE_WITH_ALL_EQUALITIES__
64 
65 /* Uncomment the following line to activate the use of an alternative Givens
66  * plane rotation requiring only three multiplications. */
67 /* #define __USE_THREE_MULTS_GIVENS__ */
68 
69 /* Uncomment the following line to activate the use of single precision arithmetic. */
70 /* #define __USE_SINGLE_PRECISION__ */
71 
72 /* The inline keyword is skipped by default as it is not part of the C90 standard.
73  * However, by uncommenting the following line, use of the inline keyword can be enforced. */
74 /* #define __USE_INLINE__ */
75 
76 
77 /* Work-around for Borland BCC 5.5 compiler. */
78 #ifdef __BORLANDC__
79 #if __BORLANDC__ < 0x0561
80  #define __STDC__ 1
81 #endif
82 #endif
83 
84 
85 /* Work-around for Microsoft compilers. */
86 #ifdef _MSC_VER
87  #define __NO_SNPRINTF__
88  #pragma warning( disable : 4061 4100 4250 4514 4996 )
89 #endif
90 
91 
92 /* Apply pre-processor settings when using qpOASES within auto-generated code. */
93 #ifdef __CODE_GENERATION__
94  #define __NO_COPYRIGHT__
95  #define __EXTERNAL_DIMENSIONS__
96 #endif /* __CODE_GENERATION__ */
97 
98 
99 /* Avoid using static variables declaration within functions. */
100 #ifdef __NO_STATIC__
101  #define myStatic
102 #else
103  #define myStatic static
104 #endif /* __NO_STATIC__ */
105 
106 
107 /* Skip inline keyword if not specified otherwise. */
108 #ifndef __USE_INLINE__
109  #define inline
110 #endif
111 
112 
113 /* Avoid any printing on embedded platforms. */
114 #if defined(__DSPACE__) || defined(__XPCTARGET__)
115  #define __SUPPRESSANYOUTPUT__
116  #define __NO_SNPRINTF__
117 #endif
118 
119 
120 #ifdef __NO_SNPRINTF__
121  #if (!defined(_MSC_VER)) || defined(__DSPACE__) || defined(__XPCTARGET__)
122  /* If snprintf is not available, provide an empty implementation... */
123  int snprintf( char* s, size_t n, const char* format, ... );
124  #else
125  /* ... or substitute snprintf by _snprintf for Microsoft compilers. */
126  #define snprintf _snprintf
127  #endif
128 #endif /* __NO_SNPRINTF__ */
129 
130 
132 #define BEGIN_NAMESPACE_QPOASES
133 
135 #define END_NAMESPACE_QPOASES
136 
138 #define USING_NAMESPACE_QPOASES
139 
141 #define REFER_NAMESPACE_QPOASES /*::*/
142 
143 
145 #define RR( I,J ) _THIS->R[(I)+NVMAX*(J)]
146 
148 #define QQ( I,J ) _THIS->Q[(I)+NVMAX*(J)]
149 
151 #define TT( I,J ) _THIS->T[(I)*NVCMIN+(J)]
152 
153 
154 
156 
157 
160 #ifndef __CODE_GENERATION__
161 
162  #ifdef __USE_SINGLE_PRECISION__
163  typedef float real_t;
164  #else
165  typedef double real_t;
166  #endif /* __USE_SINGLE_PRECISION__ */
167 
168 #endif /* __CODE_GENERATION__ */
169 
170 
172 typedef enum
173 {
174  BT_FALSE = 0,
176 } BooleanType;
177 
178 
181 typedef enum
182 {
189 } PrintLevel;
190 
191 
193 typedef enum
194 {
198 
199 
202 typedef enum
203 {
214 
215 
217 typedef enum
218 {
226 } HessianType;
227 
228 
230 typedef enum
231 {
237 } SubjectToType;
238 
239 
241 typedef enum
242 {
243  ST_LOWER = -1,
250 
251 
262 typedef struct
263 {
264  int idxAddB;
265  int idxRemB;
266  int idxAddC;
267  int idxRemC;
268  int excAddB;
269  int excRemB;
270  int excAddC;
271  int excRemC;
272 } TabularOutput;
273 
288 typedef struct
289 {
290  long numericFormat;
291  long nRows;
292  long nCols;
293  long imaginaryPart;
294  long nCharName;
296 
297 
299 
300 
301 #endif /* QPOASES_TYPES_H */
302 
303 
304 /*
305  * end of file
306  */
HessianType
Definition: Types.h:217
VisibilityStatus
Definition: Types.h:193
Definition: Types.h:185
Definition: Types.h:175
PrintLevel
Definition: Types.h:181
BooleanType
Definition: Types.h:172
BEGIN_NAMESPACE_QPOASES typedef double real_t
Definition: Types.h:165
int idxRemB
Definition: Types.h:265
QProblemStatus
Definition: Types.h:202
int excRemC
Definition: Types.h:271
int idxAddB
Definition: Types.h:264
int excAddB
Definition: Types.h:268
SubjectToStatus
Definition: Types.h:241
int idxAddC
Definition: Types.h:266
Definition: Types.h:186
Definition: Types.h:188
int idxRemC
Definition: Types.h:267
Stores internal information for tabular (debugging) output.
int excRemB
Definition: Types.h:269
Struct containing the variable header for mat file.
int excAddC
Definition: Types.h:270
SubjectToType
Definition: Types.h:230
#define END_NAMESPACE_QPOASES
Definition: Types.h:135
#define BEGIN_NAMESPACE_QPOASES
Definition: Types.h:132


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