Commit 53236b6c authored by Andrew Twyman's avatar Andrew Twyman

Remove stray generated files from a cherry-pick.

parent e6a54da3
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from textsort.djinni
#import "TXSSortItems+Private.h"
#import "TXSSortItems.h"
#import "DJICppWrapperCache+Private.h"
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#import "TXSSortItems+Private.h"
#import "TXSTextboxListener+Private.h"
#import "collections/generated-src/objc/TXSItemList+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
@interface TXSSortItems ()
- (id)initWithCpp:(const std::shared_ptr<::textsort::SortItems>&)cppRef;
@end
@implementation TXSSortItems {
::djinni::CppProxyCache::Handle<std::shared_ptr<::textsort::SortItems>> _cppRefHandle;
}
- (id)initWithCpp:(const std::shared_ptr<::textsort::SortItems>&)cppRef
{
if (self = [super init]) {
_cppRefHandle.assign(cppRef);
}
return self;
}
- (void)sort:(TXSSortOrder)order
items:(nonnull TXSItemList *)items {
try {
_cppRefHandle.get()->sort(::djinni::Enum<::textsort::sort_order, TXSSortOrder>::toCpp(order),
::djinni_generated::ItemList::toCpp(items));
} DJINNI_TRANSLATE_EXCEPTIONS()
}
+ (nullable TXSSortItems *)createWithListener:(nullable id<TXSTextboxListener>)listener {
try {
auto r = ::textsort::SortItems::create_with_listener(::djinni_generated::TextboxListener::toCpp(listener));
return ::djinni_generated::SortItems::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
+ (nonnull TXSItemList *)runSort:(nonnull TXSItemList *)items {
try {
auto r = ::textsort::SortItems::run_sort(::djinni_generated::ItemList::toCpp(items));
return ::djinni_generated::ItemList::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
namespace djinni_generated {
auto SortItems::toCpp(ObjcType objc) -> CppType
{
if (!objc) {
return nullptr;
}
return objc->_cppRefHandle.get();
}
auto SortItems::fromCppOpt(const CppOptType& cpp) -> ObjcType
{
if (!cpp) {
return nil;
}
return ::djinni::get_cpp_proxy<TXSSortItems>(cpp);
}
} // namespace djinni_generated
@end
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from textsort.djinni
#import "TXSTextboxListener+Private.h"
#import "TXSTextboxListener.h"
#import "DJIObjcWrapperCache+Private.h"
#import "collections/generated-src/objc/TXSItemList+Private.h"
#include <stdexcept>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
namespace djinni_generated {
class TextboxListener::ObjcProxy final
: public ::textsort::TextboxListener
, public ::djinni::ObjcProxyCache::Handle<ObjcType>
{
public:
using Handle::Handle;
void update(const ::collections::ItemList & c_items) override
{
@autoreleasepool {
[Handle::get() update:(::djinni_generated::ItemList::fromCpp(c_items))];
}
}
};
} // namespace djinni_generated
namespace djinni_generated {
auto TextboxListener::toCpp(ObjcType objc) -> CppType
{
if (!objc) {
return nullptr;
}
return ::djinni::get_objc_proxy<ObjcProxy>(objc);
}
auto TextboxListener::fromCppOpt(const CppOptType& cpp) -> ObjcType
{
if (!cpp) {
return nil;
}
return dynamic_cast<ObjcProxy&>(*cpp).Handle::get();
}
} // namespace djinni_generated
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from class1.djinni
#import "DBClass1+Private.h"
#import "DBClass1.h"
#import "DBClass1+Private.h"
#import "DBInnerClass+Private.h"
#import "DJICppWrapperCache+Private.h"
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#import "djinni-packages/package2/generated-src/objc/DBClass2+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
@interface DBClass1 ()
- (id)initWithCpp:(const std::shared_ptr<::package1::Class1>&)cppRef;
@end
@implementation DBClass1 {
::djinni::CppProxyCache::Handle<std::shared_ptr<::package1::Class1>> _cppRefHandle;
}
- (id)initWithCpp:(const std::shared_ptr<::package1::Class1>&)cppRef
{
if (self = [super init]) {
_cppRefHandle.assign(cppRef);
}
return self;
}
- (nonnull NSString *)getName {
try {
auto r = _cppRefHandle.get()->get_name();
return ::djinni::String::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
- (nonnull NSString *)getInnerClassName {
try {
auto r = _cppRefHandle.get()->get_inner_class_name();
return ::djinni::String::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
- (nullable DBClass2 *)getClass2 {
try {
auto r = _cppRefHandle.get()->get_class2();
return ::djinni_generated::Class2::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
+ (nullable DBClass1 *)createWithInnerClass:(nullable id<DBInnerClass>)innerClass {
try {
auto r = ::package1::Class1::create_with_inner_class(::djinni_generated::InnerClass::toCpp(innerClass));
return ::djinni_generated::Class1::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
namespace djinni_generated {
auto Class1::toCpp(ObjcType objc) -> CppType
{
if (!objc) {
return nullptr;
}
return objc->_cppRefHandle.get();
}
auto Class1::fromCppOpt(const CppOptType& cpp) -> ObjcType
{
if (!cpp) {
return nil;
}
return ::djinni::get_cpp_proxy<DBClass1>(cpp);
}
} // namespace djinni_generated
@end
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from inner_class.djinni
#import "DBInnerClass+Private.h"
#import "DBInnerClass.h"
#import "DJIMarshal+Private.h"
#import "DJIObjcWrapperCache+Private.h"
#include <stdexcept>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
namespace djinni_generated {
class InnerClass::ObjcProxy final
: public ::package1::InnerClass
, public ::djinni::ObjcProxyCache::Handle<ObjcType>
{
public:
using Handle::Handle;
std::string get_name() override
{
@autoreleasepool {
auto r = [Handle::get() getName];
return ::djinni::String::toCpp(r);
}
}
};
} // namespace djinni_generated
namespace djinni_generated {
auto InnerClass::toCpp(ObjcType objc) -> CppType
{
if (!objc) {
return nullptr;
}
return ::djinni::get_objc_proxy<ObjcProxy>(objc);
}
auto InnerClass::fromCppOpt(const CppOptType& cpp) -> ObjcType
{
if (!cpp) {
return nil;
}
return dynamic_cast<ObjcProxy&>(*cpp).Handle::get();
}
} // namespace djinni_generated
// AUTOGENERATED FILE - DO NOT MODIFY!
// This file generated by Djinni from class2.djinni
#import "DBClass2+Private.h"
#import "DBClass2.h"
#import "DJICppWrapperCache+Private.h"
#import "DJIError.h"
#import "DJIMarshal+Private.h"
#include <exception>
#include <stdexcept>
#include <utility>
static_assert(__has_feature(objc_arc), "Djinni requires ARC to be enabled for this file");
@interface DBClass2 ()
- (id)initWithCpp:(const std::shared_ptr<::package2::Class2>&)cppRef;
@end
@implementation DBClass2 {
::djinni::CppProxyCache::Handle<std::shared_ptr<::package2::Class2>> _cppRefHandle;
}
- (id)initWithCpp:(const std::shared_ptr<::package2::Class2>&)cppRef
{
if (self = [super init]) {
_cppRefHandle.assign(cppRef);
}
return self;
}
- (nonnull NSString *)getName {
try {
auto r = _cppRefHandle.get()->get_name();
return ::djinni::String::fromCpp(r);
} DJINNI_TRANSLATE_EXCEPTIONS()
}
namespace djinni_generated {
auto Class2::toCpp(ObjcType objc) -> CppType
{
if (!objc) {
return nullptr;
}
return objc->_cppRefHandle.get();
}
auto Class2::fromCppOpt(const CppOptType& cpp) -> ObjcType
{
if (!cpp) {
return nil;
}
return ::djinni::get_cpp_proxy<DBClass2>(cpp);
}
} // namespace djinni_generated
@end
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment