external_packages/qpoases/INCLUDE/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-2008 by Hans Joachim Ferreau et al. All rights reserved.
6  *
7  * qpOASES is free software; you can redistribute it and/or
8  * modify it under the terms of the GNU Lesser General Public
9  * License as published by the Free Software Foundation; either
10  * version 2.1 of the License, or (at your option) any later version.
11  *
12  * qpOASES is distributed in the hope that it will be useful,
13  * but WITHOUT ANY WARRANTY; without even the implied warranty of
14  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
15  * Lesser General Public License for more details.
16  *
17  * You should have received a copy of the GNU Lesser General Public
18  * License along with qpOASES; if not, write to the Free Software
19  * Foundation, Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA
20  *
21  */
22 
23 
35 #ifndef QPOASES_INDEXLIST_HPP
36 #define QPOASES_INDEXLIST_HPP
37 
38 
39 #include <Utils.hpp>
40 
41 
48 class Indexlist
49 {
50  /*
51  * PUBLIC MEMBER FUNCTIONS
52  */
53  public:
55  Indexlist( );
56 
58  Indexlist( const Indexlist& rhs
59  );
60 
62  ~Indexlist( );
63 
66  );
67 
70  returnValue init( );
71 
72 
76  returnValue getNumberArray( int* const numberarray
77  ) const;
78 
79 
83  int getIndex( int givennumber
84  ) const;
85 
89  int getPhysicalIndex( int givennumber
90  ) const;
91 
95  int getNumber( int physicalindex
96  ) const;
97 
98 
101  inline int getLength( );
102 
105  inline int getLastNumber( ) const;
106 
107 
112  returnValue addNumber( int addnumber
113  );
114 
117  returnValue removeNumber( int removenumber
118  );
119 
122  returnValue swapNumbers( int number1,
123  int number2
124  );
125 
128  inline BooleanType isMember( int _number
129  ) const;
130 
131 
132  /*
133  * PROTECTED MEMBER VARIABLES
134  */
135  protected:
139  int length;
140  int first;
141  int last;
142  int lastusedindex;
143  int physicallength;
144 };
145 
146 
147 #include <Indexlist.ipp>
148 
149 #endif /* QPOASES_INDEXLIST_HPP */
150 
151 
152 /*
153  * end of file
154  */
int getLastNumber() const
Allows to pass back messages to the calling function.
int getLength()
void rhs(const real_t *x, real_t *f)
BooleanType isMember(int _number) const
int getNumber(int physicalindex) const


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