1 #ifndef CYCRIPT_OBJECTIVEC_INTERNAL_HPP
2 #define CYCRIPT_OBJECTIVEC_INTERNAL_HPP
4 #include "Internal.hpp"
6 struct Selector_privateData :
9 _finline Selector_privateData(SEL value) :
14 _finline SEL GetValue() const {
15 return reinterpret_cast<SEL>(value_);
18 virtual Type_privateData *GetType() const;
27 Uninitialized = (1 << 1),
32 _finline Instance(id value, Flags flags) :
40 static JSObjectRef Make(JSContextRef context, id object, Flags flags = None);
42 _finline id GetValue() const {
43 return reinterpret_cast<id>(value_);
46 _finline bool IsUninitialized() const {
47 return (flags_ & Uninitialized) != 0;
50 virtual Type_privateData *GetType() const;
59 _finline Super(id value, Class _class) :
60 Instance(value, Instance::Transient),
65 static JSObjectRef Make(JSContextRef context, id object, Class _class);
71 _finline Messages(Class value) :
76 static JSObjectRef Make(JSContextRef context, Class _class, bool array = false);
78 _finline Class GetValue() const {
79 return reinterpret_cast<Class>(value_);
86 _finline Internal(id value, JSContextRef context, JSObjectRef owner) :
87 CYOwned(value, context, owner)
91 static JSObjectRef Make(JSContextRef context, id object, JSObjectRef owner);
93 _finline id GetValue() const {
94 return reinterpret_cast<id>(value_);
98 #endif/*CYCRIPT_OBJECTIVEC_INTERNAL_HPP*/