mirror of
https://github.com/opencv/opencv.git
synced 2026-07-29 07:13:02 +04:00
Add FileNode::keys() missed during refactoring
This commit is contained in:
@@ -2083,6 +2083,19 @@ FileNode FileNode::operator[](int i) const
|
||||
return *it;
|
||||
}
|
||||
|
||||
std::vector<String> FileNode::keys() const
|
||||
{
|
||||
CV_Assert(isMap());
|
||||
|
||||
std::vector<String> res;
|
||||
res.reserve(size());
|
||||
for (FileNodeIterator it = begin(); it != end(); ++it)
|
||||
{
|
||||
res.push_back((*it).name());
|
||||
}
|
||||
return res;
|
||||
}
|
||||
|
||||
int FileNode::type() const
|
||||
{
|
||||
const uchar* p = ptr();
|
||||
|
||||
Reference in New Issue
Block a user