external_packages/qpOASES-3.2.0/include/qpOASES/Indexlist.hpp
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 
36 #ifndef QPOASES_INDEXLIST_HPP
37 #define QPOASES_INDEXLIST_HPP
38 
39 
40 #include <qpOASES/Utils.hpp>
41 
42 
44 
45 
55 class Indexlist
56 {
57  /*
58  * FRIENDS
59  */
60  friend class DenseMatrix;
61  friend class SymDenseMat;
62  friend class SparseMatrix;
63  friend class SparseMatrixRow;
64  friend class SymSparseMat;
65 
66  /*
67  * PUBLIC MEMBER FUNCTIONS
68  */
69  public:
71  Indexlist( );
72 
74  Indexlist( int_t n
75  );
76 
78  Indexlist( const Indexlist& rhs
79  );
80 
82  ~Indexlist( );
83 
86  );
87 
88 
92  returnValue init( int_t n = 0
93  );
94 
95 
99  returnValue getNumberArray( int_t** const numberarray
100  ) const;
101 
105  returnValue getISortArray( int_t** const iSortArray
106  ) const;
107 
108 
112  int_t getIndex( int_t givennumber
113  ) const;
114 
118  int_t getNumber( int_t physicalindex
119  ) const;
120 
121 
124  inline int_t getLength( ) const;
125 
128  inline int_t getLastNumber( ) const;
129 
130 
135  returnValue addNumber( int_t addnumber
136  );
137 
140  returnValue removeNumber( int_t removenumber
141  );
142 
145  returnValue swapNumbers( int_t number1,
146  int_t number2
147  );
148 
151  inline BooleanType isMember( int_t _number
152  ) const;
153 
154 
155  /*
156  * PROTECTED MEMBER FUNCTIONS
157  */
158  protected:
161  returnValue clear( );
162 
165  returnValue copy( const Indexlist& rhs
166  );
167 
173  ) const;
174 
175 
176  /*
177  * PROTECTED MEMBER VARIABLES
178  */
179  protected:
188 };
189 
191 
192 #include <qpOASES/Indexlist.ipp>
193 
194 #endif /* QPOASES_INDEXLIST_HPP */
195 
196 
197 /*
198  * end of file
199  */
Interfaces matrix-vector operations tailored to symmetric sparse matrices.
int getLastNumber() const
Allows to pass back messages to the calling function.
Interfaces matrix-vector operations tailored to symmetric dense matrices.
Interfaces matrix-vector operations tailored to general sparse matrices.
Interfaces matrix-vector operations tailored to general dense matrices.
Interfaces matrix-vector operations tailored to general sparse matrices.
int getLength()
returnValue copy(const Indexlist &rhs)
void rhs(const real_t *x, real_t *f)
BooleanType isMember(int _number) const
int getNumber(int physicalindex) const
returnValue getISortArray(int_t **const iSortArray) const


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