Salome HOME
Update copyrights 2014.
[modules/med.git] / doc / doxygen / fakesources / MEDCouplingMemArray.C
1 // Copyright (C) 2013-2014  CEA/DEN, EDF R&D, OPEN CASCADE
2 //
3 // This library is free software; you can redistribute it and/or
4 // modify it under the terms of the GNU Lesser General Public
5 // License as published by the Free Software Foundation; either
6 // version 2.1 of the License, or (at your option) any later version.
7 //
8 // This library is distributed in the hope that it will be useful,
9 // but WITHOUT ANY WARRANTY; without even the implied warranty of
10 // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
11 // Lesser General Public License for more details.
12 //
13 // You should have received a copy of the GNU Lesser General Public
14 // License along with this library; if not, write to the Free Software
15 // Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307 USA
16 //
17 // See http://www.salome-platform.org/ or email : webmaster.salome@opencascade.com
18 //
19
20 // This file contains some code used only for
21 // * generation of documentation for inline methods of DataArray* classes
22 // * groupping methods into "Basic API", "Advanced" and "Others..." sections
23
24
25 namespace ParaMEDMEM
26 {
27 /*!
28  * Returns the attribute \a _name of \a this array.
29  * See \ref MEDCouplingArrayBasicsName "DataArrays infos" for more information.
30  *  \return std::string - array name
31  */
32 std::string DataArray::getName() const {}
33
34 /*!
35  * Returns number of components of \a this array.
36  * See \ref MEDCouplingArrayBasicsTuplesAndCompo "DataArrays infos" for more information.
37  *  \return int - number of components
38  */
39 int DataArray::getNumberOfComponents() const {}
40
41 /*!
42  * Returns number of tuples of \a this array.
43  * See \ref MEDCouplingArrayBasicsName "DataArrays infos" for more information.
44  *  \return int - number of tuples
45  */
46 int DataArray::getNumberOfTuples() const {}
47
48 /*!
49  * Returns number of elements of \a this array.
50  * See \ref MEDCouplingArrayBasicsName "DataArrays infos" for more information.
51  *  \return int - number of elements == <em> this->getNumberOfTuples() * 
52  *          this->getNumberOfComponents() </em>
53  */
54 int DataArray::getNbOfElems() const {}
55
56 /*!
57  * Throws an exception if number of elements in \a this array differs from a given one.
58  * See \ref MEDCouplingArrayBasicsName "DataArrays infos" for more information.
59  *  \param [in] nbOfElems - expected array size.
60  *  \param [in] msg - message to return within the thrown exception.
61  *  \throw if <em> this->getNbOfElems() != nbOfElems</em>.
62  */
63 void DataArray::checkNbOfElems(int nbOfElems, const char *msg) const {}
64
65 /*!
66  * Returns values of a specified tuple.
67  *  \param [in] tupleId - index of the tuple of interest.
68  *  \param [out] res - C array returning values of the \a tupleId-th tuple. The \a res
69  *         must be allocated by the caller and be of size not less than \a
70  *         this->getNumberOfComponents().
71  */
72 void DataArrayDouble::getTuple(int tupleId, double *res) const {}
73
74 /*!
75  * Returns a value of a specified element of \a this array.
76  *  \param [in] tupleId - index of the tuple of interest.
77  *  \param [in] compoId - index of the component of interest.
78  *  \return double - the value of \a compoId-th component of \a tupleId-th tuple.
79  */
80 double DataArrayDouble::getIJ(int tupleId, int compoId) const {}
81
82 /*!
83  * Returns a pointer to the first element of the raw data of \a this array.
84  *  \return double* - the pointer to the value of 0-th tuple and 0-th component.
85  */
86 double * DataArrayDouble::getPointer() {}
87
88 /*!
89  * Returns a const pointer to the first element of the raw data of \a this array.
90  *  \return const double* - the pointer to the value of 0-th tuple and 0-th component.
91  */
92 const double * DataArrayDouble::getConstPointer() const {}
93
94 /*!
95  * Assigns a given value to a specified element of \a this array.
96  *  \param [in] tupleId - index of the tuple to modify.
97  *  \param [in] compoId - index of the component to modify.
98  *  \param [in] newVal - the value to assign to the value at \a compoId-th component
99  *              of \a tupleId-th tuple. 
100  */
101 void DataArrayDouble::setIJ(int tupleId, int compoId, double newVal) {}
102
103 /*!
104  * Assigns a given value to a specified element of \a this array which is not marked
105  * as changed.
106  *  \param [in] tupleId - index of the tuple to modify.
107  *  \param [in] compoId - index of the component to modify.
108  *  \param [in] newVal - the value to assign to the value at \a compoId-th component
109  *              of \a tupleId-th tuple.
110  */
111 void DataArrayDouble::setIJSilent(int tupleId, int compoId, double newVal) {}
112
113 /*!
114  * Copies values from another array starting from a specified element of \a this.
115  *  \param [in] id - index of element to assign the value \a element0 to.
116  *  \param [in] element0 - value to assign to the \a id-th element of \a this.
117  *  \param [in] others - values to assign to elements following the \a id-th
118  *         element of \a this.
119  *  \param [in] sizeOfOthers - number of values to copy from \a others.
120  */
121 void DataArrayDouble::writeOnPlace(int id, double element0, const double *others, int sizeOfOthers) {}
122
123 /*!
124  * Does nothing because this class does not aggregate any TimeLabel instance.
125  */
126 void DataArrayDouble::updateTime() const {}
127
128 /*!
129  * Returns values of a specified tuple.
130  *  \param [in] tupleId - index of the tuple of interest.
131  *  \param [out] res - C array returning values of the \a tupleId-th tuple. The \a res
132  *         must be allocated by the caller and be of size not less than \a
133  *         this->getNumberOfComponents().
134  *
135  *  \ref py_mcdataarrayint_getTuple "Here is a Python example".
136  */
137 void DataArrayInt::getTuple(int tupleId, int *res) const {}
138
139 /*!
140  * Returns a value of a specified element of \a this array.
141  *  \param [in] tupleId - index of the tuple of interest.
142  *  \param [in] compoId - index of the component of interest.
143  *  \return int - the value of \a compoId-th component of \a tupleId-th tuple.
144  */
145 int DataArrayInt::getIJ(int tupleId, int compoId) const {}
146
147
148 /*!
149  * Assigns a given value to a specified element of \a this array.
150  *  \param [in] tupleId - index of the tuple to modify.
151  *  \param [in] compoId - index of the component to modify.
152  *  \param [in] newVal - the value to assign to the value at \a compoId-th component
153  *              of \a tupleId-th tuple.
154  * \warning As this method declares \a this array as modified, it is more optimal to use
155  *          setIJSilent() for modification of muliple values of array and to call
156  *          declareAsNew() after the modification is done.
157  */
158 void DataArrayInt::setIJ(int tupleId, int compoId, int newVal) {}
159
160
161 /*!
162  * Assigns a given value to a specified element of \a this array which is \b not marked
163  * as changed.
164  *  \param [in] tupleId - index of the tuple to modify.
165  *  \param [in] compoId - index of the component to modify.
166  *  \param [in] newVal - the value to assign to the value at \a compoId-th component
167  *              of \a tupleId-th tuple.
168  */
169 void DataArrayInt::setIJSilent(int tupleId, int compoId, int newVal) {}
170
171 /*!
172  * Returns a pointer to the first element of the raw data of \a this array.
173  *  \return int* - the pointer to the value of 0-th tuple and 0-th component.
174  */
175 int * DataArrayInt::getPointer() {}
176
177 /*!
178  * Returns a const pointer to the first element of the raw data of \a this array.
179  *  \return const int* - the pointer to the value of 0-th tuple and 0-th component.
180  */
181 const int * DataArrayInt::getConstPointer() const {}
182
183 /*!
184  * Copies values from another array starting from a given element of \a this.
185  *  \param [in] id - index of element to assign the value \a element0 to.
186  *  \param [in] element0 - value to assign to the \a id-th element of \a this.
187  *  \param [in] others - values to assign to elements following the \a id-th
188  *         element of \a this.
189  *  \param [in] sizeOfOthers - number of values to copy from \a others.
190  */
191 void DataArrayInt::writeOnPlace(int id, int element0, const int *others, int sizeOfOthers) {}
192
193 }
194
195 namespace ParaMEDMEM
196 {
197 //================================================================================
198 /////////////////////// DataArray GROUPPING //////////////////////////////////////
199 //================================================================================
200
201 /*! \name Basic API   */
202 ///@{
203 DataArray::setName(const char *name);
204 DataArray::copyStringInfoFrom(const DataArray& other);
205 DataArray::areInfoEquals(const DataArray& other) const;
206 DataArray::getName() const;
207 DataArray::setInfoOnComponents(const std::vector<std::string>& info);
208 DataArray::getVarOnComponent(int i) const;
209 DataArray::getUnitOnComponent(int i) const;
210 DataArray::setInfoOnComponent(int i, const char *info);
211 DataArray::getNumberOfComponents() const;
212 DataArray::getNumberOfTuples() const;
213 DataArray::getNbOfElems() const;
214 DataArray::checkNbOfElems(int nbOfElems, const char *msg) const;
215 DataArray::GetVarNameFromInfo(const std::string& info);
216 DataArray::GetUnitFromInfo(const std::string& info);
217 ///@} 
218
219 /*! \name Others... */
220 ///@{
221 DataArray::getHeapMemorySize() const;
222 DataArray::copyPartOfStringInfoFrom(const DataArray& other, const std::vector<int>& compoIds);
223 DataArray::copyPartOfStringInfoFrom2(const std::vector<int>& compoIds, const DataArray& other);
224 DataArray::areInfoEqualsIfNotWhy(const DataArray& other, std::string& reason) const;
225 DataArray::reprWithoutNameStream(std::ostream& stream) const;
226 DataArray::cppRepr(const char *varName) const;
227 DataArray::getInfoOnComponents() const;
228 DataArray::getInfoOnComponents();
229 DataArray::getVarsOnComponent() const;
230 DataArray::getUnitsOnComponent() const;
231 DataArray::getInfoOnComponent(int i) const;
232 DataArray::checkNbOfTuples(int nbOfTuples, const char *msg) const;
233 DataArray::checkNbOfComps(int nbOfCompo, const char *msg) const;
234 DataArray::checkNbOfTuplesAndComp(const DataArray& other, const char *msg) const throw(INTERP_KERNEL::Exception);
235 DataArray::checkNbOfTuplesAndComp(int nbOfTuples, int nbOfCompo, const char *msg) const throw(INTERP_KERNEL::Exception);
236 DataArray::GetNumberOfItemGivenBES(int begin, int end, int step, const char *msg);
237 DataArray::GetNumberOfItemGivenBESRelative(int begin, int end, int step, const char *msg);
238 DataArray::GetPosOfItemGivenBESRelativeNoThrow(int value, int begin, int end, int step);
239 DataArray::reprCppStream(const char *varName, std::ostream& stream) const;
240 DataArray::DataArray();
241 DataArray::CheckValueInRange(int ref, int value, const char *msg);
242 DataArray::CheckValueInRangeEx(int value, int start, int end, const char *msg);
243 DataArray::CheckClosingParInRange(int ref, int value, const char *msg);
244 std::string              DataArray::_name;
245 std::vector<std::string> DataArray::_info_on_compo;
246 ///@} 
247
248 //================================================================================
249 /////////////////////// DataArrayDouble GROUPPING ////////////////////////////////
250 //================================================================================
251
252 /*! \name Basic API   */
253 ///@{
254 DataArrayDouble::isAllocated() const;
255 DataArrayDouble::setInfoAndChangeNbOfCompo(const std::vector<std::string>& info);
256 DataArrayDouble::doubleValue() const;
257 DataArrayDouble::empty() const;
258 DataArrayDouble::deepCpy() const;
259 DataArrayDouble::performCpy(bool deepCpy) const;
260 DataArrayDouble::cpyFrom(const DataArrayDouble& other);
261 DataArrayDouble::alloc(int nbOfTuple, int nbOfCompo);
262 DataArrayDouble::allocIfNecessary(int nbOfTuple, int nbOfCompo);
263 DataArrayDouble::fillWithZero();
264 DataArrayDouble::fillWithValue(double val);
265 DataArrayDouble::iota(double init=0.);
266 DataArrayDouble::isUniform(double val, double eps) const;
267 DataArrayDouble::sort(bool asc=true);
268 DataArrayDouble::reverse();
269 DataArrayDouble::checkMonotonic(bool increasing, double eps) const;
270 DataArrayDouble::isMonotonic(bool increasing, double eps) const;
271 DataArrayDouble::repr() const;
272 DataArrayDouble::isEqual(const DataArrayDouble& other, double prec) const;
273 DataArrayDouble::isEqualWithoutConsideringStr(const DataArrayDouble& other, double prec) const;
274 DataArrayDouble::reAlloc(int nbOfTuples);
275 DataArrayDouble::convertToIntArr() const;
276 DataArrayDouble::fromNoInterlace() const;
277 DataArrayDouble::toNoInterlace() const;
278 DataArrayDouble::renumberInPlace(const int* old2New);
279 DataArrayDouble::renumberInPlaceR(const int* new2Old);
280 DataArrayDouble::renumber(const int* old2New) const;
281 DataArrayDouble::renumberR(const int* new2Old) const;
282 DataArrayDouble::renumberAndReduce(const int* old2New, int newNbOfTuple) const;
283 DataArrayDouble::selectByTupleId(const int* new2OldBg, const int* new2OldEnd) const;
284 DataArrayDouble::selectByTupleIdSafe(const int* new2OldBg, const int* new2OldEnd) const;
285 DataArrayDouble::selectByTupleId2(int bg, int end2, int step) const;
286 DataArrayDouble::selectByTupleRanges(const std::vector<std::pair<int,int> >& ranges) const;
287 DataArrayDouble::substr(int tupleIdBg, int tupleIdEnd=-1) const;
288 DataArrayDouble::rearrange(int newNbOfCompo);
289 DataArrayDouble::transpose();
290 DataArrayDouble::changeNbOfComponents(int newNbOfComp, double dftValue) const;
291 DataArrayDouble::keepSelectedComponents(const std::vector<int>& compoIds) const;
292 DataArrayDouble::meldWith(const DataArrayDouble* other);
293 DataArrayDouble::findCommonTuples(double prec, int limitTupleId, DataArrayInt *&comm, DataArrayInt *&commIndex) const;
294 DataArrayDouble::getDifferentValues(double prec, int limitTupleId=-1) const;
295 DataArrayDouble::setSelectedComponents(const DataArrayDouble* a, const std::vector<int>& compoIds);
296 DataArrayDouble::setPartOfValues1(const DataArrayDouble* a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true);
297 DataArrayDouble::setPartOfValuesSimple1(double a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp);
298 DataArrayDouble::setPartOfValues2(const DataArrayDouble* a, const int* bgTuples, const int* endTuples, const int* bgComp, const int* endComp, bool strictCompoCompare=true);
299 DataArrayDouble::setPartOfValuesSimple2(double a, const int* bgTuples, const int* endTuples, const int* bgComp, const int* endComp);
300 DataArrayDouble::setPartOfValues3(const DataArrayDouble* a, const int* bgTuples, const int* endTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true);
301 DataArrayDouble::setPartOfValuesSimple3(double a, const int* bgTuples, const int* endTuples, int bgComp, int endComp, int stepComp);
302 DataArrayDouble::getTuple(int tupleId, double* res) const;
303 DataArrayDouble::getIJ(int tupleId, int compoId) const;
304 DataArrayDouble::back() const;
305 DataArrayDouble::getIJSafe(int tupleId, int compoId) const;
306 DataArrayDouble::setIJ(int tupleId, int compoId, double newVal);
307 DataArrayDouble::setIJSilent(int tupleId, int compoId, double newVal);
308 DataArrayDouble::writeOnPlace(int id, double element0, const double* others, int sizeOfOthers);
309 DataArrayDouble::checkNoNullValues() const;
310 DataArrayDouble::getMinMaxPerComponent(double* bounds) const;
311 DataArrayDouble::getMaxValue(int& tupleId) const;
312 DataArrayDouble::getMaxValueInArray() const;
313 DataArrayDouble::getMinValue(int& tupleId) const;
314 DataArrayDouble::getMinValueInArray() const;
315 DataArrayDouble::getMaxValue2(DataArrayInt*& tupleIds) const;
316 DataArrayDouble::getMinValue2(DataArrayInt*& tupleIds) const;
317 DataArrayDouble::getAverageValue() const;
318 DataArrayDouble::norm2() const;
319 DataArrayDouble::normMax() const;
320 DataArrayDouble::accumulate(double* res) const;
321 DataArrayDouble::accumulate(int compId) const;
322 DataArrayDouble::fromPolarToCart() const;
323 DataArrayDouble::fromCylToCart() const;
324 DataArrayDouble::fromSpherToCart() const;
325 DataArrayDouble::doublyContractedProduct() const;
326 DataArrayDouble::determinant() const;
327 DataArrayDouble::eigenValues() const;
328 DataArrayDouble::eigenVectors() const;
329 DataArrayDouble::inverse() const;
330 DataArrayDouble::trace() const;
331 DataArrayDouble::deviator() const;
332 DataArrayDouble::magnitude() const;
333 DataArrayDouble::maxPerTuple() const;
334 DataArrayDouble::sortPerTuple(bool asc);
335 DataArrayDouble::abs();
336 DataArrayDouble::applyLin(double a, double b, int compoId);
337 DataArrayDouble::applyLin(double a, double b);
338 DataArrayDouble::applyInv(double numerator);
339 DataArrayDouble::negate() const;
340 DataArrayDouble::applyFunc(int nbOfComp, const char* func) const;
341 DataArrayDouble::applyFunc(const char* func) const;
342 DataArrayDouble::applyFunc2(int nbOfComp, const char* func) const;
343 DataArrayDouble::applyFunc3(int nbOfComp, const std::vector<std::string>& varsOrder, const char* func) const;
344 DataArrayDouble::getIdsInRange(double vmin, double vmax) const;
345 DataArrayDouble::addEqual(const DataArrayDouble* other);
346 DataArrayDouble::substractEqual(const DataArrayDouble* other);
347 DataArrayDouble::multiplyEqual(const DataArrayDouble* other);
348 DataArrayDouble::divideEqual(const DataArrayDouble* other);
349 DataArrayDouble::updateTime() const;
350 DataArrayDouble::New();
351 DataArrayDouble::Aggregate(const DataArrayDouble* a1, const DataArrayDouble* a2);
352 DataArrayDouble::Aggregate(const std::vector<const DataArrayDouble *>& arr);
353 DataArrayDouble::Meld(const DataArrayDouble* a1, const DataArrayDouble* a2);
354 DataArrayDouble::Meld(const std::vector<const DataArrayDouble *>& arr);
355 DataArrayDouble::Dot(const DataArrayDouble* a1, const DataArrayDouble* a2);
356 DataArrayDouble::CrossProduct(const DataArrayDouble* a1, const DataArrayDouble* a2);
357 DataArrayDouble::Max(const DataArrayDouble* a1, const DataArrayDouble* a2);
358 DataArrayDouble::Min(const DataArrayDouble* a1, const DataArrayDouble* a2);
359 DataArrayDouble::Add(const DataArrayDouble* a1, const DataArrayDouble* a2);
360 DataArrayDouble::Substract(const DataArrayDouble* a1, const DataArrayDouble* a2);
361 DataArrayDouble::Multiply(const DataArrayDouble* a1, const DataArrayDouble* a2);
362 DataArrayDouble::Divide(const DataArrayDouble* a1, const DataArrayDouble* a2);
363 ///@}
364
365 /*! \name   Advanced API   */
366 ///@{
367 DataArrayDouble::checkAllocated() const;
368 DataArrayDouble::setPartOfValuesAdv(const DataArrayDouble* a, const DataArrayInt* tuplesSelec);
369 DataArrayDouble::setContigPartOfSelectedValues(int tupleIdStart, const DataArrayDouble* a, const DataArrayInt* tuplesSelec);
370 DataArrayDouble::setContigPartOfSelectedValues2(int tupleIdStart, const DataArrayDouble* a, int bg, int end2, int step);
371 DataArrayDouble::applyFunc(int nbOfComp, FunctionToEvaluate func) const;
372 ///@} 
373
374 /*! \name Others... */
375 ///@{
376 DataArrayDouble::getNumberOfTuples() const;
377 DataArrayDouble::getNbOfElems() const;
378 DataArrayDouble::getHeapMemorySize() const;
379 DataArrayDouble::reserve(int nbOfElems);
380 DataArrayDouble::pushBackSilent(double val);
381 DataArrayDouble::popBackSilent();
382 DataArrayDouble::pack() const;
383 DataArrayDouble::getNbOfElemAllocated() const;
384 DataArrayDouble::reprZip() const;
385 DataArrayDouble::writeVTK(std::ostream& ofs, int indent, const char* nameInFile) const;
386 DataArrayDouble::reprStream(std::ostream& stream) const;
387 DataArrayDouble::reprZipStream(std::ostream& stream) const;
388 DataArrayDouble::reprWithoutNameStream(std::ostream& stream) const;
389 DataArrayDouble::reprZipWithoutNameStream(std::ostream& stream) const;
390 DataArrayDouble::reprCppStream(const char* varName, std::ostream& stream) const;
391 DataArrayDouble::isEqualIfNotWhy(const DataArrayDouble& other, double prec, std::string& reason) const;
392 DataArrayDouble::duplicateEachTupleNTimes(int nbTimes) const;
393 DataArrayDouble::setPartOfValues4(const DataArrayDouble* a, int bgTuples, int endTuples, int stepTuples, const int* bgComp, const int* endComp, bool strictCompoCompare=true);
394 DataArrayDouble::setPartOfValuesSimple4(double a, int bgTuples, int endTuples, int stepTuples, const int* bgComp, const int* endComp);
395 DataArrayDouble::getPointer();
396 DataArrayDouble::SetArrayIn(DataArrayDouble* newArray, DataArrayDouble* &arrayToSet);
397 DataArrayDouble::iterator();
398 DataArrayDouble::getConstPointer() const;
399 DataArrayDouble::begin() const;
400 DataArrayDouble::end() const;
401 DataArrayDouble::useArray(const double* array, bool ownership, DeallocType type, int nbOfTuple, int nbOfCompo);
402 DataArrayDouble::useExternalArrayWithRWAccess(const double* array, int nbOfTuple, int nbOfCompo);
403 DataArrayDouble::insertAtTheEnd(InputIterator first, InputIterator last);
404 DataArrayDouble::computeBBoxPerTuple(double epsilon=0.0) const;
405 DataArrayDouble::computeTupleIdsNearTuples(const DataArrayDouble* other, double eps, DataArrayInt *& c, DataArrayInt *& cI) const;
406 DataArrayDouble::recenterForMaxPrecision(double eps);
407 DataArrayDouble::distanceToTuple(const double* tupleBg, const double* tupleEnd, int& tupleId) const;
408 DataArrayDouble::buildEuclidianDistanceDenseMatrix() const;
409 DataArrayDouble::buildEuclidianDistanceDenseMatrixWith(const DataArrayDouble* other) const;
410 DataArrayDouble::applyFuncFast32(const char* func);
411 DataArrayDouble::applyFuncFast64(const char* func);
412 DataArrayDouble::getTinySerializationIntInformation(std::vector<int>& tinyInfo) const;
413 DataArrayDouble::getTinySerializationStrInformation(std::vector<std::string>& tinyInfo) const;
414 DataArrayDouble::resizeForUnserialization(const std::vector<int>& tinyInfoI);
415 DataArrayDouble::finishUnserialization(const std::vector<int>& tinyInfoI, const std::vector<std::string>& tinyInfoS);
416
417 DataArrayDouble::findCommonTuplesAlg(const double* bbox, int nbNodes, int limitNodeId, double prec, DataArrayInt* c, DataArrayInt* cI) const;
418
419 DataArrayDouble::FindTupleIdsNearTuplesAlg(const BBTree<SPACEDIM,int>& myTree, const double* pos, int nbOfTuples, double eps, DataArrayInt* c, DataArrayInt* cI);
420 DataArrayDouble::DataArrayDouble();
421 MemArray<double> DataArrayDouble::_mem;
422 ///@} 
423
424 //================================================================================
425 /////////////////////// DataArrayInt GROUPPING ///////////////////////////////////
426 //================================================================================
427
428 /*! \name Advanced API  */
429 ///@{
430 DataArrayInt::checkAllocated() const;
431 DataArrayInt::getHashCode() const;
432 DataArrayInt::buildPermutationArr(const DataArrayInt& other) const;
433 DataArrayInt::transformWithIndArr(const int* indArrBg, const int* indArrEnd);
434 DataArrayInt::transformWithIndArrR(const int* indArrBg, const int* indArrEnd) const;
435 DataArrayInt::splitByValueRange(const int* arrBg, const int* arrEnd,DataArrayInt *& castArr, DataArrayInt *& rankInsideCast, DataArrayInt *& castsPresent) const;
436 DataArrayInt::setPartOfValuesAdv(const DataArrayInt* a, const DataArrayInt* tuplesSelec);
437 DataArrayInt::setContigPartOfSelectedValues(int tupleIdStart, const DataArrayInt*a, const DataArrayInt* tuplesSelec);
438 DataArrayInt::setContigPartOfSelectedValues2(int tupleIdStart, const DataArrayInt* a, int bg, int end2, int step);
439 DataArrayInt::SetArrayIn(DataArrayInt* newArray, DataArrayInt* &arrayToSet);
440 ///@} 
441
442 /*! \name Basic API   */
443 ///@{
444 DataArrayInt::isAllocated() const;
445 DataArrayInt::setInfoAndChangeNbOfCompo(const std::vector<std::string>& info);
446 DataArrayInt::intValue() const;
447 DataArrayInt::empty() const;
448 DataArrayInt::deepCpy() const;
449 DataArrayInt::performCpy(bool deepCpy) const;
450 DataArrayInt::cpyFrom(const DataArrayInt& other);
451 DataArrayInt::alloc(int nbOfTuple, int nbOfCompo);
452 DataArrayInt::allocIfNecessary(int nbOfTuple, int nbOfCompo);
453 DataArrayInt::isEqual(const DataArrayInt& other) const;
454 DataArrayInt::isEqualWithoutConsideringStr(const DataArrayInt& other) const;
455 DataArrayInt::isEqualWithoutConsideringStrAndOrder(const DataArrayInt& other) const;
456 DataArrayInt::sort(bool asc=true);
457 DataArrayInt::reverse();
458 DataArrayInt::fillWithZero();
459 DataArrayInt::fillWithValue(int val);
460 DataArrayInt::iota(int init=0);
461 DataArrayInt::repr() const;
462 DataArrayInt::invertArrayO2N2N2O(int newNbOfElem) const;
463 DataArrayInt::invertArrayN2O2O2N(int oldNbOfElem) const;
464 DataArrayInt::reAlloc(int nbOfTuples);
465 DataArrayInt::convertToDblArr() const;
466 DataArrayInt::fromNoInterlace() const;
467 DataArrayInt::toNoInterlace() const;
468 DataArrayInt::renumberInPlace(const int* old2New);
469 DataArrayInt::renumberInPlaceR(const int* new2Old);
470 DataArrayInt::renumber(const int* old2New) const;
471 DataArrayInt::renumberR(const int* new2Old) const;
472 DataArrayInt::renumberAndReduce(const int* old2NewBg, int newNbOfTuple) const;
473 DataArrayInt::selectByTupleId(const int* new2OldBg, const int* new2OldEnd) const;
474 DataArrayInt::selectByTupleIdSafe(const int* new2OldBg, const int* new2OldEnd) const;
475 DataArrayInt::selectByTupleId2(int bg, int end, int step) const;
476 DataArrayInt::selectByTupleRanges(const std::vector<std::pair<int,int> >& ranges) const;
477 DataArrayInt::checkAndPreparePermutation() const;
478 DataArrayInt::changeSurjectiveFormat(int targetNb, DataArrayInt *&arr, DataArrayInt *&arrI) const;
479 DataArrayInt::buildPermArrPerLevel() const;
480 DataArrayInt::isIdentity() const;
481 DataArrayInt::isUniform(int val) const;
482 DataArrayInt::substr(int tupleIdBg, int tupleIdEnd=-1) const;
483 DataArrayInt::rearrange(int newNbOfCompo);
484 DataArrayInt::transpose();
485 DataArrayInt::changeNbOfComponents(int newNbOfComp, int dftValue) const;
486 DataArrayInt::keepSelectedComponents(const std::vector<int>& compoIds) const;
487 DataArrayInt::meldWith(const DataArrayInt* other);
488 DataArrayInt::setSelectedComponents(const DataArrayInt* a, const std::vector<int>& compoIds);
489 DataArrayInt::setPartOfValues1(const DataArrayInt* a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true);
490 DataArrayInt::setPartOfValuesSimple1(int a, int bgTuples, int endTuples, int stepTuples, int bgComp, int endComp, int stepComp);
491 DataArrayInt::setPartOfValues2(const DataArrayInt* a, const int* bgTuples, const int* endTuples, const int* bgComp, const int* endComp, bool strictCompoCompare=true);
492 DataArrayInt::setPartOfValuesSimple2(int a, const int* bgTuples, const int* endTuples, const int* bgComp, const int* endComp);
493 DataArrayInt::setPartOfValues3(const DataArrayInt* a, const int* bgTuples, const int* endTuples, int bgComp, int endComp, int stepComp, bool strictCompoCompare=true);
494 DataArrayInt::setPartOfValuesSimple3(int a, const int* bgTuples, const int* endTuples, int bgComp, int endComp, int stepComp);
495 DataArrayInt::getTuple(int tupleId, int* res) const;
496 DataArrayInt::getIJ(int tupleId, int compoId) const;
497 DataArrayInt::getIJSafe(int tupleId, int compoId) const;
498 DataArrayInt::back() const;
499 DataArrayInt::setIJ(int tupleId, int compoId, int newVal);
500 DataArrayInt::setIJSilent(int tupleId, int compoId, int newVal);
501 DataArrayInt::getPointer();
502 DataArrayInt::getConstPointer() const;
503 DataArrayInt::getIdsEqual(int val) const;
504 DataArrayInt::getIdsNotEqual(int val) const;
505 DataArrayInt::getIdsEqualList(const int* valsBg, const int* valsEnd) const;
506 DataArrayInt::getIdsNotEqualList(const int* valsBg, const int* valsEnd) const;
507 DataArrayInt::changeValue(int oldValue, int newValue);
508 DataArrayInt::presenceOfValue(int value) const;
509 DataArrayInt::presenceOfValue(const std::vector<int>& vals) const;
510 DataArrayInt::getMaxValue(int& tupleId) const;
511 DataArrayInt::getMaxValueInArray() const;
512 DataArrayInt::getMinValue(int& tupleId) const;
513 DataArrayInt::getMinValueInArray() const;
514 DataArrayInt::abs();
515 DataArrayInt::applyLin(int a, int b, int compoId);
516 DataArrayInt::applyLin(int a, int b);
517 DataArrayInt::applyInv(int numerator);
518 DataArrayInt::negate() const;
519 DataArrayInt::applyDivideBy(int val);
520 DataArrayInt::applyModulus(int val);
521 DataArrayInt::applyRModulus(int val);
522 DataArrayInt::buildComplement(int nbOfElement) const;
523 DataArrayInt::buildSubstraction(const DataArrayInt* other) const;
524 DataArrayInt::buildUnion(const DataArrayInt* other) const;
525 DataArrayInt::buildIntersection(const DataArrayInt* other) const;
526 DataArrayInt::deltaShiftIndex() const;
527 DataArrayInt::computeOffsets();
528 DataArrayInt::computeOffsets2();
529 DataArrayInt::buildExplicitArrByRanges(const DataArrayInt* offsets) const;
530 DataArrayInt::useArray(const int* array, bool ownership, DeallocType type, int nbOfTuple, int nbOfCompo);
531 DataArrayInt::writeOnPlace(int id, int element0, const int* others, int sizeOfOthers);
532 DataArrayInt::addEqual(const DataArrayInt* other);
533 DataArrayInt::substractEqual(const DataArrayInt* other);
534 DataArrayInt::multiplyEqual(const DataArrayInt* other);
535 DataArrayInt::divideEqual(const DataArrayInt* other);
536 DataArrayInt::modulusEqual(const DataArrayInt* other);
537 DataArrayInt::updateTime() const;
538 DataArrayInt::New();
539 DataArrayInt::BuildOld2NewArrayFromSurjectiveFormat2(int nbOfOldTuples, const int* arr, const int* arrIBg, const int* arrIEnd, int &newNbOfTuples);
540 DataArrayInt::Aggregate(const DataArrayInt* a1, const DataArrayInt* a2, int offsetA2);
541 DataArrayInt::Aggregate(const std::vector<const DataArrayInt *>& arr);
542 DataArrayInt::Meld(const DataArrayInt* a1, const DataArrayInt* a2);
543 DataArrayInt::Meld(const std::vector<const DataArrayInt *>& arr);
544 DataArrayInt::MakePartition(const std::vector<const DataArrayInt *>& groups, int newNb, std::vector< std::vector<int> >& fidsOfGroups);
545 DataArrayInt::BuildUnion(const std::vector<const DataArrayInt *>& arr);
546 DataArrayInt::BuildIntersection(const std::vector<const DataArrayInt *>& arr);
547 DataArrayInt::Add(const DataArrayInt* a1, const DataArrayInt* a2);
548 DataArrayInt::Substract(const DataArrayInt* a1, const DataArrayInt* a2);
549 DataArrayInt::Multiply(const DataArrayInt* a1, const DataArrayInt* a2);
550 DataArrayInt::Divide(const DataArrayInt* a1, const DataArrayInt* a2);
551 DataArrayInt::Modulus(const DataArrayInt* a1, const DataArrayInt* a2);
552 DataArrayInt::CheckAndPreparePermutation(const int* start, const int* end);
553 DataArrayInt::Range(int begin, int end, int step);
554 ///@} 
555
556 /*! \name Others... */
557 ///@{
558 DataArrayInt::getNumberOfTuples() const;
559 DataArrayInt::getNbOfElems() const;
560 DataArrayInt::getHeapMemorySize() const;
561 DataArrayInt::reserve(int nbOfElems);
562 DataArrayInt::pushBackSilent(int val);
563 DataArrayInt::popBackSilent();
564 DataArrayInt::pack() const;
565 DataArrayInt::getNbOfElemAllocated() const;
566 DataArrayInt::isEqualIfNotWhy(const DataArrayInt& other, std::string& reason) const;
567 DataArrayInt::checkMonotonic(bool increasing) const;
568 DataArrayInt::isMonotonic(bool increasing) const;
569 DataArrayInt::checkStrictlyMonotonic(bool increasing) const;
570 DataArrayInt::isStrictlyMonotonic(bool increasing) const;
571 DataArrayInt::reprZip() const;
572 DataArrayInt::writeVTK(std::ostream& ofs, int indent, const char* type, const char* nameInFile) const;
573 DataArrayInt::reprStream(std::ostream& stream) const;
574 DataArrayInt::reprZipStream(std::ostream& stream) const;
575 DataArrayInt::reprWithoutNameStream(std::ostream& stream) const;
576 DataArrayInt::reprZipWithoutNameStream(std::ostream& stream) const;
577 DataArrayInt::reprCppStream(const char* varName, std::ostream& stream) const;
578 DataArrayInt::invertArrayO2N2N2OBis(int newNbOfElem) const;
579 DataArrayInt::setPartOfValues4(const DataArrayInt* a, int bgTuples, int endTuples, int stepTuples, const int* bgComp, const int* endComp, bool strictCompoCompare=true);
580 DataArrayInt::setPartOfValuesSimple4(int a, int bgTuples, int endTuples, int stepTuples, const int* bgComp, const int* endComp);
581 DataArrayInt::iterator();
582 DataArrayInt::begin() const;
583 DataArrayInt::end() const;
584 DataArrayInt::locateTuple(const std::vector<int>& tupl) const;
585 DataArrayInt::locateValue(int value) const;
586 DataArrayInt::locateValue(const std::vector<int>& vals) const;
587 DataArrayInt::search(const std::vector<int>& vals) const;
588 DataArrayInt::presenceOfTuple(const std::vector<int>& tupl) const;
589 DataArrayInt::accumulate(int* res) const;
590 DataArrayInt::accumulate(int compId) const;
591 DataArrayInt::getIdsInRange(int vmin, int vmax) const;
592 DataArrayInt::buildSubstractionOptimized(const DataArrayInt* other) const;
593 DataArrayInt::buildUnique() const;
594 DataArrayInt::findRangeIdForEachTuple(const DataArrayInt* ranges) const;
595 DataArrayInt::findIdInRangeForEachTuple(const DataArrayInt* ranges) const;
596 DataArrayInt::duplicateEachTupleNTimes(int nbTimes) const;
597 DataArrayInt::getDifferentValues() const;
598 > DataArrayInt::partitionByDifferentValues(std::vector<int>& differentIds) const;
599 DataArrayInt::useExternalArrayWithRWAccess(const int* array, int nbOfTuple, int nbOfCompo);
600 tor>
601 DataArrayInt::insertAtTheEnd(InputIterator first, InputIterator last);
602 DataArrayInt::getTinySerializationIntInformation(std::vector<int>& tinyInfo) const;
603 DataArrayInt::getTinySerializationStrInformation(std::vector<std::string>& tinyInfo) const;
604 DataArrayInt::resizeForUnserialization(const std::vector<int>& tinyInfoI);
605 DataArrayInt::finishUnserialization(const std::vector<int>& tinyInfoI, const std::vector<std::string>& tinyInfoS);
606 DataArrayInt::DataArrayInt();
607 MemArray<int> DataArrayInt::_mem;
608 ///@}
609
610 }