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
ptrnint
Properties
Current
*iterator
public FileNode Current { get; }
Property Value
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
otherFileNodeIteratorAn object to compare with this object.
Returns
Equals(object?)
Determines whether the specified object is equal to the current object.
public override bool Equals(object? obj)
Parameters
objobjectThe object to compare with the current object.
Returns
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
Returns
Minus(FileNodeIterator)
public long Minus(FileNodeIterator it)
Parameters
Returns
MoveNext()
iterator++
public bool MoveNext()
Returns
MoveNext(int)
iterator += ofs
public bool MoveNext(int ofs)
Parameters
ofsint
Returns
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
fmtstringSpecification of each array element.See @ref format_spec "format specification"
vecbyte[]Pointer to the destination array.
maxCountlongNumber of elements to read. If it is greater than number of remaining elements then all of them will be read.
Returns
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
fmtstringSpecification of each array element.See @ref format_spec "format specification"
vecnintPointer to the destination array.
maxCountlongNumber of elements to read. If it is greater than number of remaining elements then all of them will be read.
Returns
Reset()
IEnumerable<T>.Reset
public void Reset()