suppose I have:

----
fun.h
struct A{
int foo1(double);
int foo2(double,int);
};
struct B{/*other stuff*/};
----
fun.cpp
//implements fun.h
----
fun.i
%{
#include "fun.h"
%}

struct A{
search_by_name(foo2);
// should behave as if I entered full signature int foo2(double,int); 
};

Question: is there a way to export a swig method by simply specifying its name instead of full signature, as I did in fun.i ?