MCPcopy Create free account
hub / github.com/ElementsProject/elements / PushBackCallback

Method PushBackCallback

src/logging.h:202–207  ·  view source on GitHub ↗

Connect a slot to the print signal and return the connection */

Source from the content-addressed store, hash-verified

200
201 /** Connect a slot to the print signal and return the connection */
202 std::list<std::function<void(const std::string&)>>::iterator PushBackCallback(std::function<void(const std::string&)> fun)
203 {
204 StdLockGuard scoped_lock(m_cs);
205 m_print_callbacks.push_back(std::move(fun));
206 return --m_print_callbacks.end();
207 }
208
209 /** Delete a connection */
210 void DeleteCallback(std::list<std::function<void(const std::string&)>>::iterator it)

Callers 3

BOOST_AUTO_TEST_CASEFunction · 0.80
DebugLogHelperMethod · 0.80
BasicTestingSetupMethod · 0.80

Calls 2

push_backMethod · 0.45
endMethod · 0.45

Tested by 3

BOOST_AUTO_TEST_CASEFunction · 0.64
DebugLogHelperMethod · 0.64
BasicTestingSetupMethod · 0.64