2016-05-23 08:33:37 -07:00
|
|
|
|
2016-06-05 22:54:36 -07:00
|
|
|
#ifdef HAVE_CONFIG_H
|
|
|
|
#include "config.h"
|
|
|
|
#endif
|
|
|
|
|
|
|
|
#include <Eina.h>
|
2016-05-23 08:33:37 -07:00
|
|
|
#include <Eo.h>
|
|
|
|
|
|
|
|
#include "complex.eo.h"
|
|
|
|
#include "complex.eo.hh"
|
2016-05-23 13:34:50 -07:00
|
|
|
|
|
|
|
template <typename T, typename U>
|
2016-05-26 12:47:20 -07:00
|
|
|
struct test_return_type;
|
|
|
|
|
|
|
|
template <typename T, typename R, typename U>
|
|
|
|
struct test_return_type<R(T::*)(), U>
|
2016-05-23 13:34:50 -07:00
|
|
|
{
|
2016-05-26 12:47:20 -07:00
|
|
|
static_assert(std::is_same<R, U>::value, "Wrong type");
|
|
|
|
};
|
|
|
|
template <typename T, typename R, typename U>
|
|
|
|
struct test_return_type<R(T::*)() const, U>
|
|
|
|
{
|
|
|
|
static_assert(std::is_same<R, U>::value, "Wrong type");
|
2016-05-23 13:34:50 -07:00
|
|
|
};
|
|
|
|
|
|
|
|
template <typename T, typename U>
|
2016-05-26 12:47:20 -07:00
|
|
|
struct test_param_type;
|
|
|
|
|
|
|
|
template <typename T, typename P, typename U>
|
|
|
|
struct test_param_type<void(T::*)(P) const, U>
|
2016-05-23 13:34:50 -07:00
|
|
|
{
|
2016-05-26 12:47:20 -07:00
|
|
|
static_assert(std::is_same<P, U>::value, "Wrong type");
|
|
|
|
};
|
|
|
|
template <typename T, typename P, typename U>
|
|
|
|
struct test_param_type<void(T::*)(P), U>
|
|
|
|
{
|
|
|
|
static_assert(std::is_same<P, U>::value, "Wrong type");
|
2016-05-23 13:34:50 -07:00
|
|
|
};
|
|
|
|
|
2018-11-12 06:43:13 -08:00
|
|
|
test_param_type<decltype( & nonamespace::Complex::inclasscont ), efl::eina::range_list<efl::Object>> inclasscont;
|
2019-07-08 07:15:41 -07:00
|
|
|
test_param_type<decltype( & nonamespace::Complex::incontcont ), efl::eina::range_list<efl::eina::range_list<::efl::eina::string_view> >> incontcont;
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::incontcontown ), efl::eina::list<efl::eina::range_list<::efl::eina::string_view> >const&> incontcontown;
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::incontowncontown ), efl::eina::list<efl::eina::list<::efl::eina::string_view> >const&> incontowncontown;
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::incontowncont ), efl::eina::range_list<efl::eina::list<::efl::eina::string_view> >> incontowncont;
|
2018-11-12 06:43:13 -08:00
|
|
|
test_param_type<decltype( & nonamespace::Complex::instringcont ), efl::eina::range_list<efl::eina::string_view>> instringcont;
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::instringowncont ), efl::eina::range_list<efl::eina::string_view>> instringowncont;
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::instringcontown ), efl::eina::list<efl::eina::string_view>const&> instringcontown;
|
|
|
|
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::outclasscont ), efl::eina::range_list<efl::Object>&> outclasscont;
|
2019-07-08 07:15:41 -07:00
|
|
|
test_param_type<decltype( & nonamespace::Complex::outcontcont ), efl::eina::range_list<efl::eina::range_list<::efl::eina::string_view> >&> outcontcont;
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::outcontcontown ), efl::eina::list<efl::eina::range_list<::efl::eina::string_view> >&> outcontcontown;
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::outcontowncontown ), efl::eina::list<efl::eina::list<::efl::eina::string_view> >&> outcontowncontown;
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::outcontowncont ), efl::eina::range_list<efl::eina::list<::efl::eina::string_view> >&> outcontowncont;
|
2018-11-12 06:43:13 -08:00
|
|
|
test_param_type<decltype( & nonamespace::Complex::outstringcont ), efl::eina::range_list<efl::eina::string_view>&> outstringcont;
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::outstringowncont ), efl::eina::range_list<efl::eina::string_view>&> outstringowncont;
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::outstringcontown ), efl::eina::list<efl::eina::string_view>&> outstringcontown;
|
|
|
|
|
2019-07-08 07:15:41 -07:00
|
|
|
test_param_type<decltype( & nonamespace::Complex::foo ), efl::eina::range_list<::efl::eina::string_view> > foo;
|
|
|
|
test_return_type<decltype( & nonamespace::Complex::bar ), efl::eina::range_array<::efl::eina::string_view> > bar;
|
2018-11-12 06:43:13 -08:00
|
|
|
test_return_type<decltype( & nonamespace::Complex::wrapper_r ), nonamespace::Complex> wrapper_r;
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::wrapper_in ), nonamespace::Complex> wrapper_in;
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::wrapper_inout ), nonamespace::Complex&> wrapper_inout;
|
|
|
|
test_param_type<decltype( & nonamespace::Complex::wrapper_out ), nonamespace::Complex&> wrapper_out;
|