/tags/rel-0-4-2/FreeSpeech/FuzzyEngine/include/FuzzyOperators.h

# · C++ Header · 78 lines · 45 code · 15 blank · 18 comment · 0 complexity · 6cc6d15553a461a9a52df2e6884d48bb MD5 · raw file

  1. // Copyright (C) 2000 Dominic Letourneau (doumdi@yahoo.com)
  2. //
  3. // This program is free software; you can redistribute it and/or modify
  4. // it under the terms of the GNU General Public License as published by
  5. // the Free Software Foundation; either version 2, or (at your option)
  6. // any later version.
  7. //
  8. // This program is distributed in the hope that it will be useful, but
  9. // WITHOUT ANY WARRANTY; without even the implied warranty of
  10. // MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
  11. // General Public License for more details.
  12. //
  13. // You should have received a copy of the GNU General Public License
  14. // along with this file. If not, write to the Free Software Foundation,
  15. // 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
  16. // FuzzySet.cc: implementation of the FuzzySet class.
  17. //
  18. //////////////////////////////////////////////////////////////////////
  19. #include "DoubleDispatch.h"
  20. #include "FuzzyRule.h"
  21. #include "FuzzySet.h"
  22. #include "FuzzyFunction.h"
  23. #include "Vector.h"
  24. DEFINE_DOUBLE_VTABLE(concatVtable);
  25. inline ObjectRef concatenate(ObjectRef x, ObjectRef y) {
  26. return concatVtable::perform(x,y);
  27. }
  28. inline istream& operator>> (istream &in, FuzzyRule *rule) {
  29. return in;
  30. }
  31. inline ostream& operator<< (ostream &out, FuzzyRule *rule) {
  32. return out;
  33. }
  34. inline istream& operator>> (istream &in, FuzzyRule &rule) {
  35. return in;
  36. }
  37. inline ostream& operator<< (ostream &out, FuzzyRule &rule) {
  38. return out;
  39. }
  40. inline istream& operator>> (istream &in, FuzzyFunction *fct) {
  41. return in;
  42. }
  43. inline ostream& operator<< (ostream &out, FuzzyFunction *fct) {
  44. return out;
  45. }
  46. inline istream& operator>> (istream &in, FuzzyFunction &fct) {
  47. return in;
  48. }
  49. inline ostream& operator<< (ostream &out, FuzzyFunction &fct) {
  50. return out;
  51. }
  52. inline istream& operator>> (istream &in, FuzzySet *set) {
  53. return in;
  54. }
  55. inline ostream& operator<< (ostream &out, FuzzySet *set) {
  56. return out;
  57. }
  58. inline istream& operator>> (istream &in, FuzzySet &set) {
  59. return in;
  60. }
  61. inline ostream& operator<< (ostream &out, FuzzySet &set) {
  62. return out;
  63. }