Noncopyable.h

Go to the documentation of this file.
00001 //**************************************************************************/
00002 // Copyright (c) 1998-2006 Autodesk, Inc.
00003 // All rights reserved.
00004 // 
00005 // These coded instructions, statements, and computer programs contain
00006 // unpublished proprietary information written by Autodesk, Inc., and are
00007 // protected by Federal copyright law. They may not be disclosed to third
00008 // parties or copied or duplicated in any form, in whole or in part, without
00009 // the prior written consent of Autodesk, Inc.
00010 //**************************************************************************/
00011 // DESCRIPTION: Utility "base class" to prevent compiler generation of a
00012 //    copy constructor and assignment operator.
00013 // AUTHOR: Nicolas Desjardins
00014 // DATE: 2006/03/20 
00015 //***************************************************************************/
00016 
00017 #pragma once
00018 #include "maxheap.h"
00019 
00020 namespace MaxSDK
00021 {
00022 
00023 namespace Util
00024 {
00025 
00036 class Noncopyable
00037 : public MaxHeapOperators {
00038 protected:
00039     Noncopyable() {};
00040     ~Noncopyable() {};
00041 
00042 private:
00043     Noncopyable(const Noncopyable&);
00044     Noncopyable& operator=(const Noncopyable&);
00045 };
00046 
00047 } // end of namespace Util
00048 }