[][src]Trait opencv::core::prelude::FileNodeIteratorTrait

pub trait FileNodeIteratorTrait {
    pub fn as_raw_FileNodeIterator(&self) -> *const c_void;
pub fn as_raw_mut_FileNodeIterator(&mut self) -> *mut c_void; pub fn try_deref(&self) -> Result<FileNode> { ... }
pub fn read_raw(
        &mut self,
        fmt: &str,
        vec: *mut c_void,
        len: size_t
    ) -> Result<FileNodeIterator> { ... }
pub fn remaining(&self) -> Result<size_t> { ... }
pub fn equal_to(&self, it: &FileNodeIterator) -> Result<bool> { ... } }

used to iterate through sequences and mappings.

A standard STL notation, with node.begin(), node.end() denoting the beginning and the end of a sequence, stored in node. See the data reading sample in the beginning of the section.

Required methods

Loading content...

Provided methods

pub fn try_deref(&self) -> Result<FileNode>[src]

returns the currently observed element

pub fn read_raw(
    &mut self,
    fmt: &str,
    vec: *mut c_void,
    len: size_t
) -> Result<FileNodeIterator>
[src]

Reads node elements to the buffer with the specified format.

Usually it is more convenient to use operator >> instead of this method.

Parameters

  • fmt: Specification of each array element. See @ref format_spec "format specification"
  • vec: Pointer to the destination array.
  • len: Number of bytes to read (buffer size limit). If it is greater than number of remaining elements then all of them will be read.

C++ default parameters

  • len: (size_t)INT_MAX

pub fn remaining(&self) -> Result<size_t>[src]

returns the number of remaining (not read yet) elements

pub fn equal_to(&self, it: &FileNodeIterator) -> Result<bool>[src]

Loading content...

Implementors

impl FileNodeIteratorTrait for FileNodeIterator[src]

Loading content...