Class: OpenCV::Cv::Ptr::Cv_Flann_SearchParams

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

Specializing collapse

Class Method Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args) ⇒ Object



27245
27246
27247
27248
# File 'lib/ropencv/ropencv_types.rb', line 27245

def method_missing(m,*args)
    raise "Ptr cv::Ptr is empty. Cannot call #{m} on it!" if empty
    obj.method(m).call(*args)
end

Class Method Details

.new(*args) ⇒ Object

Parameters:

Raises:

  • (ArgumentError)


27106
27107
27108
27109
27110
27111
27112
27113
27114
27115
27116
27117
27118
27119
27120
27121
27122
27123
27124
27125
27126
# File 'lib/ropencv/ropencv_types.rb', line 27106

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_Flann_SearchParamsStruct)
        raise ArgumentError, "too many arguments for creating #{self.name} from Pointer" unless args.size == 1
        return super(args.first)
    end
    # overloaded method wrapper for cv::Ptr<cv::flann::SearchParams>::Ptr<cv::flann::SearchParams>(cv::Ptr<cv::flann::SearchParams> other)
    @@cv_ptr_cv_flann_search_params_ptr_cv_flann_search_params_defaults0 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_ptr_cv_flann_search_params_ptr_cv_flann_search_params_defaults0[i]
        end
        begin
                return Rbind::cv_ptr_cv_flann_search_params_ptr_cv_flann_search_params(*targs)
        rescue TypeError => e
            @error = e
        end
    end

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

.nullObject

returns a null pointer to the object



27101
27102
27103
# File 'lib/ropencv/ropencv_types.rb', line 27101

def self.null
    new(Ptr::Cv_Flann_SearchParamsStruct.new)
end

Instance Method Details

#addrefVoid

Note:

method wrapper for void cv::Ptrcv::flann::SearchParams::addref()

methods

Returns:

  • (Void)


27203
27204
27205
27206
# File 'lib/ropencv/ropencv_types.rb', line 27203

def addref()
    __validate_pointer__
    Rbind::cv_ptr_cv_flann_search_params_addref( self)
end

#delete_objVoid

Note:

method wrapper for void cv::Ptrcv::flann::SearchParams::delete_obj()

Returns:

  • (Void)


27217
27218
27219
27220
# File 'lib/ropencv/ropencv_types.rb', line 27217

def delete_obj()
    __validate_pointer__
    Rbind::cv_ptr_cv_flann_search_params_delete_obj( self)
end

#emptyBool

Note:

method wrapper for bool cv::Ptrcv::flann::SearchParams::empty()

Returns:

  • (Bool)


27224
27225
27226
27227
# File 'lib/ropencv/ropencv_types.rb', line 27224

def empty()
    __validate_pointer__
    Rbind::cv_ptr_cv_flann_search_params_empty( self)
end

#objCv::Flann::SearchParams Also known as: get_obj

Note:

method wrapper for cv::flann::SearchParams* obj



27231
27232
27233
27234
27235
27236
27237
27238
27239
# File 'lib/ropencv/ropencv_types.rb', line 27231

def obj()
    __validate_pointer__
    result = Rbind::cv_ptr_cv_flann_search_params_get_obj( self)
    if result.respond_to?(:__owner__?) && !result.__owner__?
    # store owner insight the pointer to not get garbage collected
        result.instance_variable_get(:@__obj_ptr__).instance_variable_set(:@__owner__,self) 
    end
    result
end

#releaseVoid

Note:

method wrapper for void cv::Ptrcv::flann::SearchParams::release()

Returns:

  • (Void)


27210
27211
27212
27213
# File 'lib/ropencv/ropencv_types.rb', line 27210

def release()
    __validate_pointer__
    Rbind::cv_ptr_cv_flann_search_params_release( self)
end

#to_sObject

converts Ptr::Cv_Flann_SearchParams into a string by crawling through all its attributes



27192
27193
27194
# File 'lib/ropencv/ropencv_types.rb', line 27192

def to_s
    "#<cv::Ptr<cv::flann::SearchParams> obj=#{self.obj}>"
end