52 virtual int call(
int arg) = 0;
64 int add(
int a,
int b) {
return a + b; }
65 int mapSize(
const std::map<std::string, std::string>& map) {
return map.size(); }
80 int passFn(std::function<
int()> fn) {
return fn(); }
84 std::function<void()>
m_fn;
virtual int callExtended(int arg)=0
virtual int call(int arg)=0
virtual ~FooCallback()=default
int callbackSaved(int arg)
void passMutable(FooMutable &foo)
FooEmpty passEmpty(FooEmpty foo)
int passFn(std::function< int()> fn)
std::shared_ptr< FooCallback > m_callback
std::function< void()> m_fn
int callbackShared(std::shared_ptr< FooCallback > callback, int arg)
void raise(FooStruct foo)
int callbackUnique(std::unique_ptr< FooCallback > callback, int arg)
FooEnum passEnum(FooEnum foo)
FooMessage passMessage(FooMessage foo)
int callback(FooCallback &callback, int arg)
FooStruct pass(FooStruct foo)
FooCustom passCustom(FooCustom foo)
void saveCallback(std::shared_ptr< FooCallback > callback)
int callbackExtended(ExtendedCallback &callback, int arg)
int mapSize(const std::map< std::string, std::string > &map)
Functions to serialize / deserialize common bitcoin types.
std::vector< bool > vbool