home *** CD-ROM | disk | FTP | other *** search
/ The Devil's Doorknob BBS Capture (1996-2003) / devilsdoorknobbbscapture1996-2003.iso / Dloads / OTHERUTI / TCPP30-1.ZIP / CLASSINC.ZIP / DICT.H < prev    next >
C/C++ Source or Header  |  1992-02-18  |  1KB  |  59 lines

  1. /*------------------------------------------------------------------------*/
  2. /*                                                                        */
  3. /*  DICT.H                                                                */
  4. /*                                                                        */
  5. /*  Copyright Borland International 1991                                  */
  6. /*  All Rights Reserved                                                   */
  7. /*                                                                        */
  8. /*------------------------------------------------------------------------*/
  9.  
  10. #if !defined( __DICT_H )
  11. #define __DICT_H
  12.  
  13. #if !defined( __CLSTYPES_H )
  14. #include <ClsTypes.h>
  15. #endif  // __CLSTYPES_H
  16.  
  17. #if !defined( __OBJECT_H )
  18. #include <Object.h>
  19. #endif  // __OBJECT_H
  20.  
  21. #if !defined( __SET_H )
  22. #include <Set.h>
  23. #endif  // __SET_H
  24.  
  25. #if !defined( __STDLIB_H )
  26. #include <stdlib.h>
  27. #endif
  28.  
  29. _CLASSDEF(Association)
  30. _CLASSDEF(Dictionary)
  31.  
  32. class _CLASSTYPE Dictionary : public Set
  33. {
  34.  
  35. public:
  36.  
  37.     Dictionary( unsigned sz = DEFAULT_HASH_TABLE_SIZE ) :
  38.         Set(sz)
  39.         {
  40.         }
  41.  
  42.     virtual void add( Object _FAR & );
  43.     Association _FAR & lookup( const Object _FAR & ) const;
  44.  
  45.     virtual classType isA() const
  46.         {
  47.         return dictionaryClass;
  48.         }
  49.  
  50.     virtual char _FAR *nameOf() const
  51.         {
  52.         return "Dictionary";
  53.         }
  54.  
  55. };
  56.  
  57. #endif  // __DICT_H
  58.  
  59.