Debian Codegraph @

fon/Function_def.h

raw symbols SCIP
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 ooSTRUCT Function
21 oo_DEFINE_CLASS (Function, Daata)
22
23 oo_DOUBLE (xmin)
24 oo_DOUBLE (xmax)
25
26 #if oo_READING
27 if (xmin > xmax)
28 Melder_throw (U"Wrong xmin ", xmin, U" and xmax ", xmax, U".");
29 #endif
30
31 #if oo_DECLARING
32 void v1_info ()
33 override;
34 bool v_hasGetXmin () const
35 override { return true; }
36 double v_getXmin () const
37 override { return xmin; }
38 bool v_hasGetXmax () const
39 override { return true; }
40 double v_getXmax () const
41 override { return xmax; }
42
43 virtual int v_domainQuantity () const { return 0; }
44 virtual int v_getMinimumUnit (integer /* level */) const { return 0; }
45 virtual int v_getMaximumUnit (integer /* level */) const { return 0; }
46 virtual conststring32 v_getUnitText (integer /* level */, int /* unit */, uint32 /* flags */) const
47 { return U""; }
48 virtual bool v_isUnitLogarithmic (integer /* level */, int /* unit */) const
49 { return false; }
50 virtual double v_convertStandardToSpecialUnit (double value, integer /* level */, int /* unit */) const
51 { return value; }
52 virtual double v_convertSpecialToStandardUnit (double value, integer /* level */, int /* unit */) const
53 { return value; }
54 virtual void v_shiftX (double xfrom, double xto);
55 virtual void v_scaleX (double xminfrom, double xmaxfrom, double xminto, double xmaxto);
56 #endif
57
58 oo_END_CLASS (Function)
59 #undef ooSTRUCT
60
61
62 /* End of file Function_def.h */