Class: OpenCV::Cv::Ptr::Cv_Flann_IndexParams
- Inherits:
-
Object
- Object
- OpenCV::Cv::Ptr::Cv_Flann_IndexParams
- Extended by:
- FFI::DataConverter
- Defined in:
- lib/ropencv/ropencv_types.rb
Specializing collapse
Class Method Summary collapse
- .new(*args) ⇒ Object
-
.null ⇒ Object
returns a null pointer to the object.
Instance Method Summary collapse
- #empty ⇒ Bool
- #get ⇒ Cv::Flann::IndexParams
-
#release ⇒ Void
methods.
- #reset(p) ⇒ Void
- #swap(other) ⇒ Void
-
#to_s ⇒ Object
converts Ptr::Cv_Flann_IndexParams into a string by crawling through all its attributes.
Dynamic Method Handling
This class handles dynamic methods through the method_missing method
#method_missing(m, *args) ⇒ Object
66737 66738 66739 66740 |
# File 'lib/ropencv/ropencv_types.rb', line 66737 def method_missing(m,*args) raise "Ptr cv::Ptr is empty. Cannot call #{m} on it!" if empty get.method(m).call(*args) end |
Class Method Details
.ptr ⇒ Object .ptr ⇒ Object .ptr ⇒ Object .ptr ⇒ Object
66555 66556 66557 66558 66559 66560 66561 66562 66563 66564 66565 66566 66567 66568 66569 66570 66571 66572 66573 66574 66575 66576 66577 66578 66579 66580 66581 66582 66583 66584 66585 66586 66587 66588 66589 66590 66591 66592 66593 66594 66595 66596 66597 66598 66599 66600 66601 66602 66603 66604 66605 66606 66607 66608 66609 66610 66611 66612 66613 66614 66615 66616 66617 |
# File 'lib/ropencv/ropencv_types.rb', line 66555 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_Flann_IndexParamsStruct) 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::IndexParams>::Ptr<cv::flann::IndexParams>() @@cv_ptr_cv_flann_index_params_ptr_cv_flann_index_params_defaults0 ||= [] if(args.size >= 0 && args.size <= 0) targs = args.clone targs.size.upto(-1) do |i| targs[i] = @@cv_ptr_cv_flann_index_params_ptr_cv_flann_index_params_defaults0[i] end begin return Rbind::cv_ptr_cv_flann_index_params_ptr_cv_flann_index_params(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::flann::IndexParams>::Ptr<cv::flann::IndexParams>(cv::Ptr<cv::flann::IndexParams> other) @@cv_ptr_cv_flann_index_params_ptr_cv_flann_index_params__2_defaults1 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_flann_index_params_ptr_cv_flann_index_params__2_defaults1[i] end begin return Rbind::cv_ptr_cv_flann_index_params_ptr_cv_flann_index_params__2(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::flann::IndexParams>::Ptr<cv::flann::IndexParams>(cv::Ptr<cv::flann::IndexParams> owner, cv::flann::IndexParams* p) @@cv_ptr_cv_flann_index_params_ptr_cv_flann_index_params__3_defaults2 ||= [nil, nil] if(args.size >= 2 && args.size <= 2) targs = args.clone targs.size.upto(1) do |i| targs[i] = @@cv_ptr_cv_flann_index_params_ptr_cv_flann_index_params__3_defaults2[i] end begin return Rbind::cv_ptr_cv_flann_index_params_ptr_cv_flann_index_params__3(*targs) rescue TypeError => e @error = e end end # overloaded method wrapper for cv::Ptr<cv::flann::IndexParams>::Ptr<cv::flann::IndexParams>(cv::flann::IndexParams* p) @@cv_ptr_cv_flann_index_params_ptr_cv_flann_index_params__4_defaults3 ||= [nil] if(args.size >= 1 && args.size <= 1) targs = args.clone targs.size.upto(0) do |i| targs[i] = @@cv_ptr_cv_flann_index_params_ptr_cv_flann_index_params__4_defaults3[i] end begin return Rbind::cv_ptr_cv_flann_index_params_ptr_cv_flann_index_params__4(*targs) rescue TypeError => e @error = e end end raise ArgumentError, "no constructor for #{self}(#{args.inspect})" end |
.null ⇒ Object
returns a null pointer to the object
66540 66541 66542 |
# File 'lib/ropencv/ropencv_types.rb', line 66540 def self.null new(Ptr::Cv_Flann_IndexParamsStruct.new) end |
Instance Method Details
#empty ⇒ Bool
Note:
method wrapper for bool cv::Ptrcv::flann::IndexParams::empty()
66729 66730 66731 66732 |
# File 'lib/ropencv/ropencv_types.rb', line 66729 def empty() __validate_pointer__ Rbind::cv_ptr_cv_flann_index_params_empty( self) end |
#get ⇒ Cv::Flann::IndexParams
Note:
method wrapper for cv::flann::IndexParams* cv::Ptrcv::flann::IndexParams::get()
66717 66718 66719 66720 66721 66722 66723 66724 66725 |
# File 'lib/ropencv/ropencv_types.rb', line 66717 def get() __validate_pointer__ result = Rbind::cv_ptr_cv_flann_index_params_get( 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 |
#release ⇒ Void
Note:
method wrapper for void cv::Ptrcv::flann::IndexParams::release()
methods
66694 66695 66696 66697 |
# File 'lib/ropencv/ropencv_types.rb', line 66694 def release() __validate_pointer__ Rbind::cv_ptr_cv_flann_index_params_release( self) end |
#reset(p) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::flann::IndexParams::reset(cv::flann::IndexParams* p)
66702 66703 66704 66705 |
# File 'lib/ropencv/ropencv_types.rb', line 66702 def reset(p) __validate_pointer__ Rbind::cv_ptr_cv_flann_index_params_reset( self, p) end |
#swap(other) ⇒ Void
Note:
method wrapper for void cv::Ptrcv::flann::IndexParams::swap(cv::Ptrcv::flann::IndexParams other)
66710 66711 66712 66713 |
# File 'lib/ropencv/ropencv_types.rb', line 66710 def swap(other) __validate_pointer__ Rbind::cv_ptr_cv_flann_index_params_swap( self, other) end |
#to_s ⇒ Object
converts Ptr::Cv_Flann_IndexParams into a string by crawling through all its attributes
66683 66684 66685 |
# File 'lib/ropencv/ropencv_types.rb', line 66683 def to_s "#<cv::Ptr<cv::flann::IndexParams> >" end |