55 virtual int call(
int arg) = 0;
67 int add(
int a,
int b) {
return a + b; }
70 int mapSize(
const std::map<std::string, std::string>& map) {
return map.size(); }
85 int passFn(std::function<
int()> fn) {
return fn(); }
91 std::function<void()>
m_fn;
98 #endif // MP_TEST_FOO_H std::function< void()> m_fn
int callbackShared(std::shared_ptr< FooCallback > callback, int arg)
int mapSize(const std::map< std::string, std::string > &map)
int callbackSaved(int arg)
FooEnum passEnum(FooEnum foo)
std::shared_ptr< const FooData > FooDataRef
int callbackUnique(std::unique_ptr< FooCallback > callback, int arg)
std::vector< FooDataRef > passDataPointers(std::vector< FooDataRef > values)
virtual int callExtended(int arg)=0
static const int64_t values[]
A selection of numbers that do not trigger int64_t overflow when added/subtracted.
FooMessage passMessage(FooMessage foo)
Functions to serialize / deserialize common bitcoin types.
int callIntFnAsync(int arg)
int passFn(std::function< int()> fn)
FooStruct pass(FooStruct foo)
void saveCallback(std::shared_ptr< FooCallback > callback)
int callback(FooCallback &callback, int arg)
void addOut(int a, int b, int &out)
FooCustom passCustom(FooCustom foo)
virtual ~FooCallback()=default
int callbackExtended(ExtendedCallback &callback, int arg)
FooEmpty passEmpty(FooEmpty foo)
std::vector< char > FooData
void addInOut(int x, int &sum)
std::function< int(int)> m_int_fn
std::vector< bool > vbool
std::shared_ptr< FooCallback > m_callback
virtual int call(int arg)=0
void passMutable(FooMutable &foo)