remove Impl from proxy
This commit is contained in:
@@ -1,19 +1,11 @@
|
||||
#include "{{ cls.name }}.proxy.h"
|
||||
|
||||
class {{ cls.name }}Proxy::Impl {
|
||||
public:
|
||||
explicit Impl(ProxyMarshaller& m)
|
||||
: client(m) {}
|
||||
|
||||
ProxyMarshaller& client;
|
||||
};
|
||||
|
||||
{{ cls.name }}Proxy::{{ cls.name }}Proxy(ProxyMarshaller& marshaller)
|
||||
: impl(new Impl(marshaller)) {}
|
||||
: impl(marshaller) {}
|
||||
|
||||
{% for m in cls.methods %}
|
||||
{{ m.return_type }} {{ cls.name }}Proxy::{{ m.name }}({% for a in m.args %}{{ a.type }} {{ a.name }}{% if not loop.last %}, {% endif %}{% endfor %}) {
|
||||
return impl->client.call<{{ m.return_type }}>("{{ cls.name }}.{{ m.name }}"{% for a in m.args %}, {{ a.name }}{% endfor %});
|
||||
return impl.call<{{ m.return_type }}>("{{ cls.name }}.{{ m.name }}"{% for a in m.args %}, {{ a.name }}{% endfor %});
|
||||
}
|
||||
{% endfor %}
|
||||
|
||||
|
||||
@@ -10,6 +10,5 @@ public:
|
||||
{% endfor %}
|
||||
|
||||
private:
|
||||
class Impl;
|
||||
Impl* impl;
|
||||
ProxyMarshaller& impl;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user