word.h 1.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596
  1. /* INFO THIS
  2. * file: word.h */
  3. /* USE THIS
  4. * L__LIB_WORDS "words.h"
  5. * L__LIB_WORD "word.h" */
  6. # ifndef L_LIB_WORD
  7. # define L_LIB_WORD
  8. /* */
  9. # include <string>
  10. /* INCLUDE
  11. * std::string */
  12. /* */
  13. typedef struct Word
  14. {
  15. /* value: */
  16. public:
  17. /* value of Word */
  18. std::string value;
  19. /* points: */
  20. public:
  21. /* point to previous Word */
  22. struct Word *previous;
  23. /* point to next Word */
  24. struct Word *next;
  25. /* Word: */
  26. public:
  27. /* USE
  28. * L__LIB_WORD__CREATE THIS
  29. * L__LIB_WORD__DELETE THIS */
  30. /* INFO word__clear
  31. * do: Clear Word */
  32. void
  33. clear ();
  34. Word ();
  35. /* INFO
  36. * do: REMOVE Word */
  37. ~Word ();
  38. /* INFO
  39. * do: COPY Word */
  40. Word (Word &word);
  41. /* functions: */
  42. public:
  43. /* INFO
  44. * do: PRINT Word */
  45. void
  46. print ();
  47. }
  48. /* initials */
  49. Word;
  50. /* может сжать все функции каждого класса в файл класса ???? */
  51. /* INFO
  52. * do: COPY Word */
  53. void
  54. word__copy (Word *self, Word *word);
  55. // /* USE
  56. // * L__LIB_WORD__COPY "word__copy.h" */
  57. // /* INFO word__clear
  58. // * do: Clear Word */
  59. // void
  60. // word__clear (Word *self);
  61. /* INFO word__create
  62. * do: CREATE Word */
  63. Word*
  64. word__create ();
  65. /* INFO
  66. * do: REMOVE Word */
  67. void
  68. word__delete (Word *self);
  69. // /* INFO
  70. // * do: CHECK Word */
  71. // void
  72. // int__check (int *self);
  73. # endif /* L_LIB_WORD */