MCPcopy Create free account
hub / github.com/3rdparty/libprocess / install

Method install

include/process/protobuf.hpp:136–145  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

134 // Installs that take the sender as the first argument.
135 template <typename M>
136 void install(void (T::*method)(const process::UPID&, const M&))
137 {
138 google::protobuf::Message* m = new M();
139 T* t = static_cast<T*>(this);
140 protobufHandlers[m->GetTypeName()] =
141 lambda::bind(&handlerM<M>,
142 t, method,
143 lambda::_1, lambda::_2);
144 delete m;
145 }
146
147 template <typename M>
148 void install(void (T::*method)(const process::UPID&, M&&))

Callers

nothing calls this directly

Calls 1

bindFunction · 0.85

Tested by

no test coverage detected