From ae515e0b4c86dd3309f8897f9bd4e7fedcd4588f Mon Sep 17 00:00:00 2001 From: weidai Date: Fri, 16 May 2003 00:53:53 +0000 Subject: add CRYPTOPP_NO_VTABLE git-svn-id: svn://svn.code.sf.net/p/cryptopp/code/trunk/c5@69 57ff6487-cd31-0410-9ec3-f628ee90f5f0 --- simple.h | 20 ++++++++++---------- 1 file changed, 10 insertions(+), 10 deletions(-) (limited to 'simple.h') diff --git a/simple.h b/simple.h index e26cefd..99bc090 100644 --- a/simple.h +++ b/simple.h @@ -12,7 +12,7 @@ NAMESPACE_BEGIN(CryptoPP) template -class AlgorithmImpl : public BASE +class CRYPTOPP_NO_VTABLE AlgorithmImpl : public BASE { public: std::string AlgorithmName() const {return ALGORITHM_INFO::StaticAlgorithmName();} @@ -32,7 +32,7 @@ public: explicit InvalidRounds(const std::string &algorithm, unsigned int rounds) : InvalidArgument(algorithm + ": " + IntToString(rounds) + " is not a valid number of rounds") {} }; -class HashTransformationWithDefaultTruncation : public HashTransformation +class CRYPTOPP_NO_VTABLE HashTransformationWithDefaultTruncation : public HashTransformation { public: virtual void Final(byte *digest) =0; @@ -53,7 +53,7 @@ public: // ***************************** template -class Bufferless : public T +class CRYPTOPP_NO_VTABLE Bufferless : public T { public: Bufferless() {} @@ -62,7 +62,7 @@ public: }; template -class Unflushable : public T +class CRYPTOPP_NO_VTABLE Unflushable : public T { public: Unflushable() {} @@ -87,7 +87,7 @@ protected: }; template -class InputRejecting : public T +class CRYPTOPP_NO_VTABLE InputRejecting : public T { public: InputRejecting() {} @@ -109,7 +109,7 @@ protected: }; template -class CustomSignalPropagation : public T +class CRYPTOPP_NO_VTABLE CustomSignalPropagation : public T { public: CustomSignalPropagation() {} @@ -124,7 +124,7 @@ private: }; template -class Multichannel : public CustomSignalPropagation +class CRYPTOPP_NO_VTABLE Multichannel : public CustomSignalPropagation { public: Multichannel() {} @@ -159,7 +159,7 @@ public: }; template -class AutoSignaling : public T +class CRYPTOPP_NO_VTABLE AutoSignaling : public T { public: AutoSignaling(int propagation=-1) : m_autoSignalPropagation(propagation) {} @@ -175,7 +175,7 @@ private: }; //! A BufferedTransformation that only contains pre-existing data as "output" -class Store : public AutoSignaling > +class CRYPTOPP_NO_VTABLE Store : public AutoSignaling > { public: Store() : m_messageEnd(false) {} @@ -197,7 +197,7 @@ protected: }; //! A BufferedTransformation that doesn't produce any retrievable output -class Sink : public BufferedTransformation +class CRYPTOPP_NO_VTABLE Sink : public BufferedTransformation { protected: // make these functions protected to help prevent unintentional calls to them -- cgit v1.2.1