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

Method Next

src/script/api/script_list.cpp:66–73  ·  view source on GitHub ↗

* Get the next item of the sorter. * @return Optional containing the next item, or std::nullopt when there is none. */

Source from the content-addressed store, hash-verified

64 * @return Optional containing the next item, or std::nullopt when there is none.
65 */
66 std::optional<SQInteger> Next()
67 {
68 if (this->IsEnd()) return std::nullopt;
69
70 std::optional<SQInteger> item_current = this->item_next;
71 this->FindNext();
72 return item_current;
73 }
74
75 /**
76 * See if the sorter has reached the end.

Callers

nothing calls this directly

Calls 2

IsEndMethod · 0.95
FindNextMethod · 0.45

Tested by

no test coverage detected