#ifndef INTEGER_H #define INTEGER_H // Abstract base class defining a limited interface for an Integer. // Currently this is only used to provide the exponent of an exponentiation // chain, and hence the only operation required is testing set bits. class Integer() { public: // Virtual destructor ~Integer() { } // Test if the n-th bit (from least to most significant) is set in // the current integer. virtual bool testBit(int bit) = 0; } #endif // INTEGER_H