Class: OpenCV::Cv::Ocl::OpenCLExecutionContext
- Inherits:
-
Object
- Object
- OpenCV::Cv::Ocl::OpenCLExecutionContext
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
-
#to_s ⇒ Object
converts OpenCLExecutionContext into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
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 |
.null ⇒ Object
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_s ⇒ Object
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 |