Class: OpenCV::Cv::Ptr::Cv_Ml_Boost

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

Specializing collapse

Class Method Summary collapse

Instance Method Summary collapse

Dynamic Method Handling

This class handles dynamic methods through the method_missing method

#method_missing(m, *args) ⇒ Object



54952
54953
54954
54955
# File 'lib/ropencv/ropencv_types.rb', line 54952

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

.ptrObject .ptrObject .ptrObject .ptrObject .ptrObject

Overloads:

Raises:

  • (ArgumentError)


54756
54757
54758
54759
54760
54761
54762
54763
54764
54765
54766
54767
54768
54769
54770
54771
54772
54773
54774
54775
54776
54777
54778
54779
54780
54781
54782
54783
54784
54785
54786
54787
54788
54789
54790
54791
54792
54793
54794
54795
54796
54797
54798
54799
54800
54801
54802
54803
54804
54805
54806
54807
54808
54809
54810
54811
54812
54813
54814
54815
54816
54817
54818
54819
54820
54821
54822
54823
54824
54825
54826
54827
54828
54829
54830
54831
54832
# File 'lib/ropencv/ropencv_types.rb', line 54756

def self.new(*args)
    if args.first.is_a?(FFI::Pointer) || args.first.is_a?(Ptr::Cv_Ml_BoostStruct)
        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::ml::Boost>::Ptr<cv::ml::Boost>()
    @@cv_ptr_cv_ml_boost_ptr_cv_ml_boost_defaults0 ||= []
    if(args.size >= 0 && args.size <= 0)
        targs = args.clone
        targs.size.upto(-1) do |i|
            targs[i] = @@cv_ptr_cv_ml_boost_ptr_cv_ml_boost_defaults0[i]
        end
        begin
                return Rbind::cv_ptr_cv_ml_boost_ptr_cv_ml_boost(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::ml::Boost>::Ptr<cv::ml::Boost>(cv::Ptr<cv::ml::Boost> other)
    @@cv_ptr_cv_ml_boost_ptr_cv_ml_boost__2_defaults1 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_ptr_cv_ml_boost_ptr_cv_ml_boost__2_defaults1[i]
        end
        begin
                return Rbind::cv_ptr_cv_ml_boost_ptr_cv_ml_boost__2(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::ml::Boost>::Ptr<cv::ml::Boost>(cv::Ptr<cv::ml::Boost> owner, cv::ml::Boost* p)
    @@cv_ptr_cv_ml_boost_ptr_cv_ml_boost__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_ml_boost_ptr_cv_ml_boost__3_defaults2[i]
        end
        begin
                return Rbind::cv_ptr_cv_ml_boost_ptr_cv_ml_boost__3(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::ml::Boost>::Ptr<cv::ml::Boost>(cv::ml::Boost* p)
    @@cv_ptr_cv_ml_boost_ptr_cv_ml_boost__4_defaults3 ||= [nil]
    if(args.size >= 1 && args.size <= 1)
        targs = args.clone
        targs.size.upto(0) do |i|
            targs[i] = @@cv_ptr_cv_ml_boost_ptr_cv_ml_boost__4_defaults3[i]
        end
        begin
                return Rbind::cv_ptr_cv_ml_boost_ptr_cv_ml_boost__4(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    # overloaded method wrapper for cv::Ptr<cv::ml::Boost>::Ptr<cv::ml::Boost>(cv::Ptr<cv::ml::DTrees> owner, cv::ml::Boost* p)
    @@cv_ptr_cv_ml_boost_ptr_cv_ml_boost__5_defaults4 ||= [nil, nil]
    if(args.size >= 2 && args.size <= 2)
        targs = args.clone
        targs.size.upto(1) do |i|
            targs[i] = @@cv_ptr_cv_ml_boost_ptr_cv_ml_boost__5_defaults4[i]
        end
        begin
                return Rbind::cv_ptr_cv_ml_boost_ptr_cv_ml_boost__5(*targs)
        rescue TypeError => e
            @error = e
        end
    end

    raise ArgumentError, "no constructor for #{self}(#{args.inspect})"
end

.nullObject

returns a null pointer to the object



54737
54738
54739
# File 'lib/ropencv/ropencv_types.rb', line 54737

def self.null
    new(Ptr::Cv_Ml_BoostStruct.new)
end

Instance Method Details

#emptyBool

Note:

method wrapper for bool cv::Ptrcv::ml::Boost::empty()

Returns:

  • (Bool)


54944
54945
54946
54947
# File 'lib/ropencv/ropencv_types.rb', line 54944

def empty()
    __validate_pointer__
    Rbind::cv_ptr_cv_ml_boost_empty( self)
end

#getCv::Ml::Boost

Note:

method wrapper for cv::ml::Boost* cv::Ptrcv::ml::Boost::get()

Returns:



54932
54933
54934
54935
54936
54937
54938
54939
54940
# File 'lib/ropencv/ropencv_types.rb', line 54932

def get()
    __validate_pointer__
    result = Rbind::cv_ptr_cv_ml_boost_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

#releaseVoid

Note:

method wrapper for void cv::Ptrcv::ml::Boost::release()

methods

Returns:

  • (Void)


54909
54910
54911
54912
# File 'lib/ropencv/ropencv_types.rb', line 54909

def release()
    __validate_pointer__
    Rbind::cv_ptr_cv_ml_boost_release( self)
end

#reset(p) ⇒ Void

Note:

method wrapper for void cv::Ptrcv::ml::Boost::reset(cv::ml::Boost* p)

Parameters:

Returns:

  • (Void)


54917
54918
54919
54920
# File 'lib/ropencv/ropencv_types.rb', line 54917

def reset(p)
    __validate_pointer__
    Rbind::cv_ptr_cv_ml_boost_reset( self, p)
end

#swap(other) ⇒ Void

Note:

method wrapper for void cv::Ptrcv::ml::Boost::swap(cv::Ptrcv::ml::Boost other)

Parameters:

Returns:

  • (Void)


54925
54926
54927
54928
# File 'lib/ropencv/ropencv_types.rb', line 54925

def swap(other)
    __validate_pointer__
    Rbind::cv_ptr_cv_ml_boost_swap( self, other)
end

#to_sObject

converts Ptr::Cv_Ml_Boost into a string by crawling through all its attributes



54898
54899
54900
# File 'lib/ropencv/ropencv_types.rb', line 54898

def to_s
    "#<cv::Ptr<cv::ml::Boost> >"
end