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

Method get_ctx

lib_acl_cpp/src/stream/stream.cpp:258–272  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

256}
257
258void* stream::get_ctx(const char* key /* = NULL */) const
259{
260 if (key == NULL || *key == 0) {
261 return default_ctx_;
262 }
263 if (ctx_table_ == NULL) {
264 return NULL;
265 }
266 std::map<string, void*>::const_iterator it = ctx_table_->find(key);
267 if (it != ctx_table_->end()) {
268 return it->second;
269 } else {
270 return NULL;
271 }
272}
273
274void* stream::del_ctx(const char* key /* = NULL */)
275{

Callers 15

main.cppFile · 0.45
thread_on_readMethod · 0.45
thread_on_closeMethod · 0.45
thread_on_readMethod · 0.45
thread_on_closeMethod · 0.45
thread_on_readMethod · 0.45
thread_on_closeMethod · 0.45
thread_on_readMethod · 0.45
thread_on_closeMethod · 0.45
thread_on_readMethod · 0.45
thread_on_closeMethod · 0.45
thread_on_readMethod · 0.45

Calls 2

findMethod · 0.45
endMethod · 0.45

Tested by

no test coverage detected