}
};
-template <typename Internal_, typename Value_>
-struct CYValue :
- CYPrivate<Internal_>
-{
- Value_ value_;
-
- CYValue() {
- }
-
- CYValue(const Value_ &value) :
- value_(value)
- {
- }
-
- CYValue(const CYValue &rhs) :
- value_(rhs.value_)
- {
- }
-};
-
template <typename Internal_>
JSClassRef CYPrivate<Internal_>::Class_;
namespace cy {
struct Functor :
- CYValue<Functor, void (*)()>
+ CYPrivate<Functor>
{
private:
void set() {
}
public:
+ void (*value_)();
bool variadic_;
sig::Signature signature_;
ffi_cif cif_;
Functor(void (*value)(), bool variadic, const sig::Signature &signature) :
- CYValue(value),
+ value_(value),
variadic_(variadic)
{
sig::Copy(*pool_, signature_, signature);
}
Functor(void (*value)(), const char *encoding) :
- CYValue(value),
+ value_(value),
variadic_(false)
{
sig::Parse(*pool_, &signature_, encoding, &Structor_);