GenKeySource.hpp

Go to the documentation of this file.
00001 #ifndef wali_wpds_GENKEY_SOURCE_GUARD
00002 #define wali_wpds_GENKEY_SOURCE_GUARD 1
00003 
00004 /*!
00005  * @author Nicholas Kidd
00006  */
00007 
00008 #include "wali/Common.hpp"
00009 #include "wali/KeySource.hpp"
00010 
00011 namespace wali
00012 {
00013   namespace wpds {
00014     class GenKeySource : public KeySource
00015     {
00016       public:
00017         GenKeySource( size_t g, Key k );
00018 
00019         virtual ~GenKeySource();
00020 
00021         virtual bool equal( KeySource* rhs );
00022 
00023         virtual size_t hash() const;
00024 
00025         virtual std::ostream& print( std::ostream& o ) const;
00026 
00027         size_t getGeneration() const;
00028 
00029         Key getKey() const;
00030 
00031       protected:
00032         size_t gen;
00033         Key key;
00034 
00035     }; // class GenKeySource
00036 
00037   } // namespace wpds
00038 
00039 } // namespace wali
00040 
00041 #endif  // wali_wpds_GENKEY_SOURCE_GUARD
00042