TableOfReal_def.h 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667
  1. /* TableOfReal_def.h
  2. *
  3. * Copyright (C) 1992-2005,2007,2011,2012,2015-2018 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. #define ooSTRUCT TableOfReal
  19. oo_DEFINE_CLASS (TableOfReal, Daata)
  20. oo_INTEGER (numberOfRows)
  21. oo_INTEGER (numberOfColumns)
  22. oo_STRING_VECTOR (rowLabels, numberOfRows)
  23. oo_STRING_VECTOR (columnLabels, numberOfColumns)
  24. oo_MAT (data, numberOfRows, numberOfColumns)
  25. #if oo_DECLARING
  26. void v_info ()
  27. override;
  28. bool v_hasGetNrow ()
  29. override { return true; }
  30. double v_getNrow ()
  31. override { return numberOfRows; }
  32. bool v_hasGetNcol ()
  33. override { return true; }
  34. double v_getNcol ()
  35. override { return numberOfColumns; }
  36. bool v_hasGetRowStr ()
  37. override { return true; }
  38. conststring32 v_getRowStr (integer irow)
  39. override;
  40. bool v_hasGetColStr ()
  41. override { return true; }
  42. conststring32 v_getColStr (integer icol)
  43. override;
  44. bool v_hasGetMatrix ()
  45. override { return true; }
  46. double v_getMatrix (integer irow, integer icol)
  47. override;
  48. bool v_hasGetRowIndex ()
  49. override { return true; }
  50. double v_getRowIndex (conststring32 rowLabel)
  51. override;
  52. bool v_hasGetColIndex ()
  53. override { return true; }
  54. double v_getColIndex (conststring32 columnLabel)
  55. override;
  56. #endif
  57. oo_END_CLASS (TableOfReal)
  58. #undef ooSTRUCT
  59. /* End of file TableOfReal_def.h */