Go to the documentation of this file.00001 #ifndef wali_INT_SOURCE_GUARD
00002 #define wali_INT_SOURCE_GUARD 1
00003
00004
00005
00006
00007
00008 #include "wali/Common.hpp"
00009 #include "wali/KeySource.hpp"
00010
00011 namespace wali
00012 {
00013 class IntSource : public KeySource
00014 {
00015 public:
00016 IntSource( int i );
00017
00018 virtual ~IntSource();
00019
00020 virtual bool equal( KeySource* rhs );
00021
00022 virtual size_t hash() const;
00023
00024 virtual std::ostream& print( std::ostream& o ) const;
00025
00026 int getInt() const;
00027
00028 private:
00029 const int value;
00030
00031 };
00032
00033 }
00034
00035 #endif // wali_INT_SOURCE_GUARD
00036