mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 15:23:05 +04:00
Merge remote-tracking branch 'upstream/3.4' into merge-3.4
This commit is contained in:
@@ -2061,6 +2061,14 @@ FileNode::FileNode(const FileNode& node)
|
||||
ofs = node.ofs;
|
||||
}
|
||||
|
||||
FileNode& FileNode::operator=(const FileNode& node)
|
||||
{
|
||||
fs = node.fs;
|
||||
blockIdx = node.blockIdx;
|
||||
ofs = node.ofs;
|
||||
return *this;
|
||||
}
|
||||
|
||||
FileNode FileNode::operator[](const std::string& nodename) const
|
||||
{
|
||||
if(!fs)
|
||||
@@ -2403,6 +2411,17 @@ FileNodeIterator::FileNodeIterator(const FileNodeIterator& it)
|
||||
idx = it.idx;
|
||||
}
|
||||
|
||||
FileNodeIterator& FileNodeIterator::operator=(const FileNodeIterator& it)
|
||||
{
|
||||
fs = it.fs;
|
||||
blockIdx = it.blockIdx;
|
||||
ofs = it.ofs;
|
||||
blockSize = it.blockSize;
|
||||
nodeNElems = it.nodeNElems;
|
||||
idx = it.idx;
|
||||
return *this;
|
||||
}
|
||||
|
||||
FileNode FileNodeIterator::operator *() const
|
||||
{
|
||||
return FileNode(idx < nodeNElems ? fs : 0, blockIdx, ofs);
|
||||
|
||||
Reference in New Issue
Block a user