Class: OpenCV::Cvflann::Flann_Distance_T

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

Class Method Summary collapse

Instance Method Summary collapse

Class Method Details

.new(*args) ⇒ Object

Raises:

  • (ArgumentError)


90076
90077
90078
90079
90080
90081
90082
90083
# File 'lib/ropencv/ropencv_types.rb', line 90076

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

.nullObject

returns a null pointer to the object



90072
90073
90074
# File 'lib/ropencv/ropencv_types.rb', line 90072

def self.null
    new(Flann_Distance_TStruct.new)
end

Instance Method Details

#to_sObject

converts Flann_Distance_T into a string by crawling through all its attributes



90149
90150
90151
# File 'lib/ropencv/ropencv_types.rb', line 90149

def to_s
    "#<cvflann::flann_distance_t >"
end