00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013 #ifndef ACE_HASHABLE_H
00014 #define ACE_HASHABLE_H
00015
00016 #include "ace/pre.h"
00017
00018 #include "ace/ACE_export.h"
00019
00020 #if !defined (ACE_LACKS_PRAGMA_ONCE)
00021 # pragma once
00022 #endif
00023
00024
00025
00026
00027
00028
00029
00030 class ACE_Export ACE_Hashable
00031 {
00032 public:
00033
00034
00035 virtual ~ACE_Hashable (void);
00036
00037
00038
00039 virtual unsigned long hash (void) const;
00040
00041 protected:
00042
00043 ACE_Hashable (void);
00044
00045
00046
00047 virtual unsigned long hash_i (void) const = 0;
00048
00049 protected:
00050
00051
00052 unsigned long hash_value_;
00053
00054 };
00055
00056
00057 #if defined (__ACE_INLINE__)
00058 #include "ace/Hashable.inl"
00059 #endif
00060
00061 #include "ace/post.h"
00062
00063 #endif