Debian Codegraph @

dwsys/PermutationInversionCounter_def.h

raw symbols SCIP
1 /* PermutationInversionCounter_def.h
2 *
3 * Copyright (C) 2024-2025 David Weenink
4 *
5 * This code is free software; you can redistribute it and/or modify
6 * it under the terms of the GNU General Public License as published by
7 * the Free Software Foundation; either version 2 of the License, or (at
8 * your option) any later version.
9 *
10 * This code is distributed in the hope that it will be useful, but
11 * WITHOUT ANY WARRANTY; without even the implied warranty of
12 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
13 * General Public License for more details.
14 *
15 * You should have received a copy of the GNU General Public License
16 * along with this work. If not, see <http://www.gnu.org/licenses/>.
17 */
18
19 #define ooSTRUCTcxx . . $ `dwsys/PermutationInversionCounter_def.h:19:9`! PermutationInversionCounter
20 oo_DEFINE_CLASScxx . . $ `sys/oo.h:176:9`! (PermutationInversionCounter, Daata)
21
22 oo_UNSAFE_BORROWED_TRANSIENT_CONST_OBJECT_REFERENCEcxx . . $ `sys/oo.h:154:9`! (Permutation, pdata)
23 oo_UNSAFE_BORROWED_TRANSIENT_CONST_OBJECT_REFERENCEcxx . . $ `sys/oo.h:154:9`! (Permutation, potherInverse)
24 oo_OBJECTcxx . . $ `sys/oo.h:149:9`! (Permutation, 0, psortingOrder)
25 oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfElements)
26 oo_INTVECcxx . . $ `sys/oo.h:76:9`! (workspace, numberOfElements)
27 oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (totalNumberOfInversions)
28 oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (totalNumberOfInversionsInInterval)
29 oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfInversionsRegistered)
30 oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (numberOfInversionsToRegister)
31 oo_INTEGERcxx . . $ `sys/oo.h:45:9`! (posInSortedSelectedInversionIndices)
32
33 #if oo_DECLARINGcxx . . $ `sys/oo.h:230:9`!
34
35 INTVECcxx . . $ INTVEC# inversionscxx . . $ structPermutationInversionCounter#inversions.; // the inversions as pairs of (ilow, ihigh) to be output, link to storage supplied by caller
36 INTVECcxx . . $ INTVEC# otherInversecxx . . $ structPermutationInversionCounter#otherInverse.; // link to potherInverse -> p.get() supplied by user
37
38 constINTVECcxx . . $ constINTVEC# sortedSelectedInversionIndicescxx . . $ structPermutationInversionCounter#sortedSelectedInversionIndices.; // link to storage supplied by caller
39
40 void newDatacxx . . $ structPermutationInversionCounter#newData(662ac6e54cb0661). (constPermutation p);
41
42 void resetcxx . . $ structPermutationInversionCounter#reset(49f6e7a06ebc5aa8). ();
43
44 integercxx . . $ integer# mergeInversionscxx . . $ structPermutationInversionCounter#mergeInversions(374fe82c592a17bc). (integercxx . . $ integer# p, integercxx . . $ integer# q, integercxx . . $ integer# r);
45
46 integercxx . . $ integer# mergeSortcxx . . $ structPermutationInversionCounter#mergeSort(d0a0e4c270da0eca). (integercxx . . $ integer# p, integercxx . . $ integer# r);
47
48 integercxx . . $ integer# getNumberOfInversionscxx . . $ structPermutationInversionCounter#getNumberOfInversions(b15b281253c61fc2). (constPermutation p);
49
50 integercxx . . $ integer# getSelectedInversionsNotInOthercxx . . $ structPermutationInversionCounter#getSelectedInversionsNotInOther(21e4a7ccbd05eaf4). (
51 constPermutation p, constPermutation otherInverse, constINTVECcxx . . $ constINTVEC# const& sortedSelectedInversionIndices, INTVECcxx . . $ INTVEC# const& out_inversions
52 );
53
54 integercxx . . $ integer# getSelectedInversionscxx . . $ structPermutationInversionCounter#getSelectedInversions(2382d30220f4b6c8). (
55 constPermutation p, constINTVECcxx . . $ constINTVEC# const& sortedSelectedInversionIndices, INTVECcxx . . $ INTVEC# const& out_inversions
56 );
57
58 integercxx . . $ integer# getInversionscxx . . $ structPermutationInversionCounter#getInversions(ca340262a6409bc0). (constPermutation p, INTVECcxx . . $ INTVEC# const& out_inversions);
59
60 #endif
61
62 #if oo_COPYINGcxx . . $ `sys/oo.h:232:9`!
63 thy inversions = inversions;
64 thy otherInverse = otherInverse;
65 thy sortedSelectedInversionIndices = sortedSelectedInversionIndices;
66 #endif
67
68 oo_END_CLASScxx . . $ `sys/oo.h:186:9`! (PermutationInversionCounter)
69 #undef ooSTRUCTcxx . . $ `dwsys/PermutationInversionCounter_def.h:19:9`!