Class: OpenCV::Cv::Flann::IndexParams
- Inherits:
-
Object
- Object
- OpenCV::Cv::Flann::IndexParams
- 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 IndexParams into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
20849 20850 20851 20852 20853 20854 20855 20856 |
# File 'lib/ropencv/ropencv_types.rb', line 20849 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(IndexParamsStruct) 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
20845 20846 20847 |
# File 'lib/ropencv/ropencv_types.rb', line 20845 def self.null new(IndexParamsStruct.new) end |
Instance Method Details
#to_s ⇒ Object
converts IndexParams into a string by crawling through all its attributes
20922 20923 20924 |
# File 'lib/ropencv/ropencv_types.rb', line 20922 def to_s "#<cv::flann::IndexParams >" end |