Table of Contents

Class FileNodeIterator

Namespace
OpenCvSharp
Assembly
OpenCvSharp.dll

DisposableObject + ICvPtrHolder

public class FileNodeIterator : DisposableCvObject, ICvPtrHolder, IEquatable<FileNodeIterator>, IEnumerator<FileNode>, IEnumerator, IDisposable
Inheritance
FileNodeIterator
Implements
Inherited Members

Constructors

FileNodeIterator()

The default constructor

public FileNodeIterator()

FileNodeIterator(nint)

Initializes from cv::FileNode*

public FileNodeIterator(nint ptr)

Parameters

ptr nint

Properties

Current

*iterator

public FileNode Current { get; }

Property Value

FileNode

Methods

DisposeUnmanaged()

Releases unmanaged resources

protected override void DisposeUnmanaged()

Equals(FileNodeIterator?)

Indicates whether the current object is equal to another object of the same type.

public bool Equals(FileNodeIterator? other)

Parameters

other FileNodeIterator

An object to compare with this object.

Returns

bool

true if the current object is equal to the other parameter; otherwise, false.

Equals(object?)

Determines whether the specified object is equal to the current object.

public override bool Equals(object? obj)

Parameters

obj object

The object to compare with the current object.

Returns

bool

true if the specified object is equal to the current object; otherwise, false.

GetHashCode()

Serves as the default hash function.

public override int GetHashCode()

Returns

int

A hash code for the current object.

LessThan(FileNodeIterator)

public bool LessThan(FileNodeIterator it)

Parameters

it FileNodeIterator

Returns

bool

Minus(FileNodeIterator)

public long Minus(FileNodeIterator it)

Parameters

it FileNodeIterator

Returns

long

MoveNext()

iterator++

public bool MoveNext()

Returns

bool

MoveNext(int)

iterator += ofs

public bool MoveNext(int ofs)

Parameters

ofs int

Returns

bool

ReadRaw(string, byte[], long)

Reads node elements to the buffer with the specified format. Usually it is more convenient to use operator >> instead of this method.

public FileNodeIterator ReadRaw(string fmt, byte[] vec, long maxCount = 2147483647)

Parameters

fmt string

Specification of each array element.See @ref format_spec "format specification"

vec byte[]

Pointer to the destination array.

maxCount long

Number of elements to read. If it is greater than number of remaining elements then all of them will be read.

Returns

FileNodeIterator

ReadRaw(string, nint, long)

Reads node elements to the buffer with the specified format. Usually it is more convenient to use operator >> instead of this method.

public FileNodeIterator ReadRaw(string fmt, nint vec, long maxCount = 2147483647)

Parameters

fmt string

Specification of each array element.See @ref format_spec "format specification"

vec nint

Pointer to the destination array.

maxCount long

Number of elements to read. If it is greater than number of remaining elements then all of them will be read.

Returns

FileNodeIterator

Reset()

IEnumerable<T>.Reset

public void Reset()