Class: OpenCV::Cv::Flann::SearchParams
- Inherits:
-
Object
- Object
- OpenCV::Cv::Flann::SearchParams
- 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 SearchParams into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
20977 20978 20979 20980 20981 20982 20983 20984 |
# File 'lib/ropencv/ropencv_types.rb', line 20977 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(SearchParamsStruct) 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
20973 20974 20975 |
# File 'lib/ropencv/ropencv_types.rb', line 20973 def self.null new(SearchParamsStruct.new) end |
Instance Method Details
#to_s ⇒ Object
converts SearchParams into a string by crawling through all its attributes
21050 21051 21052 |
# File 'lib/ropencv/ropencv_types.rb', line 21050 def to_s "#<cv::flann::SearchParams >" end |