Chris@50
|
1 // Generated by Cap'n Proto compiler, DO NOT EDIT
|
Chris@50
|
2 // source: persistent.capnp
|
Chris@50
|
3
|
Chris@50
|
4 #ifndef CAPNP_INCLUDED_b8630836983feed7_
|
Chris@50
|
5 #define CAPNP_INCLUDED_b8630836983feed7_
|
Chris@50
|
6
|
Chris@50
|
7 #include <capnp/generated-header-support.h>
|
Chris@50
|
8 #if !CAPNP_LITE
|
Chris@50
|
9 #include <capnp/capability.h>
|
Chris@50
|
10 #endif // !CAPNP_LITE
|
Chris@50
|
11
|
Chris@50
|
12 #if CAPNP_VERSION != 6000
|
Chris@50
|
13 #error "Version mismatch between generated code and library headers. You must use the same version of the Cap'n Proto compiler and library."
|
Chris@50
|
14 #endif
|
Chris@50
|
15
|
Chris@50
|
16
|
Chris@50
|
17 namespace capnp {
|
Chris@50
|
18 namespace schemas {
|
Chris@50
|
19
|
Chris@50
|
20 CAPNP_DECLARE_SCHEMA(c8cb212fcd9f5691);
|
Chris@50
|
21 CAPNP_DECLARE_SCHEMA(f76fba59183073a5);
|
Chris@50
|
22 CAPNP_DECLARE_SCHEMA(b76848c18c40efbf);
|
Chris@50
|
23 CAPNP_DECLARE_SCHEMA(84ff286cd00a3ed4);
|
Chris@50
|
24 CAPNP_DECLARE_SCHEMA(f0c2cc1d3909574d);
|
Chris@50
|
25 CAPNP_DECLARE_SCHEMA(ecafa18b482da3aa);
|
Chris@50
|
26 CAPNP_DECLARE_SCHEMA(f622595091cafb67);
|
Chris@50
|
27
|
Chris@50
|
28 } // namespace schemas
|
Chris@50
|
29 } // namespace capnp
|
Chris@50
|
30
|
Chris@50
|
31 namespace capnp {
|
Chris@50
|
32
|
Chris@50
|
33 template <typename SturdyRef = ::capnp::AnyPointer, typename Owner = ::capnp::AnyPointer>
|
Chris@50
|
34 struct Persistent {
|
Chris@50
|
35 Persistent() = delete;
|
Chris@50
|
36
|
Chris@50
|
37 #if !CAPNP_LITE
|
Chris@50
|
38 class Client;
|
Chris@50
|
39 class Server;
|
Chris@50
|
40 #endif // !CAPNP_LITE
|
Chris@50
|
41
|
Chris@50
|
42 struct SaveParams;
|
Chris@50
|
43 struct SaveResults;
|
Chris@50
|
44
|
Chris@50
|
45 #if !CAPNP_LITE
|
Chris@50
|
46 struct _capnpPrivate {
|
Chris@50
|
47 CAPNP_DECLARE_INTERFACE_HEADER(c8cb212fcd9f5691)
|
Chris@50
|
48 static const ::capnp::_::RawBrandedSchema::Scope brandScopes[];
|
Chris@50
|
49 static const ::capnp::_::RawBrandedSchema::Binding brandBindings[];
|
Chris@50
|
50 static const ::capnp::_::RawBrandedSchema::Dependency brandDependencies[];
|
Chris@50
|
51 static const ::capnp::_::RawBrandedSchema specificBrand;
|
Chris@50
|
52 static constexpr ::capnp::_::RawBrandedSchema const* brand = ::capnp::_::ChooseBrand<_capnpPrivate, SturdyRef, Owner>::brand;
|
Chris@50
|
53 };
|
Chris@50
|
54 #endif // !CAPNP_LITE
|
Chris@50
|
55 };
|
Chris@50
|
56
|
Chris@50
|
57 template <typename SturdyRef, typename Owner>
|
Chris@50
|
58 struct Persistent<SturdyRef, Owner>::SaveParams {
|
Chris@50
|
59 SaveParams() = delete;
|
Chris@50
|
60
|
Chris@50
|
61 class Reader;
|
Chris@50
|
62 class Builder;
|
Chris@50
|
63 class Pipeline;
|
Chris@50
|
64
|
Chris@50
|
65 struct _capnpPrivate {
|
Chris@50
|
66 CAPNP_DECLARE_STRUCT_HEADER(f76fba59183073a5, 0, 1)
|
Chris@50
|
67 #if !CAPNP_LITE
|
Chris@50
|
68 static const ::capnp::_::RawBrandedSchema::Scope brandScopes[];
|
Chris@50
|
69 static const ::capnp::_::RawBrandedSchema::Binding brandBindings[];
|
Chris@50
|
70 static const ::capnp::_::RawBrandedSchema specificBrand;
|
Chris@50
|
71 static constexpr ::capnp::_::RawBrandedSchema const* brand = ::capnp::_::ChooseBrand<_capnpPrivate, SturdyRef, Owner>::brand;
|
Chris@50
|
72 #endif // !CAPNP_LITE
|
Chris@50
|
73 };
|
Chris@50
|
74 };
|
Chris@50
|
75
|
Chris@50
|
76 template <typename SturdyRef, typename Owner>
|
Chris@50
|
77 struct Persistent<SturdyRef, Owner>::SaveResults {
|
Chris@50
|
78 SaveResults() = delete;
|
Chris@50
|
79
|
Chris@50
|
80 class Reader;
|
Chris@50
|
81 class Builder;
|
Chris@50
|
82 class Pipeline;
|
Chris@50
|
83
|
Chris@50
|
84 struct _capnpPrivate {
|
Chris@50
|
85 CAPNP_DECLARE_STRUCT_HEADER(b76848c18c40efbf, 0, 1)
|
Chris@50
|
86 #if !CAPNP_LITE
|
Chris@50
|
87 static const ::capnp::_::RawBrandedSchema::Scope brandScopes[];
|
Chris@50
|
88 static const ::capnp::_::RawBrandedSchema::Binding brandBindings[];
|
Chris@50
|
89 static const ::capnp::_::RawBrandedSchema specificBrand;
|
Chris@50
|
90 static constexpr ::capnp::_::RawBrandedSchema const* brand = ::capnp::_::ChooseBrand<_capnpPrivate, SturdyRef, Owner>::brand;
|
Chris@50
|
91 #endif // !CAPNP_LITE
|
Chris@50
|
92 };
|
Chris@50
|
93 };
|
Chris@50
|
94
|
Chris@50
|
95 template <typename InternalRef = ::capnp::AnyPointer, typename ExternalRef = ::capnp::AnyPointer, typename InternalOwner = ::capnp::AnyPointer, typename ExternalOwner = ::capnp::AnyPointer>
|
Chris@50
|
96 struct RealmGateway {
|
Chris@50
|
97 RealmGateway() = delete;
|
Chris@50
|
98
|
Chris@50
|
99 #if !CAPNP_LITE
|
Chris@50
|
100 class Client;
|
Chris@50
|
101 class Server;
|
Chris@50
|
102 #endif // !CAPNP_LITE
|
Chris@50
|
103
|
Chris@50
|
104 struct ImportParams;
|
Chris@50
|
105 struct ExportParams;
|
Chris@50
|
106
|
Chris@50
|
107 #if !CAPNP_LITE
|
Chris@50
|
108 struct _capnpPrivate {
|
Chris@50
|
109 CAPNP_DECLARE_INTERFACE_HEADER(84ff286cd00a3ed4)
|
Chris@50
|
110 static const ::capnp::_::RawBrandedSchema::Scope brandScopes[];
|
Chris@50
|
111 static const ::capnp::_::RawBrandedSchema::Binding brandBindings[];
|
Chris@50
|
112 static const ::capnp::_::RawBrandedSchema::Dependency brandDependencies[];
|
Chris@50
|
113 static const ::capnp::_::RawBrandedSchema specificBrand;
|
Chris@50
|
114 static constexpr ::capnp::_::RawBrandedSchema const* brand = ::capnp::_::ChooseBrand<_capnpPrivate, InternalRef, ExternalRef, InternalOwner, ExternalOwner>::brand;
|
Chris@50
|
115 };
|
Chris@50
|
116 #endif // !CAPNP_LITE
|
Chris@50
|
117 };
|
Chris@50
|
118
|
Chris@50
|
119 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
120 struct RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams {
|
Chris@50
|
121 ImportParams() = delete;
|
Chris@50
|
122
|
Chris@50
|
123 class Reader;
|
Chris@50
|
124 class Builder;
|
Chris@50
|
125 class Pipeline;
|
Chris@50
|
126
|
Chris@50
|
127 struct _capnpPrivate {
|
Chris@50
|
128 CAPNP_DECLARE_STRUCT_HEADER(f0c2cc1d3909574d, 0, 2)
|
Chris@50
|
129 #if !CAPNP_LITE
|
Chris@50
|
130 static const ::capnp::_::RawBrandedSchema::Scope brandScopes[];
|
Chris@50
|
131 static const ::capnp::_::RawBrandedSchema::Binding brandBindings[];
|
Chris@50
|
132 static const ::capnp::_::RawBrandedSchema::Dependency brandDependencies[];
|
Chris@50
|
133 static const ::capnp::_::RawBrandedSchema specificBrand;
|
Chris@50
|
134 static constexpr ::capnp::_::RawBrandedSchema const* brand = ::capnp::_::ChooseBrand<_capnpPrivate, InternalRef, ExternalRef, InternalOwner, ExternalOwner>::brand;
|
Chris@50
|
135 #endif // !CAPNP_LITE
|
Chris@50
|
136 };
|
Chris@50
|
137 };
|
Chris@50
|
138
|
Chris@50
|
139 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
140 struct RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams {
|
Chris@50
|
141 ExportParams() = delete;
|
Chris@50
|
142
|
Chris@50
|
143 class Reader;
|
Chris@50
|
144 class Builder;
|
Chris@50
|
145 class Pipeline;
|
Chris@50
|
146
|
Chris@50
|
147 struct _capnpPrivate {
|
Chris@50
|
148 CAPNP_DECLARE_STRUCT_HEADER(ecafa18b482da3aa, 0, 2)
|
Chris@50
|
149 #if !CAPNP_LITE
|
Chris@50
|
150 static const ::capnp::_::RawBrandedSchema::Scope brandScopes[];
|
Chris@50
|
151 static const ::capnp::_::RawBrandedSchema::Binding brandBindings[];
|
Chris@50
|
152 static const ::capnp::_::RawBrandedSchema::Dependency brandDependencies[];
|
Chris@50
|
153 static const ::capnp::_::RawBrandedSchema specificBrand;
|
Chris@50
|
154 static constexpr ::capnp::_::RawBrandedSchema const* brand = ::capnp::_::ChooseBrand<_capnpPrivate, InternalRef, ExternalRef, InternalOwner, ExternalOwner>::brand;
|
Chris@50
|
155 #endif // !CAPNP_LITE
|
Chris@50
|
156 };
|
Chris@50
|
157 };
|
Chris@50
|
158
|
Chris@50
|
159 // =======================================================================================
|
Chris@50
|
160
|
Chris@50
|
161 #if !CAPNP_LITE
|
Chris@50
|
162 template <typename SturdyRef, typename Owner>
|
Chris@50
|
163 class Persistent<SturdyRef, Owner>::Client
|
Chris@50
|
164 : public virtual ::capnp::Capability::Client {
|
Chris@50
|
165 public:
|
Chris@50
|
166 typedef Persistent<SturdyRef, Owner> Calls;
|
Chris@50
|
167 typedef Persistent<SturdyRef, Owner> Reads;
|
Chris@50
|
168
|
Chris@50
|
169 Client(decltype(nullptr));
|
Chris@50
|
170 explicit Client(::kj::Own< ::capnp::ClientHook>&& hook);
|
Chris@50
|
171 template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Server*>()>>
|
Chris@50
|
172 Client(::kj::Own<_t>&& server);
|
Chris@50
|
173 template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Client*>()>>
|
Chris@50
|
174 Client(::kj::Promise<_t>&& promise);
|
Chris@50
|
175 Client(::kj::Exception&& exception);
|
Chris@50
|
176 Client(Client&) = default;
|
Chris@50
|
177 Client(Client&&) = default;
|
Chris@50
|
178 Client& operator=(Client& other);
|
Chris@50
|
179 Client& operator=(Client&& other);
|
Chris@50
|
180
|
Chris@50
|
181 template <typename SturdyRef2 = ::capnp::AnyPointer, typename Owner2 = ::capnp::AnyPointer>
|
Chris@50
|
182 typename Persistent<SturdyRef2, Owner2>::Client asGeneric() {
|
Chris@50
|
183 return castAs<Persistent<SturdyRef2, Owner2>>();
|
Chris@50
|
184 }
|
Chris@50
|
185
|
Chris@50
|
186 ::capnp::Request<typename ::capnp::Persistent<SturdyRef, Owner>::SaveParams, typename ::capnp::Persistent<SturdyRef, Owner>::SaveResults> saveRequest(
|
Chris@50
|
187 ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
|
Chris@50
|
188
|
Chris@50
|
189 protected:
|
Chris@50
|
190 Client() = default;
|
Chris@50
|
191 };
|
Chris@50
|
192
|
Chris@50
|
193 template <typename SturdyRef, typename Owner>
|
Chris@50
|
194 class Persistent<SturdyRef, Owner>::Server
|
Chris@50
|
195 : public virtual ::capnp::Capability::Server {
|
Chris@50
|
196 public:
|
Chris@50
|
197 typedef Persistent<SturdyRef, Owner> Serves;
|
Chris@50
|
198
|
Chris@50
|
199 ::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId,
|
Chris@50
|
200 ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
|
Chris@50
|
201 override;
|
Chris@50
|
202
|
Chris@50
|
203 protected:
|
Chris@50
|
204 typedef ::capnp::CallContext<typename ::capnp::Persistent<SturdyRef, Owner>::SaveParams, typename ::capnp::Persistent<SturdyRef, Owner>::SaveResults> SaveContext;
|
Chris@50
|
205 virtual ::kj::Promise<void> save(SaveContext context);
|
Chris@50
|
206
|
Chris@50
|
207 inline typename ::capnp::Persistent<SturdyRef, Owner>::Client thisCap() {
|
Chris@50
|
208 return ::capnp::Capability::Server::thisCap()
|
Chris@50
|
209 .template castAs< ::capnp::Persistent<SturdyRef, Owner>>();
|
Chris@50
|
210 }
|
Chris@50
|
211
|
Chris@50
|
212 ::kj::Promise<void> dispatchCallInternal(uint16_t methodId,
|
Chris@50
|
213 ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
|
Chris@50
|
214 };
|
Chris@50
|
215 #endif // !CAPNP_LITE
|
Chris@50
|
216
|
Chris@50
|
217 template <typename SturdyRef, typename Owner>
|
Chris@50
|
218 class Persistent<SturdyRef, Owner>::SaveParams::Reader {
|
Chris@50
|
219 public:
|
Chris@50
|
220 typedef SaveParams Reads;
|
Chris@50
|
221
|
Chris@50
|
222 Reader() = default;
|
Chris@50
|
223 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
|
Chris@50
|
224
|
Chris@50
|
225 inline ::capnp::MessageSize totalSize() const {
|
Chris@50
|
226 return _reader.totalSize().asPublic();
|
Chris@50
|
227 }
|
Chris@50
|
228
|
Chris@50
|
229 #if !CAPNP_LITE
|
Chris@50
|
230 inline ::kj::StringTree toString() const {
|
Chris@50
|
231 return ::capnp::_::structString(_reader, *_capnpPrivate::brand);
|
Chris@50
|
232 }
|
Chris@50
|
233 #endif // !CAPNP_LITE
|
Chris@50
|
234
|
Chris@50
|
235 template <typename SturdyRef2 = ::capnp::AnyPointer, typename Owner2 = ::capnp::AnyPointer>
|
Chris@50
|
236 typename Persistent<SturdyRef2, Owner2>::SaveParams::Reader asPersistentGeneric() {
|
Chris@50
|
237 return typename Persistent<SturdyRef2, Owner2>::SaveParams::Reader(_reader);
|
Chris@50
|
238 }
|
Chris@50
|
239
|
Chris@50
|
240 inline bool hasSealFor() const;
|
Chris@50
|
241 inline ::capnp::ReaderFor<Owner> getSealFor() const;
|
Chris@50
|
242
|
Chris@50
|
243 private:
|
Chris@50
|
244 ::capnp::_::StructReader _reader;
|
Chris@50
|
245 template <typename, ::capnp::Kind>
|
Chris@50
|
246 friend struct ::capnp::ToDynamic_;
|
Chris@50
|
247 template <typename, ::capnp::Kind>
|
Chris@50
|
248 friend struct ::capnp::_::PointerHelpers;
|
Chris@50
|
249 template <typename, ::capnp::Kind>
|
Chris@50
|
250 friend struct ::capnp::List;
|
Chris@50
|
251 friend class ::capnp::MessageBuilder;
|
Chris@50
|
252 friend class ::capnp::Orphanage;
|
Chris@50
|
253 };
|
Chris@50
|
254
|
Chris@50
|
255 template <typename SturdyRef, typename Owner>
|
Chris@50
|
256 class Persistent<SturdyRef, Owner>::SaveParams::Builder {
|
Chris@50
|
257 public:
|
Chris@50
|
258 typedef SaveParams Builds;
|
Chris@50
|
259
|
Chris@50
|
260 Builder() = delete; // Deleted to discourage incorrect usage.
|
Chris@50
|
261 // You can explicitly initialize to nullptr instead.
|
Chris@50
|
262 inline Builder(decltype(nullptr)) {}
|
Chris@50
|
263 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
|
Chris@50
|
264 inline operator Reader() const { return Reader(_builder.asReader()); }
|
Chris@50
|
265 inline Reader asReader() const { return *this; }
|
Chris@50
|
266
|
Chris@50
|
267 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
|
Chris@50
|
268 #if !CAPNP_LITE
|
Chris@50
|
269 inline ::kj::StringTree toString() const { return asReader().toString(); }
|
Chris@50
|
270 #endif // !CAPNP_LITE
|
Chris@50
|
271
|
Chris@50
|
272 template <typename SturdyRef2 = ::capnp::AnyPointer, typename Owner2 = ::capnp::AnyPointer>
|
Chris@50
|
273 typename Persistent<SturdyRef2, Owner2>::SaveParams::Builder asPersistentGeneric() {
|
Chris@50
|
274 return typename Persistent<SturdyRef2, Owner2>::SaveParams::Builder(_builder);
|
Chris@50
|
275 }
|
Chris@50
|
276
|
Chris@50
|
277 inline bool hasSealFor();
|
Chris@50
|
278 inline ::capnp::BuilderFor<Owner> getSealFor();
|
Chris@50
|
279 inline void setSealFor( ::capnp::ReaderFor<Owner> value);
|
Chris@50
|
280 inline ::capnp::BuilderFor<Owner> initSealFor();
|
Chris@50
|
281 inline ::capnp::BuilderFor<Owner> initSealFor(unsigned int size);
|
Chris@50
|
282 inline void adoptSealFor(::capnp::Orphan<Owner>&& value);
|
Chris@50
|
283 inline ::capnp::Orphan<Owner> disownSealFor();
|
Chris@50
|
284
|
Chris@50
|
285 private:
|
Chris@50
|
286 ::capnp::_::StructBuilder _builder;
|
Chris@50
|
287 template <typename, ::capnp::Kind>
|
Chris@50
|
288 friend struct ::capnp::ToDynamic_;
|
Chris@50
|
289 friend class ::capnp::Orphanage;
|
Chris@50
|
290 template <typename, ::capnp::Kind>
|
Chris@50
|
291 friend struct ::capnp::_::PointerHelpers;
|
Chris@50
|
292 };
|
Chris@50
|
293
|
Chris@50
|
294 #if !CAPNP_LITE
|
Chris@50
|
295 template <typename SturdyRef, typename Owner>
|
Chris@50
|
296 class Persistent<SturdyRef, Owner>::SaveParams::Pipeline {
|
Chris@50
|
297 public:
|
Chris@50
|
298 typedef SaveParams Pipelines;
|
Chris@50
|
299
|
Chris@50
|
300 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
|
Chris@50
|
301 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
|
Chris@50
|
302 : _typeless(kj::mv(typeless)) {}
|
Chris@50
|
303
|
Chris@50
|
304 inline ::capnp::PipelineFor<Owner> getSealFor();
|
Chris@50
|
305 private:
|
Chris@50
|
306 ::capnp::AnyPointer::Pipeline _typeless;
|
Chris@50
|
307 friend class ::capnp::PipelineHook;
|
Chris@50
|
308 template <typename, ::capnp::Kind>
|
Chris@50
|
309 friend struct ::capnp::ToDynamic_;
|
Chris@50
|
310 };
|
Chris@50
|
311 #endif // !CAPNP_LITE
|
Chris@50
|
312
|
Chris@50
|
313 template <typename SturdyRef, typename Owner>
|
Chris@50
|
314 class Persistent<SturdyRef, Owner>::SaveResults::Reader {
|
Chris@50
|
315 public:
|
Chris@50
|
316 typedef SaveResults Reads;
|
Chris@50
|
317
|
Chris@50
|
318 Reader() = default;
|
Chris@50
|
319 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
|
Chris@50
|
320
|
Chris@50
|
321 inline ::capnp::MessageSize totalSize() const {
|
Chris@50
|
322 return _reader.totalSize().asPublic();
|
Chris@50
|
323 }
|
Chris@50
|
324
|
Chris@50
|
325 #if !CAPNP_LITE
|
Chris@50
|
326 inline ::kj::StringTree toString() const {
|
Chris@50
|
327 return ::capnp::_::structString(_reader, *_capnpPrivate::brand);
|
Chris@50
|
328 }
|
Chris@50
|
329 #endif // !CAPNP_LITE
|
Chris@50
|
330
|
Chris@50
|
331 template <typename SturdyRef2 = ::capnp::AnyPointer, typename Owner2 = ::capnp::AnyPointer>
|
Chris@50
|
332 typename Persistent<SturdyRef2, Owner2>::SaveResults::Reader asPersistentGeneric() {
|
Chris@50
|
333 return typename Persistent<SturdyRef2, Owner2>::SaveResults::Reader(_reader);
|
Chris@50
|
334 }
|
Chris@50
|
335
|
Chris@50
|
336 inline bool hasSturdyRef() const;
|
Chris@50
|
337 inline ::capnp::ReaderFor<SturdyRef> getSturdyRef() const;
|
Chris@50
|
338
|
Chris@50
|
339 private:
|
Chris@50
|
340 ::capnp::_::StructReader _reader;
|
Chris@50
|
341 template <typename, ::capnp::Kind>
|
Chris@50
|
342 friend struct ::capnp::ToDynamic_;
|
Chris@50
|
343 template <typename, ::capnp::Kind>
|
Chris@50
|
344 friend struct ::capnp::_::PointerHelpers;
|
Chris@50
|
345 template <typename, ::capnp::Kind>
|
Chris@50
|
346 friend struct ::capnp::List;
|
Chris@50
|
347 friend class ::capnp::MessageBuilder;
|
Chris@50
|
348 friend class ::capnp::Orphanage;
|
Chris@50
|
349 };
|
Chris@50
|
350
|
Chris@50
|
351 template <typename SturdyRef, typename Owner>
|
Chris@50
|
352 class Persistent<SturdyRef, Owner>::SaveResults::Builder {
|
Chris@50
|
353 public:
|
Chris@50
|
354 typedef SaveResults Builds;
|
Chris@50
|
355
|
Chris@50
|
356 Builder() = delete; // Deleted to discourage incorrect usage.
|
Chris@50
|
357 // You can explicitly initialize to nullptr instead.
|
Chris@50
|
358 inline Builder(decltype(nullptr)) {}
|
Chris@50
|
359 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
|
Chris@50
|
360 inline operator Reader() const { return Reader(_builder.asReader()); }
|
Chris@50
|
361 inline Reader asReader() const { return *this; }
|
Chris@50
|
362
|
Chris@50
|
363 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
|
Chris@50
|
364 #if !CAPNP_LITE
|
Chris@50
|
365 inline ::kj::StringTree toString() const { return asReader().toString(); }
|
Chris@50
|
366 #endif // !CAPNP_LITE
|
Chris@50
|
367
|
Chris@50
|
368 template <typename SturdyRef2 = ::capnp::AnyPointer, typename Owner2 = ::capnp::AnyPointer>
|
Chris@50
|
369 typename Persistent<SturdyRef2, Owner2>::SaveResults::Builder asPersistentGeneric() {
|
Chris@50
|
370 return typename Persistent<SturdyRef2, Owner2>::SaveResults::Builder(_builder);
|
Chris@50
|
371 }
|
Chris@50
|
372
|
Chris@50
|
373 inline bool hasSturdyRef();
|
Chris@50
|
374 inline ::capnp::BuilderFor<SturdyRef> getSturdyRef();
|
Chris@50
|
375 inline void setSturdyRef( ::capnp::ReaderFor<SturdyRef> value);
|
Chris@50
|
376 inline ::capnp::BuilderFor<SturdyRef> initSturdyRef();
|
Chris@50
|
377 inline ::capnp::BuilderFor<SturdyRef> initSturdyRef(unsigned int size);
|
Chris@50
|
378 inline void adoptSturdyRef(::capnp::Orphan<SturdyRef>&& value);
|
Chris@50
|
379 inline ::capnp::Orphan<SturdyRef> disownSturdyRef();
|
Chris@50
|
380
|
Chris@50
|
381 private:
|
Chris@50
|
382 ::capnp::_::StructBuilder _builder;
|
Chris@50
|
383 template <typename, ::capnp::Kind>
|
Chris@50
|
384 friend struct ::capnp::ToDynamic_;
|
Chris@50
|
385 friend class ::capnp::Orphanage;
|
Chris@50
|
386 template <typename, ::capnp::Kind>
|
Chris@50
|
387 friend struct ::capnp::_::PointerHelpers;
|
Chris@50
|
388 };
|
Chris@50
|
389
|
Chris@50
|
390 #if !CAPNP_LITE
|
Chris@50
|
391 template <typename SturdyRef, typename Owner>
|
Chris@50
|
392 class Persistent<SturdyRef, Owner>::SaveResults::Pipeline {
|
Chris@50
|
393 public:
|
Chris@50
|
394 typedef SaveResults Pipelines;
|
Chris@50
|
395
|
Chris@50
|
396 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
|
Chris@50
|
397 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
|
Chris@50
|
398 : _typeless(kj::mv(typeless)) {}
|
Chris@50
|
399
|
Chris@50
|
400 inline ::capnp::PipelineFor<SturdyRef> getSturdyRef();
|
Chris@50
|
401 private:
|
Chris@50
|
402 ::capnp::AnyPointer::Pipeline _typeless;
|
Chris@50
|
403 friend class ::capnp::PipelineHook;
|
Chris@50
|
404 template <typename, ::capnp::Kind>
|
Chris@50
|
405 friend struct ::capnp::ToDynamic_;
|
Chris@50
|
406 };
|
Chris@50
|
407 #endif // !CAPNP_LITE
|
Chris@50
|
408
|
Chris@50
|
409 #if !CAPNP_LITE
|
Chris@50
|
410 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
411 class RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Client
|
Chris@50
|
412 : public virtual ::capnp::Capability::Client {
|
Chris@50
|
413 public:
|
Chris@50
|
414 typedef RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner> Calls;
|
Chris@50
|
415 typedef RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner> Reads;
|
Chris@50
|
416
|
Chris@50
|
417 Client(decltype(nullptr));
|
Chris@50
|
418 explicit Client(::kj::Own< ::capnp::ClientHook>&& hook);
|
Chris@50
|
419 template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Server*>()>>
|
Chris@50
|
420 Client(::kj::Own<_t>&& server);
|
Chris@50
|
421 template <typename _t, typename = ::kj::EnableIf< ::kj::canConvert<_t*, Client*>()>>
|
Chris@50
|
422 Client(::kj::Promise<_t>&& promise);
|
Chris@50
|
423 Client(::kj::Exception&& exception);
|
Chris@50
|
424 Client(Client&) = default;
|
Chris@50
|
425 Client(Client&&) = default;
|
Chris@50
|
426 Client& operator=(Client& other);
|
Chris@50
|
427 Client& operator=(Client&& other);
|
Chris@50
|
428
|
Chris@50
|
429 template <typename InternalRef2 = ::capnp::AnyPointer, typename ExternalRef2 = ::capnp::AnyPointer, typename InternalOwner2 = ::capnp::AnyPointer, typename ExternalOwner2 = ::capnp::AnyPointer>
|
Chris@50
|
430 typename RealmGateway<InternalRef2, ExternalRef2, InternalOwner2, ExternalOwner2>::Client asGeneric() {
|
Chris@50
|
431 return castAs<RealmGateway<InternalRef2, ExternalRef2, InternalOwner2, ExternalOwner2>>();
|
Chris@50
|
432 }
|
Chris@50
|
433
|
Chris@50
|
434 ::capnp::Request<typename ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams, typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveResults> importRequest(
|
Chris@50
|
435 ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
|
Chris@50
|
436 ::capnp::Request<typename ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams, typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveResults> exportRequest(
|
Chris@50
|
437 ::kj::Maybe< ::capnp::MessageSize> sizeHint = nullptr);
|
Chris@50
|
438
|
Chris@50
|
439 protected:
|
Chris@50
|
440 Client() = default;
|
Chris@50
|
441 };
|
Chris@50
|
442
|
Chris@50
|
443 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
444 class RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Server
|
Chris@50
|
445 : public virtual ::capnp::Capability::Server {
|
Chris@50
|
446 public:
|
Chris@50
|
447 typedef RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner> Serves;
|
Chris@50
|
448
|
Chris@50
|
449 ::kj::Promise<void> dispatchCall(uint64_t interfaceId, uint16_t methodId,
|
Chris@50
|
450 ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context)
|
Chris@50
|
451 override;
|
Chris@50
|
452
|
Chris@50
|
453 protected:
|
Chris@50
|
454 typedef typename ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams ImportParams;
|
Chris@50
|
455 typedef ::capnp::CallContext<ImportParams, typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveResults> ImportContext;
|
Chris@50
|
456 virtual ::kj::Promise<void> import(ImportContext context);
|
Chris@50
|
457 typedef typename ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams ExportParams;
|
Chris@50
|
458 typedef ::capnp::CallContext<ExportParams, typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveResults> ExportContext;
|
Chris@50
|
459 virtual ::kj::Promise<void> export_(ExportContext context);
|
Chris@50
|
460
|
Chris@50
|
461 inline typename ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Client thisCap() {
|
Chris@50
|
462 return ::capnp::Capability::Server::thisCap()
|
Chris@50
|
463 .template castAs< ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>>();
|
Chris@50
|
464 }
|
Chris@50
|
465
|
Chris@50
|
466 ::kj::Promise<void> dispatchCallInternal(uint16_t methodId,
|
Chris@50
|
467 ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context);
|
Chris@50
|
468 };
|
Chris@50
|
469 #endif // !CAPNP_LITE
|
Chris@50
|
470
|
Chris@50
|
471 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
472 class RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Reader {
|
Chris@50
|
473 public:
|
Chris@50
|
474 typedef ImportParams Reads;
|
Chris@50
|
475
|
Chris@50
|
476 Reader() = default;
|
Chris@50
|
477 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
|
Chris@50
|
478
|
Chris@50
|
479 inline ::capnp::MessageSize totalSize() const {
|
Chris@50
|
480 return _reader.totalSize().asPublic();
|
Chris@50
|
481 }
|
Chris@50
|
482
|
Chris@50
|
483 #if !CAPNP_LITE
|
Chris@50
|
484 inline ::kj::StringTree toString() const {
|
Chris@50
|
485 return ::capnp::_::structString(_reader, *_capnpPrivate::brand);
|
Chris@50
|
486 }
|
Chris@50
|
487 #endif // !CAPNP_LITE
|
Chris@50
|
488
|
Chris@50
|
489 template <typename InternalRef2 = ::capnp::AnyPointer, typename ExternalRef2 = ::capnp::AnyPointer, typename InternalOwner2 = ::capnp::AnyPointer, typename ExternalOwner2 = ::capnp::AnyPointer>
|
Chris@50
|
490 typename RealmGateway<InternalRef2, ExternalRef2, InternalOwner2, ExternalOwner2>::ImportParams::Reader asRealmGatewayGeneric() {
|
Chris@50
|
491 return typename RealmGateway<InternalRef2, ExternalRef2, InternalOwner2, ExternalOwner2>::ImportParams::Reader(_reader);
|
Chris@50
|
492 }
|
Chris@50
|
493
|
Chris@50
|
494 inline bool hasCap() const;
|
Chris@50
|
495 #if !CAPNP_LITE
|
Chris@50
|
496 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::Client getCap() const;
|
Chris@50
|
497 #endif // !CAPNP_LITE
|
Chris@50
|
498
|
Chris@50
|
499 inline bool hasParams() const;
|
Chris@50
|
500 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams::Reader getParams() const;
|
Chris@50
|
501
|
Chris@50
|
502 private:
|
Chris@50
|
503 ::capnp::_::StructReader _reader;
|
Chris@50
|
504 template <typename, ::capnp::Kind>
|
Chris@50
|
505 friend struct ::capnp::ToDynamic_;
|
Chris@50
|
506 template <typename, ::capnp::Kind>
|
Chris@50
|
507 friend struct ::capnp::_::PointerHelpers;
|
Chris@50
|
508 template <typename, ::capnp::Kind>
|
Chris@50
|
509 friend struct ::capnp::List;
|
Chris@50
|
510 friend class ::capnp::MessageBuilder;
|
Chris@50
|
511 friend class ::capnp::Orphanage;
|
Chris@50
|
512 };
|
Chris@50
|
513
|
Chris@50
|
514 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
515 class RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Builder {
|
Chris@50
|
516 public:
|
Chris@50
|
517 typedef ImportParams Builds;
|
Chris@50
|
518
|
Chris@50
|
519 Builder() = delete; // Deleted to discourage incorrect usage.
|
Chris@50
|
520 // You can explicitly initialize to nullptr instead.
|
Chris@50
|
521 inline Builder(decltype(nullptr)) {}
|
Chris@50
|
522 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
|
Chris@50
|
523 inline operator Reader() const { return Reader(_builder.asReader()); }
|
Chris@50
|
524 inline Reader asReader() const { return *this; }
|
Chris@50
|
525
|
Chris@50
|
526 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
|
Chris@50
|
527 #if !CAPNP_LITE
|
Chris@50
|
528 inline ::kj::StringTree toString() const { return asReader().toString(); }
|
Chris@50
|
529 #endif // !CAPNP_LITE
|
Chris@50
|
530
|
Chris@50
|
531 template <typename InternalRef2 = ::capnp::AnyPointer, typename ExternalRef2 = ::capnp::AnyPointer, typename InternalOwner2 = ::capnp::AnyPointer, typename ExternalOwner2 = ::capnp::AnyPointer>
|
Chris@50
|
532 typename RealmGateway<InternalRef2, ExternalRef2, InternalOwner2, ExternalOwner2>::ImportParams::Builder asRealmGatewayGeneric() {
|
Chris@50
|
533 return typename RealmGateway<InternalRef2, ExternalRef2, InternalOwner2, ExternalOwner2>::ImportParams::Builder(_builder);
|
Chris@50
|
534 }
|
Chris@50
|
535
|
Chris@50
|
536 inline bool hasCap();
|
Chris@50
|
537 #if !CAPNP_LITE
|
Chris@50
|
538 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::Client getCap();
|
Chris@50
|
539 inline void setCap(typename ::capnp::Persistent<ExternalRef, ExternalOwner>::Client&& value);
|
Chris@50
|
540 inline void setCap(typename ::capnp::Persistent<ExternalRef, ExternalOwner>::Client& value);
|
Chris@50
|
541 inline void adoptCap(::capnp::Orphan< ::capnp::Persistent<ExternalRef, ExternalOwner>>&& value);
|
Chris@50
|
542 inline ::capnp::Orphan< ::capnp::Persistent<ExternalRef, ExternalOwner>> disownCap();
|
Chris@50
|
543 #endif // !CAPNP_LITE
|
Chris@50
|
544
|
Chris@50
|
545 inline bool hasParams();
|
Chris@50
|
546 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams::Builder getParams();
|
Chris@50
|
547 inline void setParams(typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams::Reader value);
|
Chris@50
|
548 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams::Builder initParams();
|
Chris@50
|
549 inline void adoptParams(::capnp::Orphan<typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams>&& value);
|
Chris@50
|
550 inline ::capnp::Orphan<typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams> disownParams();
|
Chris@50
|
551
|
Chris@50
|
552 private:
|
Chris@50
|
553 ::capnp::_::StructBuilder _builder;
|
Chris@50
|
554 template <typename, ::capnp::Kind>
|
Chris@50
|
555 friend struct ::capnp::ToDynamic_;
|
Chris@50
|
556 friend class ::capnp::Orphanage;
|
Chris@50
|
557 template <typename, ::capnp::Kind>
|
Chris@50
|
558 friend struct ::capnp::_::PointerHelpers;
|
Chris@50
|
559 };
|
Chris@50
|
560
|
Chris@50
|
561 #if !CAPNP_LITE
|
Chris@50
|
562 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
563 class RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Pipeline {
|
Chris@50
|
564 public:
|
Chris@50
|
565 typedef ImportParams Pipelines;
|
Chris@50
|
566
|
Chris@50
|
567 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
|
Chris@50
|
568 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
|
Chris@50
|
569 : _typeless(kj::mv(typeless)) {}
|
Chris@50
|
570
|
Chris@50
|
571 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::Client getCap();
|
Chris@50
|
572 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams::Pipeline getParams();
|
Chris@50
|
573 private:
|
Chris@50
|
574 ::capnp::AnyPointer::Pipeline _typeless;
|
Chris@50
|
575 friend class ::capnp::PipelineHook;
|
Chris@50
|
576 template <typename, ::capnp::Kind>
|
Chris@50
|
577 friend struct ::capnp::ToDynamic_;
|
Chris@50
|
578 };
|
Chris@50
|
579 #endif // !CAPNP_LITE
|
Chris@50
|
580
|
Chris@50
|
581 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
582 class RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Reader {
|
Chris@50
|
583 public:
|
Chris@50
|
584 typedef ExportParams Reads;
|
Chris@50
|
585
|
Chris@50
|
586 Reader() = default;
|
Chris@50
|
587 inline explicit Reader(::capnp::_::StructReader base): _reader(base) {}
|
Chris@50
|
588
|
Chris@50
|
589 inline ::capnp::MessageSize totalSize() const {
|
Chris@50
|
590 return _reader.totalSize().asPublic();
|
Chris@50
|
591 }
|
Chris@50
|
592
|
Chris@50
|
593 #if !CAPNP_LITE
|
Chris@50
|
594 inline ::kj::StringTree toString() const {
|
Chris@50
|
595 return ::capnp::_::structString(_reader, *_capnpPrivate::brand);
|
Chris@50
|
596 }
|
Chris@50
|
597 #endif // !CAPNP_LITE
|
Chris@50
|
598
|
Chris@50
|
599 template <typename InternalRef2 = ::capnp::AnyPointer, typename ExternalRef2 = ::capnp::AnyPointer, typename InternalOwner2 = ::capnp::AnyPointer, typename ExternalOwner2 = ::capnp::AnyPointer>
|
Chris@50
|
600 typename RealmGateway<InternalRef2, ExternalRef2, InternalOwner2, ExternalOwner2>::ExportParams::Reader asRealmGatewayGeneric() {
|
Chris@50
|
601 return typename RealmGateway<InternalRef2, ExternalRef2, InternalOwner2, ExternalOwner2>::ExportParams::Reader(_reader);
|
Chris@50
|
602 }
|
Chris@50
|
603
|
Chris@50
|
604 inline bool hasCap() const;
|
Chris@50
|
605 #if !CAPNP_LITE
|
Chris@50
|
606 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::Client getCap() const;
|
Chris@50
|
607 #endif // !CAPNP_LITE
|
Chris@50
|
608
|
Chris@50
|
609 inline bool hasParams() const;
|
Chris@50
|
610 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams::Reader getParams() const;
|
Chris@50
|
611
|
Chris@50
|
612 private:
|
Chris@50
|
613 ::capnp::_::StructReader _reader;
|
Chris@50
|
614 template <typename, ::capnp::Kind>
|
Chris@50
|
615 friend struct ::capnp::ToDynamic_;
|
Chris@50
|
616 template <typename, ::capnp::Kind>
|
Chris@50
|
617 friend struct ::capnp::_::PointerHelpers;
|
Chris@50
|
618 template <typename, ::capnp::Kind>
|
Chris@50
|
619 friend struct ::capnp::List;
|
Chris@50
|
620 friend class ::capnp::MessageBuilder;
|
Chris@50
|
621 friend class ::capnp::Orphanage;
|
Chris@50
|
622 };
|
Chris@50
|
623
|
Chris@50
|
624 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
625 class RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Builder {
|
Chris@50
|
626 public:
|
Chris@50
|
627 typedef ExportParams Builds;
|
Chris@50
|
628
|
Chris@50
|
629 Builder() = delete; // Deleted to discourage incorrect usage.
|
Chris@50
|
630 // You can explicitly initialize to nullptr instead.
|
Chris@50
|
631 inline Builder(decltype(nullptr)) {}
|
Chris@50
|
632 inline explicit Builder(::capnp::_::StructBuilder base): _builder(base) {}
|
Chris@50
|
633 inline operator Reader() const { return Reader(_builder.asReader()); }
|
Chris@50
|
634 inline Reader asReader() const { return *this; }
|
Chris@50
|
635
|
Chris@50
|
636 inline ::capnp::MessageSize totalSize() const { return asReader().totalSize(); }
|
Chris@50
|
637 #if !CAPNP_LITE
|
Chris@50
|
638 inline ::kj::StringTree toString() const { return asReader().toString(); }
|
Chris@50
|
639 #endif // !CAPNP_LITE
|
Chris@50
|
640
|
Chris@50
|
641 template <typename InternalRef2 = ::capnp::AnyPointer, typename ExternalRef2 = ::capnp::AnyPointer, typename InternalOwner2 = ::capnp::AnyPointer, typename ExternalOwner2 = ::capnp::AnyPointer>
|
Chris@50
|
642 typename RealmGateway<InternalRef2, ExternalRef2, InternalOwner2, ExternalOwner2>::ExportParams::Builder asRealmGatewayGeneric() {
|
Chris@50
|
643 return typename RealmGateway<InternalRef2, ExternalRef2, InternalOwner2, ExternalOwner2>::ExportParams::Builder(_builder);
|
Chris@50
|
644 }
|
Chris@50
|
645
|
Chris@50
|
646 inline bool hasCap();
|
Chris@50
|
647 #if !CAPNP_LITE
|
Chris@50
|
648 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::Client getCap();
|
Chris@50
|
649 inline void setCap(typename ::capnp::Persistent<InternalRef, InternalOwner>::Client&& value);
|
Chris@50
|
650 inline void setCap(typename ::capnp::Persistent<InternalRef, InternalOwner>::Client& value);
|
Chris@50
|
651 inline void adoptCap(::capnp::Orphan< ::capnp::Persistent<InternalRef, InternalOwner>>&& value);
|
Chris@50
|
652 inline ::capnp::Orphan< ::capnp::Persistent<InternalRef, InternalOwner>> disownCap();
|
Chris@50
|
653 #endif // !CAPNP_LITE
|
Chris@50
|
654
|
Chris@50
|
655 inline bool hasParams();
|
Chris@50
|
656 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams::Builder getParams();
|
Chris@50
|
657 inline void setParams(typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams::Reader value);
|
Chris@50
|
658 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams::Builder initParams();
|
Chris@50
|
659 inline void adoptParams(::capnp::Orphan<typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams>&& value);
|
Chris@50
|
660 inline ::capnp::Orphan<typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams> disownParams();
|
Chris@50
|
661
|
Chris@50
|
662 private:
|
Chris@50
|
663 ::capnp::_::StructBuilder _builder;
|
Chris@50
|
664 template <typename, ::capnp::Kind>
|
Chris@50
|
665 friend struct ::capnp::ToDynamic_;
|
Chris@50
|
666 friend class ::capnp::Orphanage;
|
Chris@50
|
667 template <typename, ::capnp::Kind>
|
Chris@50
|
668 friend struct ::capnp::_::PointerHelpers;
|
Chris@50
|
669 };
|
Chris@50
|
670
|
Chris@50
|
671 #if !CAPNP_LITE
|
Chris@50
|
672 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
673 class RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Pipeline {
|
Chris@50
|
674 public:
|
Chris@50
|
675 typedef ExportParams Pipelines;
|
Chris@50
|
676
|
Chris@50
|
677 inline Pipeline(decltype(nullptr)): _typeless(nullptr) {}
|
Chris@50
|
678 inline explicit Pipeline(::capnp::AnyPointer::Pipeline&& typeless)
|
Chris@50
|
679 : _typeless(kj::mv(typeless)) {}
|
Chris@50
|
680
|
Chris@50
|
681 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::Client getCap();
|
Chris@50
|
682 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams::Pipeline getParams();
|
Chris@50
|
683 private:
|
Chris@50
|
684 ::capnp::AnyPointer::Pipeline _typeless;
|
Chris@50
|
685 friend class ::capnp::PipelineHook;
|
Chris@50
|
686 template <typename, ::capnp::Kind>
|
Chris@50
|
687 friend struct ::capnp::ToDynamic_;
|
Chris@50
|
688 };
|
Chris@50
|
689 #endif // !CAPNP_LITE
|
Chris@50
|
690
|
Chris@50
|
691 // =======================================================================================
|
Chris@50
|
692
|
Chris@50
|
693 #if !CAPNP_LITE
|
Chris@50
|
694 template <typename SturdyRef, typename Owner>
|
Chris@50
|
695 inline Persistent<SturdyRef, Owner>::Client::Client(decltype(nullptr))
|
Chris@50
|
696 : ::capnp::Capability::Client(nullptr) {}
|
Chris@50
|
697 template <typename SturdyRef, typename Owner>
|
Chris@50
|
698 inline Persistent<SturdyRef, Owner>::Client::Client(
|
Chris@50
|
699 ::kj::Own< ::capnp::ClientHook>&& hook)
|
Chris@50
|
700 : ::capnp::Capability::Client(::kj::mv(hook)) {}
|
Chris@50
|
701 template <typename SturdyRef, typename Owner>
|
Chris@50
|
702 template <typename _t, typename>
|
Chris@50
|
703 inline Persistent<SturdyRef, Owner>::Client::Client(::kj::Own<_t>&& server)
|
Chris@50
|
704 : ::capnp::Capability::Client(::kj::mv(server)) {}
|
Chris@50
|
705 template <typename SturdyRef, typename Owner>
|
Chris@50
|
706 template <typename _t, typename>
|
Chris@50
|
707 inline Persistent<SturdyRef, Owner>::Client::Client(::kj::Promise<_t>&& promise)
|
Chris@50
|
708 : ::capnp::Capability::Client(::kj::mv(promise)) {}
|
Chris@50
|
709 template <typename SturdyRef, typename Owner>
|
Chris@50
|
710 inline Persistent<SturdyRef, Owner>::Client::Client(::kj::Exception&& exception)
|
Chris@50
|
711 : ::capnp::Capability::Client(::kj::mv(exception)) {}
|
Chris@50
|
712 template <typename SturdyRef, typename Owner>
|
Chris@50
|
713 inline typename ::capnp::Persistent<SturdyRef, Owner>::Client& Persistent<SturdyRef, Owner>::Client::operator=(Client& other) {
|
Chris@50
|
714 ::capnp::Capability::Client::operator=(other);
|
Chris@50
|
715 return *this;
|
Chris@50
|
716 }
|
Chris@50
|
717 template <typename SturdyRef, typename Owner>
|
Chris@50
|
718 inline typename ::capnp::Persistent<SturdyRef, Owner>::Client& Persistent<SturdyRef, Owner>::Client::operator=(Client&& other) {
|
Chris@50
|
719 ::capnp::Capability::Client::operator=(kj::mv(other));
|
Chris@50
|
720 return *this;
|
Chris@50
|
721 }
|
Chris@50
|
722
|
Chris@50
|
723 #endif // !CAPNP_LITE
|
Chris@50
|
724 template <typename SturdyRef, typename Owner>
|
Chris@50
|
725 inline bool Persistent<SturdyRef, Owner>::SaveParams::Reader::hasSealFor() const {
|
Chris@50
|
726 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
|
Chris@50
|
727 }
|
Chris@50
|
728 template <typename SturdyRef, typename Owner>
|
Chris@50
|
729 inline bool Persistent<SturdyRef, Owner>::SaveParams::Builder::hasSealFor() {
|
Chris@50
|
730 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
|
Chris@50
|
731 }
|
Chris@50
|
732 template <typename SturdyRef, typename Owner>
|
Chris@50
|
733 inline ::capnp::ReaderFor<Owner> Persistent<SturdyRef, Owner>::SaveParams::Reader::getSealFor() const {
|
Chris@50
|
734 return ::capnp::_::PointerHelpers<Owner>::get(
|
Chris@50
|
735 _reader.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
736 }
|
Chris@50
|
737 template <typename SturdyRef, typename Owner>
|
Chris@50
|
738 inline ::capnp::BuilderFor<Owner> Persistent<SturdyRef, Owner>::SaveParams::Builder::getSealFor() {
|
Chris@50
|
739 return ::capnp::_::PointerHelpers<Owner>::get(
|
Chris@50
|
740 _builder.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
741 }
|
Chris@50
|
742 #if !CAPNP_LITE
|
Chris@50
|
743 template <typename SturdyRef, typename Owner>
|
Chris@50
|
744 inline ::capnp::PipelineFor<Owner> Persistent<SturdyRef, Owner>::SaveParams::Pipeline::getSealFor() {
|
Chris@50
|
745 return ::capnp::PipelineFor<Owner>(_typeless.getPointerField(0));
|
Chris@50
|
746 }
|
Chris@50
|
747 #endif // !CAPNP_LITE
|
Chris@50
|
748 template <typename SturdyRef, typename Owner>
|
Chris@50
|
749 inline void Persistent<SturdyRef, Owner>::SaveParams::Builder::setSealFor( ::capnp::ReaderFor<Owner> value) {
|
Chris@50
|
750 ::capnp::_::PointerHelpers<Owner>::set(
|
Chris@50
|
751 _builder.getPointerField(0 * ::capnp::POINTERS), value);
|
Chris@50
|
752 }
|
Chris@50
|
753 template <typename SturdyRef, typename Owner>
|
Chris@50
|
754 inline ::capnp::BuilderFor<Owner> Persistent<SturdyRef, Owner>::SaveParams::Builder::initSealFor() {
|
Chris@50
|
755 return ::capnp::_::PointerHelpers<Owner>::init(
|
Chris@50
|
756 _builder.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
757 }
|
Chris@50
|
758 template <typename SturdyRef, typename Owner>
|
Chris@50
|
759 inline ::capnp::BuilderFor<Owner> Persistent<SturdyRef, Owner>::SaveParams::Builder::initSealFor(unsigned int size) {
|
Chris@50
|
760 return ::capnp::_::PointerHelpers<Owner>::init(
|
Chris@50
|
761 _builder.getPointerField(0 * ::capnp::POINTERS), size);
|
Chris@50
|
762 }
|
Chris@50
|
763 template <typename SturdyRef, typename Owner>
|
Chris@50
|
764 inline void Persistent<SturdyRef, Owner>::SaveParams::Builder::adoptSealFor(
|
Chris@50
|
765 ::capnp::Orphan<Owner>&& value) {
|
Chris@50
|
766 ::capnp::_::PointerHelpers<Owner>::adopt(
|
Chris@50
|
767 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value));
|
Chris@50
|
768 }
|
Chris@50
|
769 template <typename SturdyRef, typename Owner>
|
Chris@50
|
770 inline ::capnp::Orphan<Owner> Persistent<SturdyRef, Owner>::SaveParams::Builder::disownSealFor() {
|
Chris@50
|
771 return ::capnp::_::PointerHelpers<Owner>::disown(
|
Chris@50
|
772 _builder.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
773 }
|
Chris@50
|
774
|
Chris@50
|
775 // Persistent<SturdyRef, Owner>::SaveParams
|
Chris@50
|
776 template <typename SturdyRef, typename Owner>
|
Chris@50
|
777 constexpr uint16_t Persistent<SturdyRef, Owner>::SaveParams::_capnpPrivate::dataWordSize;
|
Chris@50
|
778 template <typename SturdyRef, typename Owner>
|
Chris@50
|
779 constexpr uint16_t Persistent<SturdyRef, Owner>::SaveParams::_capnpPrivate::pointerCount;
|
Chris@50
|
780 #if !CAPNP_LITE
|
Chris@50
|
781 template <typename SturdyRef, typename Owner>
|
Chris@50
|
782 constexpr ::capnp::Kind Persistent<SturdyRef, Owner>::SaveParams::_capnpPrivate::kind;
|
Chris@50
|
783 template <typename SturdyRef, typename Owner>
|
Chris@50
|
784 constexpr ::capnp::_::RawSchema const* Persistent<SturdyRef, Owner>::SaveParams::_capnpPrivate::schema;
|
Chris@50
|
785 template <typename SturdyRef, typename Owner>
|
Chris@50
|
786 constexpr ::capnp::_::RawBrandedSchema const* Persistent<SturdyRef, Owner>::SaveParams::_capnpPrivate::brand;
|
Chris@50
|
787 template <typename SturdyRef, typename Owner>
|
Chris@50
|
788 const ::capnp::_::RawBrandedSchema::Scope Persistent<SturdyRef, Owner>::SaveParams::_capnpPrivate::brandScopes[] = {
|
Chris@50
|
789 { 0xc8cb212fcd9f5691, brandBindings + 0, 2, false},
|
Chris@50
|
790 };
|
Chris@50
|
791 template <typename SturdyRef, typename Owner>
|
Chris@50
|
792 const ::capnp::_::RawBrandedSchema::Binding Persistent<SturdyRef, Owner>::SaveParams::_capnpPrivate::brandBindings[] = {
|
Chris@50
|
793 ::capnp::_::brandBindingFor<SturdyRef>(),
|
Chris@50
|
794 ::capnp::_::brandBindingFor<Owner>(),
|
Chris@50
|
795 };
|
Chris@50
|
796 template <typename SturdyRef, typename Owner>
|
Chris@50
|
797 const ::capnp::_::RawBrandedSchema Persistent<SturdyRef, Owner>::SaveParams::_capnpPrivate::specificBrand = {
|
Chris@50
|
798 &::capnp::schemas::s_f76fba59183073a5, brandScopes, nullptr,
|
Chris@50
|
799 sizeof(brandScopes) / sizeof(brandScopes[0]), 0, nullptr
|
Chris@50
|
800 };
|
Chris@50
|
801 #endif // !CAPNP_LITE
|
Chris@50
|
802
|
Chris@50
|
803 template <typename SturdyRef, typename Owner>
|
Chris@50
|
804 inline bool Persistent<SturdyRef, Owner>::SaveResults::Reader::hasSturdyRef() const {
|
Chris@50
|
805 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
|
Chris@50
|
806 }
|
Chris@50
|
807 template <typename SturdyRef, typename Owner>
|
Chris@50
|
808 inline bool Persistent<SturdyRef, Owner>::SaveResults::Builder::hasSturdyRef() {
|
Chris@50
|
809 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
|
Chris@50
|
810 }
|
Chris@50
|
811 template <typename SturdyRef, typename Owner>
|
Chris@50
|
812 inline ::capnp::ReaderFor<SturdyRef> Persistent<SturdyRef, Owner>::SaveResults::Reader::getSturdyRef() const {
|
Chris@50
|
813 return ::capnp::_::PointerHelpers<SturdyRef>::get(
|
Chris@50
|
814 _reader.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
815 }
|
Chris@50
|
816 template <typename SturdyRef, typename Owner>
|
Chris@50
|
817 inline ::capnp::BuilderFor<SturdyRef> Persistent<SturdyRef, Owner>::SaveResults::Builder::getSturdyRef() {
|
Chris@50
|
818 return ::capnp::_::PointerHelpers<SturdyRef>::get(
|
Chris@50
|
819 _builder.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
820 }
|
Chris@50
|
821 #if !CAPNP_LITE
|
Chris@50
|
822 template <typename SturdyRef, typename Owner>
|
Chris@50
|
823 inline ::capnp::PipelineFor<SturdyRef> Persistent<SturdyRef, Owner>::SaveResults::Pipeline::getSturdyRef() {
|
Chris@50
|
824 return ::capnp::PipelineFor<SturdyRef>(_typeless.getPointerField(0));
|
Chris@50
|
825 }
|
Chris@50
|
826 #endif // !CAPNP_LITE
|
Chris@50
|
827 template <typename SturdyRef, typename Owner>
|
Chris@50
|
828 inline void Persistent<SturdyRef, Owner>::SaveResults::Builder::setSturdyRef( ::capnp::ReaderFor<SturdyRef> value) {
|
Chris@50
|
829 ::capnp::_::PointerHelpers<SturdyRef>::set(
|
Chris@50
|
830 _builder.getPointerField(0 * ::capnp::POINTERS), value);
|
Chris@50
|
831 }
|
Chris@50
|
832 template <typename SturdyRef, typename Owner>
|
Chris@50
|
833 inline ::capnp::BuilderFor<SturdyRef> Persistent<SturdyRef, Owner>::SaveResults::Builder::initSturdyRef() {
|
Chris@50
|
834 return ::capnp::_::PointerHelpers<SturdyRef>::init(
|
Chris@50
|
835 _builder.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
836 }
|
Chris@50
|
837 template <typename SturdyRef, typename Owner>
|
Chris@50
|
838 inline ::capnp::BuilderFor<SturdyRef> Persistent<SturdyRef, Owner>::SaveResults::Builder::initSturdyRef(unsigned int size) {
|
Chris@50
|
839 return ::capnp::_::PointerHelpers<SturdyRef>::init(
|
Chris@50
|
840 _builder.getPointerField(0 * ::capnp::POINTERS), size);
|
Chris@50
|
841 }
|
Chris@50
|
842 template <typename SturdyRef, typename Owner>
|
Chris@50
|
843 inline void Persistent<SturdyRef, Owner>::SaveResults::Builder::adoptSturdyRef(
|
Chris@50
|
844 ::capnp::Orphan<SturdyRef>&& value) {
|
Chris@50
|
845 ::capnp::_::PointerHelpers<SturdyRef>::adopt(
|
Chris@50
|
846 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value));
|
Chris@50
|
847 }
|
Chris@50
|
848 template <typename SturdyRef, typename Owner>
|
Chris@50
|
849 inline ::capnp::Orphan<SturdyRef> Persistent<SturdyRef, Owner>::SaveResults::Builder::disownSturdyRef() {
|
Chris@50
|
850 return ::capnp::_::PointerHelpers<SturdyRef>::disown(
|
Chris@50
|
851 _builder.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
852 }
|
Chris@50
|
853
|
Chris@50
|
854 // Persistent<SturdyRef, Owner>::SaveResults
|
Chris@50
|
855 template <typename SturdyRef, typename Owner>
|
Chris@50
|
856 constexpr uint16_t Persistent<SturdyRef, Owner>::SaveResults::_capnpPrivate::dataWordSize;
|
Chris@50
|
857 template <typename SturdyRef, typename Owner>
|
Chris@50
|
858 constexpr uint16_t Persistent<SturdyRef, Owner>::SaveResults::_capnpPrivate::pointerCount;
|
Chris@50
|
859 #if !CAPNP_LITE
|
Chris@50
|
860 template <typename SturdyRef, typename Owner>
|
Chris@50
|
861 constexpr ::capnp::Kind Persistent<SturdyRef, Owner>::SaveResults::_capnpPrivate::kind;
|
Chris@50
|
862 template <typename SturdyRef, typename Owner>
|
Chris@50
|
863 constexpr ::capnp::_::RawSchema const* Persistent<SturdyRef, Owner>::SaveResults::_capnpPrivate::schema;
|
Chris@50
|
864 template <typename SturdyRef, typename Owner>
|
Chris@50
|
865 constexpr ::capnp::_::RawBrandedSchema const* Persistent<SturdyRef, Owner>::SaveResults::_capnpPrivate::brand;
|
Chris@50
|
866 template <typename SturdyRef, typename Owner>
|
Chris@50
|
867 const ::capnp::_::RawBrandedSchema::Scope Persistent<SturdyRef, Owner>::SaveResults::_capnpPrivate::brandScopes[] = {
|
Chris@50
|
868 { 0xc8cb212fcd9f5691, brandBindings + 0, 2, false},
|
Chris@50
|
869 };
|
Chris@50
|
870 template <typename SturdyRef, typename Owner>
|
Chris@50
|
871 const ::capnp::_::RawBrandedSchema::Binding Persistent<SturdyRef, Owner>::SaveResults::_capnpPrivate::brandBindings[] = {
|
Chris@50
|
872 ::capnp::_::brandBindingFor<SturdyRef>(),
|
Chris@50
|
873 ::capnp::_::brandBindingFor<Owner>(),
|
Chris@50
|
874 };
|
Chris@50
|
875 template <typename SturdyRef, typename Owner>
|
Chris@50
|
876 const ::capnp::_::RawBrandedSchema Persistent<SturdyRef, Owner>::SaveResults::_capnpPrivate::specificBrand = {
|
Chris@50
|
877 &::capnp::schemas::s_b76848c18c40efbf, brandScopes, nullptr,
|
Chris@50
|
878 sizeof(brandScopes) / sizeof(brandScopes[0]), 0, nullptr
|
Chris@50
|
879 };
|
Chris@50
|
880 #endif // !CAPNP_LITE
|
Chris@50
|
881
|
Chris@50
|
882 #if !CAPNP_LITE
|
Chris@50
|
883 template <typename SturdyRef, typename Owner>
|
Chris@50
|
884 ::capnp::Request<typename ::capnp::Persistent<SturdyRef, Owner>::SaveParams, typename ::capnp::Persistent<SturdyRef, Owner>::SaveResults>
|
Chris@50
|
885 Persistent<SturdyRef, Owner>::Client::saveRequest(::kj::Maybe< ::capnp::MessageSize> sizeHint) {
|
Chris@50
|
886 return newCall<typename ::capnp::Persistent<SturdyRef, Owner>::SaveParams, typename ::capnp::Persistent<SturdyRef, Owner>::SaveResults>(
|
Chris@50
|
887 0xc8cb212fcd9f5691ull, 0, sizeHint);
|
Chris@50
|
888 }
|
Chris@50
|
889 template <typename SturdyRef, typename Owner>
|
Chris@50
|
890 ::kj::Promise<void> Persistent<SturdyRef, Owner>::Server::save(SaveContext) {
|
Chris@50
|
891 return ::capnp::Capability::Server::internalUnimplemented(
|
Chris@50
|
892 "capnp/persistent.capnp:Persistent", "save",
|
Chris@50
|
893 0xc8cb212fcd9f5691ull, 0);
|
Chris@50
|
894 }
|
Chris@50
|
895 template <typename SturdyRef, typename Owner>
|
Chris@50
|
896 ::kj::Promise<void> Persistent<SturdyRef, Owner>::Server::dispatchCall(
|
Chris@50
|
897 uint64_t interfaceId, uint16_t methodId,
|
Chris@50
|
898 ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
|
Chris@50
|
899 switch (interfaceId) {
|
Chris@50
|
900 case 0xc8cb212fcd9f5691ull:
|
Chris@50
|
901 return dispatchCallInternal(methodId, context);
|
Chris@50
|
902 default:
|
Chris@50
|
903 return internalUnimplemented("capnp/persistent.capnp:Persistent", interfaceId);
|
Chris@50
|
904 }
|
Chris@50
|
905 }
|
Chris@50
|
906 template <typename SturdyRef, typename Owner>
|
Chris@50
|
907 ::kj::Promise<void> Persistent<SturdyRef, Owner>::Server::dispatchCallInternal(
|
Chris@50
|
908 uint16_t methodId,
|
Chris@50
|
909 ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
|
Chris@50
|
910 switch (methodId) {
|
Chris@50
|
911 case 0:
|
Chris@50
|
912 return save(::capnp::Capability::Server::internalGetTypedContext<
|
Chris@50
|
913 typename ::capnp::Persistent<SturdyRef, Owner>::SaveParams, typename ::capnp::Persistent<SturdyRef, Owner>::SaveResults>(context));
|
Chris@50
|
914 default:
|
Chris@50
|
915 (void)context;
|
Chris@50
|
916 return ::capnp::Capability::Server::internalUnimplemented(
|
Chris@50
|
917 "capnp/persistent.capnp:Persistent",
|
Chris@50
|
918 0xc8cb212fcd9f5691ull, methodId);
|
Chris@50
|
919 }
|
Chris@50
|
920 }
|
Chris@50
|
921 #endif // !CAPNP_LITE
|
Chris@50
|
922
|
Chris@50
|
923 // Persistent<SturdyRef, Owner>
|
Chris@50
|
924 #if !CAPNP_LITE
|
Chris@50
|
925 template <typename SturdyRef, typename Owner>
|
Chris@50
|
926 constexpr ::capnp::Kind Persistent<SturdyRef, Owner>::_capnpPrivate::kind;
|
Chris@50
|
927 template <typename SturdyRef, typename Owner>
|
Chris@50
|
928 constexpr ::capnp::_::RawSchema const* Persistent<SturdyRef, Owner>::_capnpPrivate::schema;
|
Chris@50
|
929 template <typename SturdyRef, typename Owner>
|
Chris@50
|
930 constexpr ::capnp::_::RawBrandedSchema const* Persistent<SturdyRef, Owner>::_capnpPrivate::brand;
|
Chris@50
|
931 template <typename SturdyRef, typename Owner>
|
Chris@50
|
932 const ::capnp::_::RawBrandedSchema::Scope Persistent<SturdyRef, Owner>::_capnpPrivate::brandScopes[] = {
|
Chris@50
|
933 { 0xc8cb212fcd9f5691, brandBindings + 0, 2, false},
|
Chris@50
|
934 };
|
Chris@50
|
935 template <typename SturdyRef, typename Owner>
|
Chris@50
|
936 const ::capnp::_::RawBrandedSchema::Binding Persistent<SturdyRef, Owner>::_capnpPrivate::brandBindings[] = {
|
Chris@50
|
937 ::capnp::_::brandBindingFor<SturdyRef>(),
|
Chris@50
|
938 ::capnp::_::brandBindingFor<Owner>(),
|
Chris@50
|
939 };
|
Chris@50
|
940 template <typename SturdyRef, typename Owner>
|
Chris@50
|
941 const ::capnp::_::RawBrandedSchema::Dependency Persistent<SturdyRef, Owner>::_capnpPrivate::brandDependencies[] = {
|
Chris@50
|
942 { 33554432, ::capnp::Persistent<SturdyRef, Owner>::SaveParams::_capnpPrivate::brand },
|
Chris@50
|
943 { 50331648, ::capnp::Persistent<SturdyRef, Owner>::SaveResults::_capnpPrivate::brand },
|
Chris@50
|
944 };
|
Chris@50
|
945 template <typename SturdyRef, typename Owner>
|
Chris@50
|
946 const ::capnp::_::RawBrandedSchema Persistent<SturdyRef, Owner>::_capnpPrivate::specificBrand = {
|
Chris@50
|
947 &::capnp::schemas::s_c8cb212fcd9f5691, brandScopes, brandDependencies,
|
Chris@50
|
948 sizeof(brandScopes) / sizeof(brandScopes[0]), sizeof(brandDependencies) / sizeof(brandDependencies[0]), nullptr
|
Chris@50
|
949 };
|
Chris@50
|
950 #endif // !CAPNP_LITE
|
Chris@50
|
951
|
Chris@50
|
952 #if !CAPNP_LITE
|
Chris@50
|
953 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
954 inline RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Client::Client(decltype(nullptr))
|
Chris@50
|
955 : ::capnp::Capability::Client(nullptr) {}
|
Chris@50
|
956 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
957 inline RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Client::Client(
|
Chris@50
|
958 ::kj::Own< ::capnp::ClientHook>&& hook)
|
Chris@50
|
959 : ::capnp::Capability::Client(::kj::mv(hook)) {}
|
Chris@50
|
960 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
961 template <typename _t, typename>
|
Chris@50
|
962 inline RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Client::Client(::kj::Own<_t>&& server)
|
Chris@50
|
963 : ::capnp::Capability::Client(::kj::mv(server)) {}
|
Chris@50
|
964 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
965 template <typename _t, typename>
|
Chris@50
|
966 inline RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Client::Client(::kj::Promise<_t>&& promise)
|
Chris@50
|
967 : ::capnp::Capability::Client(::kj::mv(promise)) {}
|
Chris@50
|
968 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
969 inline RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Client::Client(::kj::Exception&& exception)
|
Chris@50
|
970 : ::capnp::Capability::Client(::kj::mv(exception)) {}
|
Chris@50
|
971 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
972 inline typename ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Client& RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Client::operator=(Client& other) {
|
Chris@50
|
973 ::capnp::Capability::Client::operator=(other);
|
Chris@50
|
974 return *this;
|
Chris@50
|
975 }
|
Chris@50
|
976 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
977 inline typename ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Client& RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Client::operator=(Client&& other) {
|
Chris@50
|
978 ::capnp::Capability::Client::operator=(kj::mv(other));
|
Chris@50
|
979 return *this;
|
Chris@50
|
980 }
|
Chris@50
|
981
|
Chris@50
|
982 #endif // !CAPNP_LITE
|
Chris@50
|
983 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
984 inline bool RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Reader::hasCap() const {
|
Chris@50
|
985 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
|
Chris@50
|
986 }
|
Chris@50
|
987 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
988 inline bool RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Builder::hasCap() {
|
Chris@50
|
989 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
|
Chris@50
|
990 }
|
Chris@50
|
991 #if !CAPNP_LITE
|
Chris@50
|
992 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
993 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::Client RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Reader::getCap() const {
|
Chris@50
|
994 return ::capnp::_::PointerHelpers< ::capnp::Persistent<ExternalRef, ExternalOwner>>::get(
|
Chris@50
|
995 _reader.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
996 }
|
Chris@50
|
997 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
998 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::Client RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Builder::getCap() {
|
Chris@50
|
999 return ::capnp::_::PointerHelpers< ::capnp::Persistent<ExternalRef, ExternalOwner>>::get(
|
Chris@50
|
1000 _builder.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
1001 }
|
Chris@50
|
1002 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1003 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::Client RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Pipeline::getCap() {
|
Chris@50
|
1004 return typename ::capnp::Persistent<ExternalRef, ExternalOwner>::Client(_typeless.getPointerField(0).asCap());
|
Chris@50
|
1005 }
|
Chris@50
|
1006 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1007 inline void RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Builder::setCap(typename ::capnp::Persistent<ExternalRef, ExternalOwner>::Client&& cap) {
|
Chris@50
|
1008 ::capnp::_::PointerHelpers< ::capnp::Persistent<ExternalRef, ExternalOwner>>::set(
|
Chris@50
|
1009 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(cap));
|
Chris@50
|
1010 }
|
Chris@50
|
1011 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1012 inline void RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Builder::setCap(typename ::capnp::Persistent<ExternalRef, ExternalOwner>::Client& cap) {
|
Chris@50
|
1013 ::capnp::_::PointerHelpers< ::capnp::Persistent<ExternalRef, ExternalOwner>>::set(
|
Chris@50
|
1014 _builder.getPointerField(0 * ::capnp::POINTERS), cap);
|
Chris@50
|
1015 }
|
Chris@50
|
1016 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1017 inline void RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Builder::adoptCap(
|
Chris@50
|
1018 ::capnp::Orphan< ::capnp::Persistent<ExternalRef, ExternalOwner>>&& value) {
|
Chris@50
|
1019 ::capnp::_::PointerHelpers< ::capnp::Persistent<ExternalRef, ExternalOwner>>::adopt(
|
Chris@50
|
1020 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value));
|
Chris@50
|
1021 }
|
Chris@50
|
1022 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1023 inline ::capnp::Orphan< ::capnp::Persistent<ExternalRef, ExternalOwner>> RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Builder::disownCap() {
|
Chris@50
|
1024 return ::capnp::_::PointerHelpers< ::capnp::Persistent<ExternalRef, ExternalOwner>>::disown(
|
Chris@50
|
1025 _builder.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
1026 }
|
Chris@50
|
1027 #endif // !CAPNP_LITE
|
Chris@50
|
1028
|
Chris@50
|
1029 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1030 inline bool RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Reader::hasParams() const {
|
Chris@50
|
1031 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull();
|
Chris@50
|
1032 }
|
Chris@50
|
1033 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1034 inline bool RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Builder::hasParams() {
|
Chris@50
|
1035 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull();
|
Chris@50
|
1036 }
|
Chris@50
|
1037 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1038 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams::Reader RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Reader::getParams() const {
|
Chris@50
|
1039 return ::capnp::_::PointerHelpers<typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams>::get(
|
Chris@50
|
1040 _reader.getPointerField(1 * ::capnp::POINTERS));
|
Chris@50
|
1041 }
|
Chris@50
|
1042 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1043 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams::Builder RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Builder::getParams() {
|
Chris@50
|
1044 return ::capnp::_::PointerHelpers<typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams>::get(
|
Chris@50
|
1045 _builder.getPointerField(1 * ::capnp::POINTERS));
|
Chris@50
|
1046 }
|
Chris@50
|
1047 #if !CAPNP_LITE
|
Chris@50
|
1048 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1049 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams::Pipeline RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Pipeline::getParams() {
|
Chris@50
|
1050 return typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams::Pipeline(_typeless.getPointerField(1));
|
Chris@50
|
1051 }
|
Chris@50
|
1052 #endif // !CAPNP_LITE
|
Chris@50
|
1053 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1054 inline void RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Builder::setParams(typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams::Reader value) {
|
Chris@50
|
1055 ::capnp::_::PointerHelpers<typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams>::set(
|
Chris@50
|
1056 _builder.getPointerField(1 * ::capnp::POINTERS), value);
|
Chris@50
|
1057 }
|
Chris@50
|
1058 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1059 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams::Builder RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Builder::initParams() {
|
Chris@50
|
1060 return ::capnp::_::PointerHelpers<typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams>::init(
|
Chris@50
|
1061 _builder.getPointerField(1 * ::capnp::POINTERS));
|
Chris@50
|
1062 }
|
Chris@50
|
1063 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1064 inline void RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Builder::adoptParams(
|
Chris@50
|
1065 ::capnp::Orphan<typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams>&& value) {
|
Chris@50
|
1066 ::capnp::_::PointerHelpers<typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams>::adopt(
|
Chris@50
|
1067 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value));
|
Chris@50
|
1068 }
|
Chris@50
|
1069 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1070 inline ::capnp::Orphan<typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams> RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::Builder::disownParams() {
|
Chris@50
|
1071 return ::capnp::_::PointerHelpers<typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams>::disown(
|
Chris@50
|
1072 _builder.getPointerField(1 * ::capnp::POINTERS));
|
Chris@50
|
1073 }
|
Chris@50
|
1074
|
Chris@50
|
1075 // RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams
|
Chris@50
|
1076 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1077 constexpr uint16_t RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::_capnpPrivate::dataWordSize;
|
Chris@50
|
1078 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1079 constexpr uint16_t RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::_capnpPrivate::pointerCount;
|
Chris@50
|
1080 #if !CAPNP_LITE
|
Chris@50
|
1081 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1082 constexpr ::capnp::Kind RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::_capnpPrivate::kind;
|
Chris@50
|
1083 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1084 constexpr ::capnp::_::RawSchema const* RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::_capnpPrivate::schema;
|
Chris@50
|
1085 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1086 constexpr ::capnp::_::RawBrandedSchema const* RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::_capnpPrivate::brand;
|
Chris@50
|
1087 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1088 const ::capnp::_::RawBrandedSchema::Scope RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::_capnpPrivate::brandScopes[] = {
|
Chris@50
|
1089 { 0x84ff286cd00a3ed4, brandBindings + 0, 4, false},
|
Chris@50
|
1090 };
|
Chris@50
|
1091 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1092 const ::capnp::_::RawBrandedSchema::Binding RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::_capnpPrivate::brandBindings[] = {
|
Chris@50
|
1093 ::capnp::_::brandBindingFor<InternalRef>(),
|
Chris@50
|
1094 ::capnp::_::brandBindingFor<ExternalRef>(),
|
Chris@50
|
1095 ::capnp::_::brandBindingFor<InternalOwner>(),
|
Chris@50
|
1096 ::capnp::_::brandBindingFor<ExternalOwner>(),
|
Chris@50
|
1097 };
|
Chris@50
|
1098 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1099 const ::capnp::_::RawBrandedSchema::Dependency RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::_capnpPrivate::brandDependencies[] = {
|
Chris@50
|
1100 { 16777216, ::capnp::Persistent<ExternalRef, ExternalOwner>::_capnpPrivate::brand },
|
Chris@50
|
1101 { 16777217, ::capnp::Persistent<InternalRef, InternalOwner>::SaveParams::_capnpPrivate::brand },
|
Chris@50
|
1102 };
|
Chris@50
|
1103 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1104 const ::capnp::_::RawBrandedSchema RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::_capnpPrivate::specificBrand = {
|
Chris@50
|
1105 &::capnp::schemas::s_f0c2cc1d3909574d, brandScopes, brandDependencies,
|
Chris@50
|
1106 sizeof(brandScopes) / sizeof(brandScopes[0]), sizeof(brandDependencies) / sizeof(brandDependencies[0]), nullptr
|
Chris@50
|
1107 };
|
Chris@50
|
1108 #endif // !CAPNP_LITE
|
Chris@50
|
1109
|
Chris@50
|
1110 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1111 inline bool RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Reader::hasCap() const {
|
Chris@50
|
1112 return !_reader.getPointerField(0 * ::capnp::POINTERS).isNull();
|
Chris@50
|
1113 }
|
Chris@50
|
1114 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1115 inline bool RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Builder::hasCap() {
|
Chris@50
|
1116 return !_builder.getPointerField(0 * ::capnp::POINTERS).isNull();
|
Chris@50
|
1117 }
|
Chris@50
|
1118 #if !CAPNP_LITE
|
Chris@50
|
1119 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1120 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::Client RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Reader::getCap() const {
|
Chris@50
|
1121 return ::capnp::_::PointerHelpers< ::capnp::Persistent<InternalRef, InternalOwner>>::get(
|
Chris@50
|
1122 _reader.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
1123 }
|
Chris@50
|
1124 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1125 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::Client RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Builder::getCap() {
|
Chris@50
|
1126 return ::capnp::_::PointerHelpers< ::capnp::Persistent<InternalRef, InternalOwner>>::get(
|
Chris@50
|
1127 _builder.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
1128 }
|
Chris@50
|
1129 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1130 inline typename ::capnp::Persistent<InternalRef, InternalOwner>::Client RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Pipeline::getCap() {
|
Chris@50
|
1131 return typename ::capnp::Persistent<InternalRef, InternalOwner>::Client(_typeless.getPointerField(0).asCap());
|
Chris@50
|
1132 }
|
Chris@50
|
1133 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1134 inline void RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Builder::setCap(typename ::capnp::Persistent<InternalRef, InternalOwner>::Client&& cap) {
|
Chris@50
|
1135 ::capnp::_::PointerHelpers< ::capnp::Persistent<InternalRef, InternalOwner>>::set(
|
Chris@50
|
1136 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(cap));
|
Chris@50
|
1137 }
|
Chris@50
|
1138 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1139 inline void RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Builder::setCap(typename ::capnp::Persistent<InternalRef, InternalOwner>::Client& cap) {
|
Chris@50
|
1140 ::capnp::_::PointerHelpers< ::capnp::Persistent<InternalRef, InternalOwner>>::set(
|
Chris@50
|
1141 _builder.getPointerField(0 * ::capnp::POINTERS), cap);
|
Chris@50
|
1142 }
|
Chris@50
|
1143 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1144 inline void RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Builder::adoptCap(
|
Chris@50
|
1145 ::capnp::Orphan< ::capnp::Persistent<InternalRef, InternalOwner>>&& value) {
|
Chris@50
|
1146 ::capnp::_::PointerHelpers< ::capnp::Persistent<InternalRef, InternalOwner>>::adopt(
|
Chris@50
|
1147 _builder.getPointerField(0 * ::capnp::POINTERS), kj::mv(value));
|
Chris@50
|
1148 }
|
Chris@50
|
1149 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1150 inline ::capnp::Orphan< ::capnp::Persistent<InternalRef, InternalOwner>> RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Builder::disownCap() {
|
Chris@50
|
1151 return ::capnp::_::PointerHelpers< ::capnp::Persistent<InternalRef, InternalOwner>>::disown(
|
Chris@50
|
1152 _builder.getPointerField(0 * ::capnp::POINTERS));
|
Chris@50
|
1153 }
|
Chris@50
|
1154 #endif // !CAPNP_LITE
|
Chris@50
|
1155
|
Chris@50
|
1156 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1157 inline bool RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Reader::hasParams() const {
|
Chris@50
|
1158 return !_reader.getPointerField(1 * ::capnp::POINTERS).isNull();
|
Chris@50
|
1159 }
|
Chris@50
|
1160 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1161 inline bool RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Builder::hasParams() {
|
Chris@50
|
1162 return !_builder.getPointerField(1 * ::capnp::POINTERS).isNull();
|
Chris@50
|
1163 }
|
Chris@50
|
1164 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1165 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams::Reader RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Reader::getParams() const {
|
Chris@50
|
1166 return ::capnp::_::PointerHelpers<typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams>::get(
|
Chris@50
|
1167 _reader.getPointerField(1 * ::capnp::POINTERS));
|
Chris@50
|
1168 }
|
Chris@50
|
1169 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1170 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams::Builder RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Builder::getParams() {
|
Chris@50
|
1171 return ::capnp::_::PointerHelpers<typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams>::get(
|
Chris@50
|
1172 _builder.getPointerField(1 * ::capnp::POINTERS));
|
Chris@50
|
1173 }
|
Chris@50
|
1174 #if !CAPNP_LITE
|
Chris@50
|
1175 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1176 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams::Pipeline RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Pipeline::getParams() {
|
Chris@50
|
1177 return typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams::Pipeline(_typeless.getPointerField(1));
|
Chris@50
|
1178 }
|
Chris@50
|
1179 #endif // !CAPNP_LITE
|
Chris@50
|
1180 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1181 inline void RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Builder::setParams(typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams::Reader value) {
|
Chris@50
|
1182 ::capnp::_::PointerHelpers<typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams>::set(
|
Chris@50
|
1183 _builder.getPointerField(1 * ::capnp::POINTERS), value);
|
Chris@50
|
1184 }
|
Chris@50
|
1185 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1186 inline typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams::Builder RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Builder::initParams() {
|
Chris@50
|
1187 return ::capnp::_::PointerHelpers<typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams>::init(
|
Chris@50
|
1188 _builder.getPointerField(1 * ::capnp::POINTERS));
|
Chris@50
|
1189 }
|
Chris@50
|
1190 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1191 inline void RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Builder::adoptParams(
|
Chris@50
|
1192 ::capnp::Orphan<typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams>&& value) {
|
Chris@50
|
1193 ::capnp::_::PointerHelpers<typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams>::adopt(
|
Chris@50
|
1194 _builder.getPointerField(1 * ::capnp::POINTERS), kj::mv(value));
|
Chris@50
|
1195 }
|
Chris@50
|
1196 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1197 inline ::capnp::Orphan<typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams> RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::Builder::disownParams() {
|
Chris@50
|
1198 return ::capnp::_::PointerHelpers<typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams>::disown(
|
Chris@50
|
1199 _builder.getPointerField(1 * ::capnp::POINTERS));
|
Chris@50
|
1200 }
|
Chris@50
|
1201
|
Chris@50
|
1202 // RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams
|
Chris@50
|
1203 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1204 constexpr uint16_t RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::_capnpPrivate::dataWordSize;
|
Chris@50
|
1205 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1206 constexpr uint16_t RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::_capnpPrivate::pointerCount;
|
Chris@50
|
1207 #if !CAPNP_LITE
|
Chris@50
|
1208 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1209 constexpr ::capnp::Kind RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::_capnpPrivate::kind;
|
Chris@50
|
1210 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1211 constexpr ::capnp::_::RawSchema const* RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::_capnpPrivate::schema;
|
Chris@50
|
1212 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1213 constexpr ::capnp::_::RawBrandedSchema const* RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::_capnpPrivate::brand;
|
Chris@50
|
1214 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1215 const ::capnp::_::RawBrandedSchema::Scope RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::_capnpPrivate::brandScopes[] = {
|
Chris@50
|
1216 { 0x84ff286cd00a3ed4, brandBindings + 0, 4, false},
|
Chris@50
|
1217 };
|
Chris@50
|
1218 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1219 const ::capnp::_::RawBrandedSchema::Binding RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::_capnpPrivate::brandBindings[] = {
|
Chris@50
|
1220 ::capnp::_::brandBindingFor<InternalRef>(),
|
Chris@50
|
1221 ::capnp::_::brandBindingFor<ExternalRef>(),
|
Chris@50
|
1222 ::capnp::_::brandBindingFor<InternalOwner>(),
|
Chris@50
|
1223 ::capnp::_::brandBindingFor<ExternalOwner>(),
|
Chris@50
|
1224 };
|
Chris@50
|
1225 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1226 const ::capnp::_::RawBrandedSchema::Dependency RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::_capnpPrivate::brandDependencies[] = {
|
Chris@50
|
1227 { 16777216, ::capnp::Persistent<InternalRef, InternalOwner>::_capnpPrivate::brand },
|
Chris@50
|
1228 { 16777217, ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveParams::_capnpPrivate::brand },
|
Chris@50
|
1229 };
|
Chris@50
|
1230 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1231 const ::capnp::_::RawBrandedSchema RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::_capnpPrivate::specificBrand = {
|
Chris@50
|
1232 &::capnp::schemas::s_ecafa18b482da3aa, brandScopes, brandDependencies,
|
Chris@50
|
1233 sizeof(brandScopes) / sizeof(brandScopes[0]), sizeof(brandDependencies) / sizeof(brandDependencies[0]), nullptr
|
Chris@50
|
1234 };
|
Chris@50
|
1235 #endif // !CAPNP_LITE
|
Chris@50
|
1236
|
Chris@50
|
1237 #if !CAPNP_LITE
|
Chris@50
|
1238 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1239 ::capnp::Request<typename ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams, typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveResults>
|
Chris@50
|
1240 RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Client::importRequest(::kj::Maybe< ::capnp::MessageSize> sizeHint) {
|
Chris@50
|
1241 return newCall<typename ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams, typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveResults>(
|
Chris@50
|
1242 0x84ff286cd00a3ed4ull, 0, sizeHint);
|
Chris@50
|
1243 }
|
Chris@50
|
1244 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1245 ::kj::Promise<void> RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Server::import(ImportContext) {
|
Chris@50
|
1246 return ::capnp::Capability::Server::internalUnimplemented(
|
Chris@50
|
1247 "capnp/persistent.capnp:RealmGateway", "import",
|
Chris@50
|
1248 0x84ff286cd00a3ed4ull, 0);
|
Chris@50
|
1249 }
|
Chris@50
|
1250 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1251 ::capnp::Request<typename ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams, typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveResults>
|
Chris@50
|
1252 RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Client::exportRequest(::kj::Maybe< ::capnp::MessageSize> sizeHint) {
|
Chris@50
|
1253 return newCall<typename ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams, typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveResults>(
|
Chris@50
|
1254 0x84ff286cd00a3ed4ull, 1, sizeHint);
|
Chris@50
|
1255 }
|
Chris@50
|
1256 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1257 ::kj::Promise<void> RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Server::export_(ExportContext) {
|
Chris@50
|
1258 return ::capnp::Capability::Server::internalUnimplemented(
|
Chris@50
|
1259 "capnp/persistent.capnp:RealmGateway", "export",
|
Chris@50
|
1260 0x84ff286cd00a3ed4ull, 1);
|
Chris@50
|
1261 }
|
Chris@50
|
1262 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1263 ::kj::Promise<void> RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Server::dispatchCall(
|
Chris@50
|
1264 uint64_t interfaceId, uint16_t methodId,
|
Chris@50
|
1265 ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
|
Chris@50
|
1266 switch (interfaceId) {
|
Chris@50
|
1267 case 0x84ff286cd00a3ed4ull:
|
Chris@50
|
1268 return dispatchCallInternal(methodId, context);
|
Chris@50
|
1269 default:
|
Chris@50
|
1270 return internalUnimplemented("capnp/persistent.capnp:RealmGateway", interfaceId);
|
Chris@50
|
1271 }
|
Chris@50
|
1272 }
|
Chris@50
|
1273 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1274 ::kj::Promise<void> RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::Server::dispatchCallInternal(
|
Chris@50
|
1275 uint16_t methodId,
|
Chris@50
|
1276 ::capnp::CallContext< ::capnp::AnyPointer, ::capnp::AnyPointer> context) {
|
Chris@50
|
1277 switch (methodId) {
|
Chris@50
|
1278 case 0:
|
Chris@50
|
1279 return import(::capnp::Capability::Server::internalGetTypedContext<
|
Chris@50
|
1280 typename ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams, typename ::capnp::Persistent<InternalRef, InternalOwner>::SaveResults>(context));
|
Chris@50
|
1281 case 1:
|
Chris@50
|
1282 return export_(::capnp::Capability::Server::internalGetTypedContext<
|
Chris@50
|
1283 typename ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams, typename ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveResults>(context));
|
Chris@50
|
1284 default:
|
Chris@50
|
1285 (void)context;
|
Chris@50
|
1286 return ::capnp::Capability::Server::internalUnimplemented(
|
Chris@50
|
1287 "capnp/persistent.capnp:RealmGateway",
|
Chris@50
|
1288 0x84ff286cd00a3ed4ull, methodId);
|
Chris@50
|
1289 }
|
Chris@50
|
1290 }
|
Chris@50
|
1291 #endif // !CAPNP_LITE
|
Chris@50
|
1292
|
Chris@50
|
1293 // RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>
|
Chris@50
|
1294 #if !CAPNP_LITE
|
Chris@50
|
1295 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1296 constexpr ::capnp::Kind RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::_capnpPrivate::kind;
|
Chris@50
|
1297 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1298 constexpr ::capnp::_::RawSchema const* RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::_capnpPrivate::schema;
|
Chris@50
|
1299 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1300 constexpr ::capnp::_::RawBrandedSchema const* RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::_capnpPrivate::brand;
|
Chris@50
|
1301 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1302 const ::capnp::_::RawBrandedSchema::Scope RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::_capnpPrivate::brandScopes[] = {
|
Chris@50
|
1303 { 0x84ff286cd00a3ed4, brandBindings + 0, 4, false},
|
Chris@50
|
1304 };
|
Chris@50
|
1305 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1306 const ::capnp::_::RawBrandedSchema::Binding RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::_capnpPrivate::brandBindings[] = {
|
Chris@50
|
1307 ::capnp::_::brandBindingFor<InternalRef>(),
|
Chris@50
|
1308 ::capnp::_::brandBindingFor<ExternalRef>(),
|
Chris@50
|
1309 ::capnp::_::brandBindingFor<InternalOwner>(),
|
Chris@50
|
1310 ::capnp::_::brandBindingFor<ExternalOwner>(),
|
Chris@50
|
1311 };
|
Chris@50
|
1312 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1313 const ::capnp::_::RawBrandedSchema::Dependency RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::_capnpPrivate::brandDependencies[] = {
|
Chris@50
|
1314 { 33554432, ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ImportParams::_capnpPrivate::brand },
|
Chris@50
|
1315 { 33554433, ::capnp::RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::ExportParams::_capnpPrivate::brand },
|
Chris@50
|
1316 { 50331648, ::capnp::Persistent<InternalRef, InternalOwner>::SaveResults::_capnpPrivate::brand },
|
Chris@50
|
1317 { 50331649, ::capnp::Persistent<ExternalRef, ExternalOwner>::SaveResults::_capnpPrivate::brand },
|
Chris@50
|
1318 };
|
Chris@50
|
1319 template <typename InternalRef, typename ExternalRef, typename InternalOwner, typename ExternalOwner>
|
Chris@50
|
1320 const ::capnp::_::RawBrandedSchema RealmGateway<InternalRef, ExternalRef, InternalOwner, ExternalOwner>::_capnpPrivate::specificBrand = {
|
Chris@50
|
1321 &::capnp::schemas::s_84ff286cd00a3ed4, brandScopes, brandDependencies,
|
Chris@50
|
1322 sizeof(brandScopes) / sizeof(brandScopes[0]), sizeof(brandDependencies) / sizeof(brandDependencies[0]), nullptr
|
Chris@50
|
1323 };
|
Chris@50
|
1324 #endif // !CAPNP_LITE
|
Chris@50
|
1325
|
Chris@50
|
1326 } // namespace
|
Chris@50
|
1327
|
Chris@50
|
1328 #endif // CAPNP_INCLUDED_b8630836983feed7_
|