@Namespace(value="cv") @NoOffset @Properties(inherit=opencv_core.class) public class FileNodeIterator extends Pointer
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.
Pointer.CustomDeallocator, Pointer.Deallocator, Pointer.NativeDeallocator, Pointer.ReferenceCounter
Constructor and Description |
---|
FileNodeIterator()
\brief The constructors.
|
FileNodeIterator(FileNode node,
boolean seekEnd)
\overload
|
FileNodeIterator(FileNodeIterator it)
\overload
|
FileNodeIterator(long size)
Native array allocator.
|
FileNodeIterator(Pointer p)
Pointer cast constructor.
|
Modifier and Type | Method and Description |
---|---|
FileNodeIterator |
addPut(int ofs)
moves iterator forward by the specified offset (possibly negative)
|
boolean |
equalTo(FileNodeIterator it) |
FileNodeIterator |
getPointer(long i) |
FileNodeIterator |
increment()
moves iterator to the next node
|
FileNodeIterator |
increment(int arg0)
moves iterator to the next node
|
FileNode |
multiply()
returns the currently observed element
|
FileNodeIterator |
position(long position) |
FileNodeIterator |
put(FileNodeIterator it) |
FileNodeIterator |
readRaw(BytePointer fmt,
Pointer vec) |
FileNodeIterator |
readRaw(BytePointer fmt,
Pointer vec,
long len)
\brief Reads node elements to the buffer with the specified format.
|
FileNodeIterator |
readRaw(String fmt,
Pointer vec) |
FileNodeIterator |
readRaw(String fmt,
Pointer vec,
long len) |
long |
remaining()
returns the number of remaining (not read yet) elements
|
address, asBuffer, asByteBuffer, availablePhysicalBytes, calloc, capacity, capacity, close, deallocate, deallocate, deallocateReferences, deallocator, deallocator, equals, fill, formatBytes, free, getDirectBufferAddress, getPointer, getPointer, getPointer, hashCode, interruptDeallocatorThread, isNull, isNull, limit, limit, malloc, maxBytes, maxPhysicalBytes, memchr, memcmp, memcpy, memmove, memset, offsetAddress, offsetof, offsetof, parseBytes, physicalBytes, physicalBytesInaccurate, position, put, realloc, referenceCount, releaseReference, retainReference, setNull, sizeof, sizeof, toString, totalBytes, totalCount, totalPhysicalBytes, withDeallocator, zero
public FileNodeIterator(Pointer p)
Pointer(Pointer)
.public FileNodeIterator(long size)
Pointer.position(long)
.public FileNodeIterator()
These constructors are used to create a default iterator, set it to specific element in a file node or construct it from another iterator.
public FileNodeIterator(@Const @ByRef FileNode node, @Cast(value="bool") boolean seekEnd)
node
- File node - the collection to iterate over;
it can be a scalar (equivalent to 1-element collection) or "none" (equivalent to empty collection).seekEnd
- - true if iterator needs to be set after the last element of the node;
that is:
node.begin() => FileNodeIterator(node, false)
node.end() => FileNodeIterator(node, true)public FileNodeIterator(@Const @ByRef FileNodeIterator it)
it
- Iterator to be used as initialization for the created iterator.public FileNodeIterator position(long position)
public FileNodeIterator getPointer(long i)
getPointer
in class Pointer
@ByRef @Name(value="operator =") public FileNodeIterator put(@Const @ByRef FileNodeIterator it)
@ByVal @Name(value="operator *") public FileNode multiply()
@ByRef @Name(value="operator ++") public FileNodeIterator increment()
@ByVal @Name(value="operator ++") public FileNodeIterator increment(int arg0)
@ByRef @Name(value="operator +=") public FileNodeIterator addPut(int ofs)
@ByRef public FileNodeIterator readRaw(@opencv_core.Str BytePointer fmt, Pointer vec, @Cast(value="size_t") long len)
Usually it is more convenient to use operator >>
instead of this method.
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.@ByRef public FileNodeIterator readRaw(@opencv_core.Str BytePointer fmt, Pointer vec)
@ByRef public FileNodeIterator readRaw(@opencv_core.Str String fmt, Pointer vec, @Cast(value="size_t") long len)
@ByRef public FileNodeIterator readRaw(@opencv_core.Str String fmt, Pointer vec)
@Cast(value="size_t") public long remaining()
@Cast(value="bool") public boolean equalTo(@Const @ByRef FileNodeIterator it)
Copyright © 2024. All rights reserved.