| 1 | /* Delta.cpp |
| 2 | * |
| 3 | * Copyright (C) 1992-2005,2011,2012,2014-2017,2019 Paul Boersma |
| 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. |
| 13 | * See the GNU 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 | #include "Delta.h"cxx . . $ `<file>/artsynth/Delta.h`/ |
| 20 | |
| 21 | Thing_implementcxx . . $ `sys/Thing.h:65:9`! (Delta, Thing, 0); |
| 22 | |
| 23 | void Delta_initcxx . . $ Delta_init(dd9d2f7f47697cd2). (Deltacxx . . $ Delta# me, integercxx . . $ integer# numberOfTubes) { |
| 24 | Melder_assertcxx . . $ `melder/melder_assert.h:39:10`! (numberOfTubes >= 1); |
| 25 | mycxx . . $ `melder/melder.h:44:9`! numberOfTubescxx . . $ structDelta#numberOfTubes. = numberOfTubes; |
| 26 | mycxx . . $ `melder/melder.h:44:9`! tubescxx . . $ structDelta#tubes. =cxx . . $ autovector#`operator=`(f4f0443dbfdd1e40). newvectorzerocxx . . $ newvectorzero(d6d5973469733409). <structDelta_Tubecxx . . $ structDelta_Tube#> (numberOfTubes); |
| 27 | for (int itube = 1; itube <= numberOfTubes; itube ++) { |
| 28 | Delta_Tubecxx . . $ Delta_Tube# t = & mycxx . . $ `melder/melder.h:44:9`! tubescxx . . $ structDelta#tubes. [cxx . . $ autovector#`operator[]`(8a4599b8835d1ce1).itube]; |
| 29 | t -> parallelcxx . . $ structDelta_Tube#parallel. = 1; |
| 30 | } |
| 31 | } |
| 32 | |
| 33 | autoDeltacxx . . $ autoDelta# Delta_createcxx . . $ Delta_create(42b4abae2ec5400). (integercxx . . $ integer# numberOfTubes) { |
| 34 | autoDeltacxx . . $ autoDelta# me = Thing_newcxx . . $ `sys/Thing.h:514:9`! (Delta); |
| 35 | Delta_initcxx . . $ Delta_init(dd9d2f7f47697cd2). (me.getcxx . . $ autoSomeThing#get(34d6acfd341ba7ab).(), numberOfTubes); |
| 36 | return mecxx . . $ autoSomeThing#autoSomeThing(b79141a71f7bc86f).; |
| 37 | } |
| 38 | |
| 39 | /* End of file Delta.cpp */ |