class cv::ocl::Context

#include <ocl.hpp>

class Context
{
public:
    // fields

    Impl* p;

    // construction

    Context();
    Context(int dtype);
    Context(const Context& c);

    // methods

    bool
    create();

    bool
    create(int dtype);

    const Device&
    device(size_t idx) const;

    Program
    getProg(
        const ProgramSource& prog,
        const String& buildopt,
        String& errmsg
        );

    size_t
    ndevices() const;

    Context&
    operator=(const Context& c);

    void*
    ptr() const;

    void
    setUseSVM(bool enabled);

    bool
    useSVM() const;

    static
    Context&
    getDefault(bool initialize = true);
};