/* osgCompute - Copyright (C) 2008-2009 SVT Group
 *                                                                     
 * This library is free software; you can redistribute it and/or modify
 * it under the terms of the GNU Lesser General Public License as
 * published by the Free Software Foundation; either version 3 of
 * the License, or (at your option) any later version.
 *                                                                     
 * This library is distributed in the hope that it will be useful,
 * but WITHOUT ANY WARRANTY; without even the implied warranty of 
 * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
 * GNU Lesse General Public License for more details.
 *
 * The full license is in LICENSE file included with this distribution.
*/

#ifndef OSGCUDA_COMPUTATION
#define OSGCUDA_COMPUTATION 1

#include <osgCompute/Computation>
#include "osgCuda/Export"
#include "osgCuda/Context"

namespace osgCuda
{
    /**
    */
    class LIBRARY_EXPORT Computation : public osgCompute::Computation
    {
    public:
        Computation();

        META_Computation( osgCuda, Computation, osgCuda, Context )

        virtual void clear();

    protected:
        virtual ~Computation() { clearLocal(); }
        void clearLocal();
        
    private:
        // copy constructor and operator should not be called
        Computation( const Computation&, const osg::CopyOp& ) {}
        Computation &operator=(const Computation &) { return *this; }
    };
}

#endif //OSGCUDA_COMPUTATION
