MCPcopy Create free account
hub / github.com/ddiakopoulos/polymer / add

Method add

libraries/lib-engine/src/core-events.cpp:87–97  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

85 public:
86
87 void add(poly_typeid type, connection_id id, const void * owner, event_handler fn)
88 {
89 tagged_event_handler handler(id, owner, std::move(fn));
90 if (dispatch_count > 0) command_queue.emplace_back(type, std::move(handler));
91 else
92 {
93 assert(handler.id != 0);
94 assert(handler.fn != nullptr);
95 map.emplace(type, std::move(handler));
96 }
97 }
98
99 void remove(poly_typeid type, connection_id id, const void * owner)
100 {

Callers 2

connect_implMethod · 0.45
setup_accelerationMethod · 0.45

Calls 2

emplace_backMethod · 0.80
emplaceMethod · 0.80

Tested by

no test coverage detected