home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / OTHERUTI / TCPP10-8.ZIP / CLASSINC.ZIP / CLSTYPES.H < prev    next >
C/C++ Source or Header  |  1990-09-26  |  6KB  |  207 lines

  1. #ifndef __CLSTYPES_H
  2. #define __CLSTYPES_H
  3.  
  4. //
  5. // This file contains proprietary information of Borland International.
  6. // Copying or reproduction without prior written approval is prohibited.
  7. //
  8. // Copyright (c) 1990
  9. // Borland International
  10. // 1800 Green Hills Road
  11. // Scotts Valley, CA 95066
  12. // (408) 438-8400
  13. //
  14.  
  15. // Contents ----------------------------------------------------------------
  16. //
  17. //      classType
  18. //      hashValueType
  19. //      sizeType
  20. //      iterFuncType
  21. //      condFuncType
  22. //      countType
  23. //
  24. //      objectClass
  25. //      errorClass
  26. //      sortableClass
  27. //      stringClass
  28. //      listElementClass
  29. //      doubleListElementClass
  30. //      containerClass
  31. //      stackClass
  32. //      queueClass
  33. //      dequeClass
  34. //      collectionClass
  35. //      hashTableClass
  36. //      bagClass
  37. //      setClass
  38. //      dictionaryClass
  39. //      associationClass
  40. //      arrayClass
  41. //      sortedArrayClass
  42. //      listClass
  43. //      doubleListClass
  44. //        timeClass
  45. //        dateClass
  46. //        longClass
  47. //
  48. //      __lastLibClass
  49. //      __firstUserClass
  50. //
  51. //      directoryClass
  52. //
  53. //      __lastClass
  54. //
  55. // Description
  56. //
  57. //      Defines types for the class library.
  58. //
  59. // End ---------------------------------------------------------------------
  60.  
  61. // Interface Dependencies ---------------------------------------------------
  62.  
  63. #ifndef __LIMITS_H
  64. #include <limits.h>
  65. #endif
  66.  
  67. // End Interface Dependencies ------------------------------------------------
  68.  
  69.  
  70. // Section -----------------------------------------------------------------
  71. //                                  types                                 //
  72. // End ---------------------------------------------------------------------
  73.  
  74.  
  75. // Type //
  76.  
  77. typedef unsigned int classType;
  78.  
  79. // Description -------------------------------------------------------------
  80. //
  81. //      Defines the type of a class.
  82. //
  83. // End ---------------------------------------------------------------------
  84.  
  85.  
  86. // Type //
  87.  
  88. typedef unsigned int    hashValueType;
  89.  
  90. // Description -------------------------------------------------------------
  91. //
  92. //      Defines a returned hash value.
  93. //
  94. // End ---------------------------------------------------------------------
  95.  
  96.  
  97. // Type //
  98.  
  99. typedef unsigned int    sizeType;
  100.  
  101. // Description -------------------------------------------------------------
  102. //
  103. //      Defines the size of a storage area.
  104. //
  105. // End ---------------------------------------------------------------------
  106.  
  107.  
  108. // Type //
  109.  
  110. class Object;
  111. typedef void ( *iterFuncType )( class Object&, void * );
  112.  
  113. // Description -------------------------------------------------------------
  114. //
  115. //      Defines a pointer to an iteration function.  The iteration function
  116. //      takes an Object reference and a point to a list of parameters to
  117. //      the function.  The parameter list pointer may be NULL.
  118. //
  119. // End ---------------------------------------------------------------------
  120.  
  121.  
  122. // Type //
  123.  
  124. typedef int ( *condFuncType )( const class Object&, void * );
  125.  
  126. // Description -------------------------------------------------------------
  127. //
  128. //      Defines a pointer to a function which implements a conditional test
  129. //      and returns 0 if the condition was met, non-zero otherwise.  The
  130. //      non-zero values are defined by the individual function.
  131. //
  132. // End ---------------------------------------------------------------------
  133.  
  134.  
  135. // End Section types //
  136.  
  137.  
  138. // Type //
  139.  
  140. typedef int    countType;
  141.  
  142. // Description -------------------------------------------------------------
  143. //
  144. //      Defines a container for counting things in the class library.
  145. //
  146. // End ---------------------------------------------------------------------
  147.  
  148.  
  149. // End Section types //
  150.  
  151.  
  152. // Section -----------------------------------------------------------------
  153. //                               defines                                  //
  154. // End ---------------------------------------------------------------------
  155.  
  156. // LiteralSection ----------------------------------------------------------
  157. //
  158. //      class type codes
  159. //
  160. // Description
  161. //
  162. //      Defines codes for the class types in the class library.
  163. //      The ranges for the codes and their use are defined below.
  164. //
  165. //      0 . . __lastLibClass:               Reserved for class provided
  166. //                                          in the library.
  167. //      __firstUserClass . . __lastClass    Available for general use.
  168. //
  169. // End ---------------------------------------------------------------------
  170.  
  171. #define    objectClass                0
  172. #define    errorClass               (objectClass+1)
  173. #define    sortableClass            (errorClass+1)
  174. #define    stringClass              (sortableClass+1)
  175. #define    listElementClass         (stringClass+1)
  176. #define    doubleListElementClass   (listElementClass+1)
  177. #define    containerClass           (doubleListElementClass+1)
  178. #define    stackClass               (containerClass+1)
  179. #define    queueClass               (stackClass+1)
  180. #define    dequeClass               (queueClass+1)
  181. #define    collectionClass          (dequeClass+1)
  182. #define    hashTableClass           (collectionClass+1)
  183. #define    bagClass                 (hashTableClass+1)
  184. #define    setClass                 (bagClass+1)
  185. #define    dictionaryClass          (setClass+1)
  186. #define    associationClass         (dictionaryClass+1)
  187. #define    arrayClass               (associationClass+1)
  188. #define    sortedArrayClass         (arrayClass+1)
  189. #define    listClass                (sortedArrayClass+1)
  190. #define    doubleListClass          (listClass+1)
  191. #define    timeClass                (doubleListClass+1)
  192. #define       dateClass                (timeClass+1)
  193. #define       longClass                (dateClass+1)
  194.  
  195. #define    __lastLibClass           255
  196. #define    __firstUserClass         __lastLibClass+1
  197.  
  198. #define    __lastClass              UINT_MAX
  199.  
  200. // End LiteralSection class type codes //
  201.  
  202. // End Section defines //
  203.  
  204.  
  205. #endif // ifndef __CLSTYPES_H //
  206.  
  207.