Class: OpenCV::Cv::Ocl::OpenCLExecutionContext

Inherits:
Object
  • Object
show all
Extended by:
FFI::DataConverter
Defined in:
lib/ropencv/ropencv_types.rb

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


26101
26102
26103
26104
26105
26106
26107
26108
# File 'lib/ropencv/ropencv_types.rb', line 26101

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(OpenCLExecutionContextStruct)
        raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1
        return super(args.first)
    end

    raise ArgumentError, "no constructor for #{self}(#{args.inspect})"
end

.nullObject

returns a null pointer to the object



26097
26098
26099
# File 'lib/ropencv/ropencv_types.rb', line 26097

def self.null
    new(OpenCLExecutionContextStruct.new)
end

Instance Method Details

#to_sObject

converts OpenCLExecutionContext into a string by crawling through all its attributes



26174
26175
26176
# File 'lib/ropencv/ropencv_types.rb', line 26174

def to_s
    "#<cv::ocl::OpenCLExecutionContext >"
end