MCPcopy Create free account
hub / github.com/catboost/catboost / Next

Method Next

util/folder/iterator.h:80–96  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

78 }
79
80 inline FTSENT* Next() {
81 FTSENT* ret = yfts_read(FileTree_.Get());
82
83 if (ret) {
84 if ((size_t)(ret->fts_level + 1) > Options_.MaxLevel) {
85 yfts_set(FileTree_.Get(), ret, FTS_SKIP);
86 }
87 } else {
88 const int err = LastSystemError();
89
90 if (err) {
91 ythrow TError(err) << "error while iterating " << Path_;
92 }
93 }
94
95 return ret;
96 }
97
98 inline void Skip(FTSENT* ent) {
99 yfts_set(FileTree_.Get(), ent, FTS_SKIP);

Callers 4

DoRecurseMethod · 0.45
TestSkipMethod · 0.45
TestSimpleMethod · 0.45
TestPrefixMethod · 0.45

Calls 4

yfts_readFunction · 0.85
yfts_setFunction · 0.85
LastSystemErrorFunction · 0.85
GetMethod · 0.45

Tested by 3

TestSkipMethod · 0.36
TestSimpleMethod · 0.36
TestPrefixMethod · 0.36