Class: CVFFI::FloatArrayCommon
- Inherits:
-
NiceFFI::Struct
- Object
- NiceFFI::Struct
- CVFFI::FloatArrayCommon
- Includes:
- Enumerable
- Defined in:
- lib/opencv-ffi-wrappers/vectors.rb
Class Attribute Summary collapse
-
.nElem ⇒ Object
Returns the value of attribute nElem.
Instance Method Summary collapse
- #each ⇒ Object
- #nElem ⇒ Object (also: #length)
Methods included from Enumerable
Class Attribute Details
.nElem ⇒ Object
Returns the value of attribute nElem.
9 10 11 |
# File 'lib/opencv-ffi-wrappers/vectors.rb', line 9 def nElem @nElem end |
Instance Method Details
#each ⇒ Object
14 15 16 17 18 |
# File 'lib/opencv-ffi-wrappers/vectors.rb', line 14 def each nElem.times { |i| yield d[i] } end |
#nElem ⇒ Object Also known as: length
11 |
# File 'lib/opencv-ffi-wrappers/vectors.rb', line 11 def nElem; self.class.nElem; end |