MCPcopy Create free account
hub / github.com/acl-dev/acl / first_node

Method first_node

lib_acl_cpp/src/stdlib/token_tree.cpp:107–119  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

105}
106
107const token_node* token_tree::first_node()
108{
109 if (iter_ == NULL) {
110 iter_ = (ACL_ITER *) acl_mymalloc(sizeof(ACL_ITER));
111 }
112
113 ACL_TOKEN* token = tree_->iter_head(iter_, tree_);
114 if (token == NULL) {
115 return NULL;
116 }
117 node_.set_node(token, this);
118 return &node_;
119}
120
121const token_node* token_tree::next_node()
122{

Callers

nothing calls this directly

Calls 1

set_nodeMethod · 0.80

Tested by

no test coverage detected