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

Method clear

lib_acl_cpp/include/acl_cpp/stdlib/tbox.hpp:60–69  ·  view source on GitHub ↗

* Clear unconsumed message objects in the message queue * @param free_obj {bool} Release message objects by calling delete method */

Source from the content-addressed store, hash-verified

58 * @param free_obj {bool} Release message objects by calling delete method
59 */
60 void clear(bool free_obj = false) {
61 if (free_obj) {
62 for (typename std::list<T*>::iterator it =
63 tbox_.begin(); it != tbox_.end(); ++it) {
64
65 delete *it;
66 }
67 }
68 tbox_.clear();
69 }
70
71 /**
72 * Send message object

Callers 5

check_addrFunction · 0.45
check_idleMethod · 0.45
clearFunction · 0.45
~dns_resFunction · 0.45
runMethod · 0.45

Calls 2

beginMethod · 0.80
endMethod · 0.45

Tested by

no test coverage detected