Class: OpenCV::Cvflann::Flann_Distance_T
- Inherits:
-
Object
- Object
- OpenCV::Cvflann::Flann_Distance_T
- 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 Flann_Distance_T into a string by crawling through all its attributes.
Class Method Details
.new(*args) ⇒ Object
41388 41389 41390 41391 41392 41393 41394 41395 |
# File 'lib/ropencv/ropencv_types.rb', line 41388 def self.new(*args) if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Flann_Distance_TStruct) 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
41384 41385 41386 |
# File 'lib/ropencv/ropencv_types.rb', line 41384 def self.null new(Flann_Distance_TStruct.new) end |
Instance Method Details
#to_s ⇒ Object
converts Flann_Distance_T into a string by crawling through all its attributes
41461 41462 41463 |
# File 'lib/ropencv/ropencv_types.rb', line 41461 def to_s "#<cvflann::flann_distance_t >" end |