| 1 | /* Function_def.h |
| 2 | * |
| 3 | * Copyright (C) 1992-2011,2015,2017 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 | |
| 20 | #define ooSTRUCTcxx . . $ `fon/Function_def.h:20:9`! Function |
| 21 | oo_DEFINE_CLASScxx . . $ `sys/oo.h:176:9`! (Function, Daata) |
| 22 | |
| 23 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (xmin) |
| 24 | oo_DOUBLEcxx . . $ `sys/oo.h:58:9`! (xmax) |
| 25 | |
| 26 | #if oo_READINGcxx . . $ `sys/oo.h:235:9`! |
| 27 | if (xmin > xmax) |
| 28 | Melder_throw (U"Wrong xmin ", xmin, U" and xmax ", xmax, U"."); |
| 29 | #endif |
| 30 | |
| 31 | #if oo_DECLARINGcxx . . $ `sys/oo.h:230:9`! |
| 32 | void v1_infocxx . . $ structFunction#v1_info(49f6e7a06ebc5aa8). () |
| 33 | override; |
| 34 | bool v_hasGetXmincxx . . $ structFunction#v_hasGetXmin(50ce9a9e25b4a850). () const |
| 35 | override { return true; } |
| 36 | double v_getXmincxx . . $ structFunction#v_getXmin(21b6c25e127938e2). () const |
| 37 | override { return xmincxx . . $ structFunction#xmin.; } |
| 38 | bool v_hasGetXmaxcxx . . $ structFunction#v_hasGetXmax(50ce9a9e25b4a850). () const |
| 39 | override { return true; } |
| 40 | double v_getXmaxcxx . . $ structFunction#v_getXmax(21b6c25e127938e2). () const |
| 41 | override { return xmaxcxx . . $ structFunction#xmax.; } |
| 42 | |
| 43 | virtual int v_domainQuantitycxx . . $ structFunction#v_domainQuantity(455f465bc33b4cdf). () const { return 0; } |
| 44 | virtual int v_getMinimumUnitcxx . . $ structFunction#v_getMinimumUnit(54963ccf8c7a5971). (integercxx . . $ integer# /* level */) const { return 0; } |
| 45 | virtual int v_getMaximumUnitcxx . . $ structFunction#v_getMaximumUnit(54963ccf8c7a5971). (integercxx . . $ integer# /* level */) const { return 0; } |
| 46 | virtual conststring32cxx . . $ conststring32# v_getUnitTextcxx . . $ structFunction#v_getUnitText(4575e0692fb152c1). (integercxx . . $ integer# /* level */, int /* unit */, uint32cxx . . $ uint32# /* flags */) const |
| 47 | { return U""; } |
| 48 | virtual bool v_isUnitLogarithmiccxx . . $ structFunction#v_isUnitLogarithmic(ffba610e9ec86edd). (integercxx . . $ integer# /* level */, int /* unit */) const |
| 49 | { return false; } |
| 50 | virtual double v_convertStandardToSpecialUnitcxx . . $ structFunction#v_convertStandardToSpecialUnit(d783654ce2b2ffd0). (double value, integercxx . . $ integer# /* level */, int /* unit */) const |
| 51 | { return value; } |
| 52 | virtual double v_convertSpecialToStandardUnitcxx . . $ structFunction#v_convertSpecialToStandardUnit(d783654ce2b2ffd0). (double value, integercxx . . $ integer# /* level */, int /* unit */) const |
| 53 | { return value; } |
| 54 | virtual void v_shiftXcxx . . $ structFunction#v_shiftX(bc12c9ec15586e6a). (double xfrom, double xto); |
| 55 | virtual void v_scaleXcxx . . $ structFunction#v_scaleX(52a61fa14d44b641). (double xminfrom, double xmaxfrom, double xminto, double xmaxto); |
| 56 | #endif |
| 57 | |
| 58 | oo_END_CLASScxx . . $ `sys/oo.h:186:9`! (Function) |
| 59 | #undef ooSTRUCTcxx . . $ `fon/Function_def.h:20:9`! |
| 60 | |
| 61 | |
| 62 | /* End of file Function_def.h */ |