00001 #pragma once
00002
00015 #if defined(Integer_RECURSES)
00016 #error Recursive header files inclusion detected in Integer.h
00017 #else // defined(Integer_RECURSES)
00018
00019 #define Integer_RECURSES
00020
00021 #if !defined Integer_h
00022
00023 #define Integer_h
00024
00026
00027 #include <iostream>
00028 #include "DGtal/base/Common.h"
00030
00031 namespace DGtal
00032 {
00033
00035
00040 class Integer
00041 {
00042
00043 public:
00044
00048 ~Integer();
00049
00050
00051 public:
00052
00057 void selfDisplay( std::ostream & out ) const;
00058
00063 bool isValid() const;
00064
00065
00066 private:
00067
00068 private:
00069
00070
00071 protected:
00072
00077 Integer();
00078
00079 private:
00080
00086 Integer( const Integer & other );
00087
00094 Integer & operator=( const Integer & other );
00095
00096
00097 private:
00098
00099 };
00100
00101
00108 std::ostream&
00109 operator<<( std::ostream & out, const Integer & object );
00110
00111
00112 }
00113
00114
00116
00117 #if defined(INLINE)
00118 #include "DGtal/base/Integer.ih"
00119 #endif
00120
00121
00123
00124 #endif // !defined Integer_h
00125
00126 #undef Integer_RECURSES
00127 #endif // else defined(Integer_RECURSES)