All pastes #915709 Raw Edit

Untitled

public cpp v1 · immutable
#915709 ·published 2008-02-24 00:06 UTC
rendered paste body
#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