OSgLParserData.cpp
Go to the documentation of this file.
1 /* $Id: OSgLParserData.cpp 3710 2010-10-04 03:39:42Z Gassmann $ */
14 #include "OSgLParserData.h"
15 #include <stdio.h>
16 
17 
19 {
20  if (osglIntArray != NULL)
21  delete[] osglIntArray;
22  osglIntArray = NULL;
23  if (osglDblArray != NULL)
24  delete[] osglDblArray;
25  osglDblArray = NULL;
26  if (osglValArray != NULL)
27  delete[] osglValArray;
28  osglValArray = NULL;
29 }//~OSgLParserData
30 
31 
33  osglIntArray(NULL),
34  osglCounter(0),
35  osglTempint(0),
36  osglDblArray(NULL),
37  osglValArray(NULL),
38 
39  fileName(""),
40  source(""),
41  fileCreator(""),
42  licence(""),
43  fileNamePresent(false),
44  sourcePresent(false),
45  fileCreatorPresent(false),
46  licencePresent(false),
47 
48  parser_errors(""),
49  ignoreDataAfterErrors(false),
50  suppressFurtherErrorMessages(false),
51  matrix(NULL),
52  matrixWithMatrixVarIdx(NULL),
53  matrixWithMatrixObjIdx(NULL),
54  matrixWithMatrixConIdx(NULL),
55  matrixVarIndexes(NULL),
56  matrixObjIndexes(NULL),
57  matrixConIndexes(NULL),
58  matrixCounter(0),
59  nonzeroCounter(0),
60  tempC(NULL),
61 
62  numberOfBlocksPresent(false),
63  numberOfColumnsPresent(false),
64  numberOfConPresent(false),
65  numberOfConIdxPresent(false),
66  numberOfConstraintsPresent(false),
67  numberOfElPresent(false),
68  numberOfEnumerationsPresent(false),
69  numberOfItemsPresent(false),
70  numberOfMatricesPresent(false),
71  numberOfMatrixConPresent(false),
72  numberOfMatrixObjPresent(false),
73  numberOfMatrixVarPresent(false),
74  numberOfObjPresent(false),
75  numberOfObjIdxPresent(false),
76  numberOfObjectivesPresent(false),
77  numberOfRowsPresent(false),
78  numberOfValuesPresent(false),
79  numberOfVarPresent(false),
80  numberOfVarIdxPresent(false),
81  numberOfVariablesPresent(false),
82 
83  base64SizePresent(false),
84  baseMatrixIdxPresent(false),
85  baseMatrixStartRowPresent(false),
86  baseMatrixStartColPresent(false),
87  baseMatrixEndRowPresent(false),
88  baseMatrixEndColPresent(false),
89  blockRowIdxPresent(false),
90  blockColIdxPresent(false),
91  coefPresent(false),
92  constantPresent(false),
93  idxPresent(false),
94  incrPresent(false),
95  matrixConIdxPresent(false),
96  matrixObjIdxPresent(false),
97  matrixVarIdxPresent(false),
98  multPresent(false),
99  scalarMultiplierPresent(false),
100  targetMatrixFirstRowPresent(false),
101  targetMatrixFirstColPresent(false),
102 
103  numberOfBlocks(-1),
104  numberOfColumns(-1),
105  numberOfCon(-1),
106  numberOfConIdx(-1),
107  numberOfConstraints(-1),
108  numberOfEl(-1),
109  numberOfEnumerations(-1),
110  numberOfItems(-1),
111  numberOfMatrices(-1),
112  numberOfMatrixCon(-1),
113  numberOfMatrixObj(1),
114  numberOfMatrixVar(-1),
115  numberOfObj(1),
116  numberOfObjIdx(-1),
117  numberOfObjectives(-1),
118  numberOfRows(-1),
119  numberOfValues(-1),
120  numberOfVar(-1),
121  numberOfVarIdx(-1),
122  numberOfVariables(-1),
123 
124  base64Size(0),
125  baseMatrixIdx(-1),
126  baseMatrixStartRow(0),
127  baseMatrixStartCol(0),
128  baseMatrixEndRow(-1),
129  baseMatrixEndCol(-1),
130  blockRowIdx(-1),
131  blockColIdx(-1),
132  coef(0.0),
133  constant(0.0),
134  idx(-1),
135  incr(1),
136  matrixConIdx(-1),
137  matrixObjIdx(-1),
138  matrixVarIdx(-1),
139  mult(1),
140  scalarMultiplier(1.),
141  targetMatrixFirstRow(0),
142  targetMatrixFirstCol(0),
143 
144  baseTransposePresent(false),
145  categoryPresent(false),
146  conTypePresent(false),
147  descriptionPresent(false),
148  enumTypePresent(false),
149  matrixConTypePresent(false),
150  matrixNamePresent(false),
151  matrixObjTypePresent(false),
152  matrixTypePresent(false),
153  matrixVarTypePresent(false),
154  namePresent(false),
155  objTypePresent(false),
156  rowMajorPresent(false),
157  shapePresent(false),
158  solverPresent(false),
159  symmetryPresent(false),
160  typePresent(false),
161  unitPresent(false),
162  valuePresent(false),
163  valueTypePresent(false),
164  varTypePresent(false),
165 
166  baseTranspose(""),
167  category(""),
168  conType(""),
169  description(""),
170  enumType(""),
171  matrixConType(""),
172  matrixName(""),
173  matrixObjType(""),
174  matrixType(""),
175  matrixVarType(""),
176  name(""),
177  objType(""),
178  rowMajor(""),
179  shape(""),
180  solver(""),
181  symmetry(""),
182  type(""),
183  unit(""),
184  value(""),
185  valueType(""),
186  varType("")
187 
188 
189 /*
190 =================================
191  symmetry(""),
192  symmetryPresent(false),
193  name(""),
194  type(""),
195  idx(-1),
196  namePresent(false),
197  typePresent(false),
198  idxPresent(false),
199  numberOfBlocks(-1),
200  numberOfColumns(-1),
201  numberOfRows(-1),
202  baseMatrixIdx(-1),
203  targetMatrixFirstRow(0),
204  targetMatrixFirstCol(0),
205  baseMatrixStartRow(0),
206  baseMatrixStartCol(0),
207  baseMatrixEndRow(-1),
208  baseMatrixEndCol(-1),
209  baseTranspose(false),
210  scalarMultiplier(0.0),
211  baseMatrixIdxPresent(false),
212  targetMatrixFirstRowPresent(false),
213  targetMatrixFirstColPresent(false),
214  baseMatrixStartRowPresent(false),
215  baseMatrixStartColPresent(false),
216  baseMatrixEndRowPresent(false),
217  baseMatrixEndColPresent(false),
218  baseTransposePresent(false),
219  scalarMultiplierPresent(false),
220  rowMajorPresent(false),
221  rowMajor(false),
222  blockRowIdx(-1),
223  blockRowIdxPresent(false),
224  blockColIdx(-1),
225  blockColIdxPresent(false),
226  osglConstantPresent(false),
227  osglCoefPresent(false),
228  osglCoef(0.0),
229  numberOfBlocksPresent(false),
230  numberOfColumnsPresent(false),
231  numberOfRowsPresent(false),
232  numberOfValuesPresent(false),
233  numberOfValues(0),
234  numberOfVarIdxPresent(false),
235  numberOfVarIdx(0),
236  numberOfElPresent(false),
237  numberOfEl(0),
238  osglNumberOfNonzeros(0),
239  osglNonzeroCounter(0),
240  matrixBlockNumberOfRows(NULL),
241  matrixBlockNumberOfCols(NULL),
242  shape(ENUM_NL_EXPR_SHAPE_general),
243  shapePresent(false),
244  valueType(ENUM_CONREFERENCE_VALUETYPE_value),
245  valueTypePresent(false),
246 
247  numberOfMatrixVar(0),
248  osglMatrixVarIdxATT(-1),
249  osglMatrixVarIdxATTPresent(false),
250  osglMatrixVarTypeAttributePresent(false),
251  osglMatrixVarTypeAttribute(""),
252 
253  numberOfMatrixObj(0),
254  osglMatrixObjIdxATT(-1),
255  osglMatrixObjIdxATTPresent(false),
256  osglMatrixObjTypeAttributePresent(false),
257  osglMatrixObjTypeAttribute(""),
258 
259  numberOfMatrixCon(0),
260  osglMatrixConIdxATT(-1),
261  osglMatrixConIdxATTPresent(false),
262  osglMatrixConTypeAttributePresent(false),
263  osglMatrixConTypeAttribute("")
264 */{
265 }//OSgLParserData
266 
int * osglIntArray
data structure to process an IntVector and hold the data temporarily
OSgLParserData()
the OSgLParserData class constructor
static Bigint * mult(Bigint *a, Bigint *b)
Definition: OSdtoa.cpp:857
double * osglDblArray