Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Support
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
D
djinni
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
cpp-libs
djinni
Commits
a31d4274
Commit
a31d4274
authored
Apr 09, 2015
by
Jacob Potter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regenerate autogenerated files
parent
14e224b6
Changes
4
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
79 additions
and
75 deletions
+79
-75
example/generated-src/objc/TXSTextboxListenerObjcProxy+Private.h
.../generated-src/objc/TXSTextboxListenerObjcProxy+Private.h
+14
-13
example/generated-src/objc/TXSTextboxListenerObjcProxy.mm
example/generated-src/objc/TXSTextboxListenerObjcProxy.mm
+23
-22
test-suite/generated-src/objc/DBClientInterfaceObjcProxy+Private.h
...e/generated-src/objc/DBClientInterfaceObjcProxy+Private.h
+14
-13
test-suite/generated-src/objc/DBClientInterfaceObjcProxy.mm
test-suite/generated-src/objc/DBClientInterfaceObjcProxy.mm
+28
-27
No files found.
example/generated-src/objc/TXSTextboxListenerObjcProxy+Private.h
View file @
a31d4274
...
...
@@ -7,18 +7,19 @@
#import <Foundation/Foundation.h>
#include <memory>
namespace
djinni_generated
namespace
djinni_generated
{
class
TextboxListenerObjcProxy
final
:
public
::
textsort
::
TextboxListener
{
class
TextboxListenerObjcProxy
final
:
public
::
textsort
::
TextboxListener
{
public:
id
<
TXSTextboxListener
>
objcRef
;
TextboxListenerObjcProxy
(
id
objcRef
);
virtual
~
TextboxListenerObjcProxy
()
override
;
static
std
::
shared_ptr
<::
textsort
::
TextboxListener
>
textbox_listener_with_objc
(
id
objcRef
);
virtual
void
update
(
const
::
textsort
::
ItemList
&
items
)
override
;
public:
id
<
TXSTextboxListener
>
objcRef
;
TextboxListenerObjcProxy
(
id
objcRef
);
virtual
~
TextboxListenerObjcProxy
()
override
;
static
std
::
shared_ptr
<::
textsort
::
TextboxListener
>
textbox_listener_with_objc
(
id
objcRef
);
virtual
void
update
(
const
::
textsort
::
ItemList
&
items
)
override
;
private:
TextboxListenerObjcProxy
()
{};
};
private:
TextboxListenerObjcProxy
()
{};
};
}
}
// namespace djinni_generated
example/generated-src/objc/TXSTextboxListenerObjcProxy.mm
View file @
a31d4274
...
...
@@ -5,31 +5,32 @@
#import "TXSItemList+Private.h"
#import "TXSTextboxListener.h"
namespace
djinni_generated
namespace
djinni_generated
{
TextboxListenerObjcProxy
::
TextboxListenerObjcProxy
(
id
objcRef
)
{
TextboxListenerObjcProxy
::
TextboxListenerObjcProxy
(
id
objcRef
)
{
assert
([[
objcRef
class
]
conformsToProtocol
:
@protocol
(
TXSTextboxListener
)]);
this
->
objcRef
=
objcRef
;
}
assert
([[
objcRef
class
]
conformsToProtocol
:
@protocol
(
TXSTextboxListener
)]);
this
->
objcRef
=
objcRef
;
}
TextboxListenerObjcProxy
::~
TextboxListenerObjcProxy
()
{
djinni
::
DbxObjcWrapperCache
<
TextboxListenerObjcProxy
>
&
cache
=
djinni
::
DbxObjcWrapperCache
<
TextboxListenerObjcProxy
>::
getInstance
();
cache
.
remove
(
objcRef
);
}
TextboxListenerObjcProxy
::~
TextboxListenerObjcProxy
()
{
djinni
::
DbxObjcWrapperCache
<
TextboxListenerObjcProxy
>
&
cache
=
djinni
::
DbxObjcWrapperCache
<
TextboxListenerObjcProxy
>::
getInstance
();
cache
.
remove
(
objcRef
);
}
std
::
shared_ptr
<::
textsort
::
TextboxListener
>
TextboxListenerObjcProxy
::
textbox_listener_with_objc
(
id
objcRef
)
{
djinni
::
DbxObjcWrapperCache
<
TextboxListenerObjcProxy
>
&
cache
=
djinni
::
DbxObjcWrapperCache
<
TextboxListenerObjcProxy
>::
getInstance
();
return
static_cast
<
std
::
shared_ptr
<::
textsort
::
TextboxListener
>>
(
cache
.
get
(
objcRef
));
}
std
::
shared_ptr
<::
textsort
::
TextboxListener
>
TextboxListenerObjcProxy
::
textbox_listener_with_objc
(
id
objcRef
)
{
djinni
::
DbxObjcWrapperCache
<
TextboxListenerObjcProxy
>
&
cache
=
djinni
::
DbxObjcWrapperCache
<
TextboxListenerObjcProxy
>::
getInstance
();
return
static_cast
<
std
::
shared_ptr
<::
textsort
::
TextboxListener
>>
(
cache
.
get
(
objcRef
));
}
void
TextboxListenerObjcProxy
::
update
(
const
::
textsort
::
ItemList
&
items
)
{
@autoreleasepool
{
TXSItemList
*
cpp_items
=
[[
TXSItemList
alloc
]
initWithCppItemList
:
items
];
[
objcRef
update
:
cpp_items
];
}
void
TextboxListenerObjcProxy
::
update
(
const
::
textsort
::
ItemList
&
items
)
{
@autoreleasepool
{
TXSItemList
*
cpp_items
=
[[
TXSItemList
alloc
]
initWithCppItemList
:
items
];
[
objcRef
update
:
cpp_items
];
}
}
}
// namespace djinni_generated
test-suite/generated-src/objc/DBClientInterfaceObjcProxy+Private.h
View file @
a31d4274
...
...
@@ -7,18 +7,19 @@
#import <Foundation/Foundation.h>
#include <memory>
namespace
djinni_generated
namespace
djinni_generated
{
class
ClientInterfaceObjcProxy
final
:
public
ClientInterface
{
class
ClientInterfaceObjcProxy
final
:
public
ClientInterface
{
public:
id
<
DBClientInterface
>
objcRef
;
ClientInterfaceObjcProxy
(
id
objcRef
);
virtual
~
ClientInterfaceObjcProxy
()
override
;
static
std
::
shared_ptr
<
ClientInterface
>
client_interface_with_objc
(
id
objcRef
);
virtual
ClientReturnedRecord
get_record
(
int64_t
record_id
,
const
std
::
string
&
utf8string
)
override
;
public:
id
<
DBClientInterface
>
objcRef
;
ClientInterfaceObjcProxy
(
id
objcRef
);
virtual
~
ClientInterfaceObjcProxy
()
override
;
static
std
::
shared_ptr
<
ClientInterface
>
client_interface_with_objc
(
id
objcRef
);
virtual
ClientReturnedRecord
get_record
(
int64_t
record_id
,
const
std
::
string
&
utf8string
)
override
;
private:
ClientInterfaceObjcProxy
()
{};
};
private:
ClientInterfaceObjcProxy
()
{};
};
}
}
// namespace djinni_generated
test-suite/generated-src/objc/DBClientInterfaceObjcProxy.mm
View file @
a31d4274
...
...
@@ -5,36 +5,37 @@
#import "DBClientInterface.h"
#import "DBClientReturnedRecord+Private.h"
namespace
djinni_generated
namespace
djinni_generated
{
ClientInterfaceObjcProxy
::
ClientInterfaceObjcProxy
(
id
objcRef
)
{
ClientInterfaceObjcProxy
::
ClientInterfaceObjcProxy
(
id
objcRef
)
{
assert
([[
objcRef
class
]
conformsToProtocol
:
@protocol
(
DBClientInterface
)]);
this
->
objcRef
=
objcRef
;
}
assert
([[
objcRef
class
]
conformsToProtocol
:
@protocol
(
DBClientInterface
)]);
this
->
objcRef
=
objcRef
;
}
ClientInterfaceObjcProxy
::~
ClientInterfaceObjcProxy
()
{
djinni
::
DbxObjcWrapperCache
<
ClientInterfaceObjcProxy
>
&
cache
=
djinni
::
DbxObjcWrapperCache
<
ClientInterfaceObjcProxy
>::
getInstance
();
cache
.
remove
(
objcRef
);
}
ClientInterfaceObjcProxy
::~
ClientInterfaceObjcProxy
()
{
djinni
::
DbxObjcWrapperCache
<
ClientInterfaceObjcProxy
>
&
cache
=
djinni
::
DbxObjcWrapperCache
<
ClientInterfaceObjcProxy
>::
getInstance
();
cache
.
remove
(
objcRef
);
}
std
::
shared_ptr
<
ClientInterface
>
ClientInterfaceObjcProxy
::
client_interface_with_objc
(
id
objcRef
)
{
djinni
::
DbxObjcWrapperCache
<
ClientInterfaceObjcProxy
>
&
cache
=
djinni
::
DbxObjcWrapperCache
<
ClientInterfaceObjcProxy
>::
getInstance
();
return
static_cast
<
std
::
shared_ptr
<
ClientInterface
>>
(
cache
.
get
(
objcRef
));
}
std
::
shared_ptr
<
ClientInterface
>
ClientInterfaceObjcProxy
::
client_interface_with_objc
(
id
objcRef
)
{
djinni
::
DbxObjcWrapperCache
<
ClientInterfaceObjcProxy
>
&
cache
=
djinni
::
DbxObjcWrapperCache
<
ClientInterfaceObjcProxy
>::
getInstance
();
return
static_cast
<
std
::
shared_ptr
<
ClientInterface
>>
(
cache
.
get
(
objcRef
));
}
ClientReturnedRecord
ClientInterfaceObjcProxy
::
get_record
(
int64_t
record_id
,
const
std
::
string
&
utf8string
)
{
@autoreleasepool
{
int64_t
cpp_record_id
=
record_id
;
NSString
*
cpp_utf8string
=
[[
NSString
alloc
]
initWithBytes
:
utf8string
.
data
()
length:
utf8string
.
length
()
encoding:
NSUTF8StringEncoding
];
DBClientReturnedRecord
*
objcRet
=
[
objcRef
getRecord
:
cpp_record_id
utf8string
:
cpp_utf8string
];
ClientReturnedRecord
cppRet
=
std
::
move
([
objcRet
cppClientReturnedRecord
]);
return
cppRet
;
}
ClientReturnedRecord
ClientInterfaceObjcProxy
::
get_record
(
int64_t
record_id
,
const
std
::
string
&
utf8string
)
{
@autoreleasepool
{
int64_t
cpp_record_id
=
record_id
;
NSString
*
cpp_utf8string
=
[[
NSString
alloc
]
initWithBytes
:
utf8string
.
data
()
length:
utf8string
.
length
()
encoding:
NSUTF8StringEncoding
];
DBClientReturnedRecord
*
objcRet
=
[
objcRef
getRecord
:
cpp_record_id
utf8string
:
cpp_utf8string
];
ClientReturnedRecord
cppRet
=
std
::
move
([
objcRet
cppClientReturnedRecord
]);
return
cppRet
;
}
}
}
// namespace djinni_generated
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment