Commit 680b6979 authored by Kenton Varda's avatar Kenton Varda

More fixes for AnyPointer / AnyList.

parent 5f07c032
...@@ -124,6 +124,10 @@ TEST(Any, AnyStruct) { ...@@ -124,6 +124,10 @@ TEST(Any, AnyStruct) {
EXPECT_EQ(48, b.getDataSection().size()); EXPECT_EQ(48, b.getDataSection().size());
EXPECT_EQ(20, b.getPointerSection().size()); EXPECT_EQ(20, b.getPointerSection().size());
b = root.getAnyPointerField().getAs<TestAllTypes>();
EXPECT_EQ(48, b.getDataSection().size());
EXPECT_EQ(20, b.getPointerSection().size());
auto r = toAny(root.getAnyPointerField().getAs<TestAllTypes>().asReader()); auto r = toAny(root.getAnyPointerField().getAs<TestAllTypes>().asReader());
EXPECT_EQ(48, r.getDataSection().size()); EXPECT_EQ(48, r.getDataSection().size());
EXPECT_EQ(20, r.getPointerSection().size()); EXPECT_EQ(20, r.getPointerSection().size());
...@@ -132,10 +136,15 @@ TEST(Any, AnyStruct) { ...@@ -132,10 +136,15 @@ TEST(Any, AnyStruct) {
EXPECT_EQ(48, r.getDataSection().size()); EXPECT_EQ(48, r.getDataSection().size());
EXPECT_EQ(20, r.getPointerSection().size()); EXPECT_EQ(20, r.getPointerSection().size());
r = root.getAnyPointerField().getAs<TestAllTypes>().asReader();
EXPECT_EQ(48, r.getDataSection().size());
EXPECT_EQ(20, r.getPointerSection().size());
{ {
MallocMessageBuilder b2; MallocMessageBuilder b2;
auto root2 = b2.getRoot<test::TestAnyPointer>(); auto root2 = b2.getRoot<test::TestAnyPointer>();
auto sb = root2.getAnyPointerField().initAsAnyStruct(r.getDataSection().size() / 8, r.getPointerSection().size()); auto sb = root2.getAnyPointerField().initAsAnyStruct(
r.getDataSection().size() / 8, r.getPointerSection().size());
EXPECT_EQ(48, sb.getDataSection().size()); EXPECT_EQ(48, sb.getDataSection().size());
EXPECT_EQ(20, sb.getPointerSection().size()); EXPECT_EQ(20, sb.getPointerSection().size());
...@@ -168,6 +177,11 @@ TEST(Any, AnyList) { ...@@ -168,6 +177,11 @@ TEST(Any, AnyList) {
EXPECT_EQ(48, alb.as<List<AnyStruct>>()[0].getDataSection().size()); EXPECT_EQ(48, alb.as<List<AnyStruct>>()[0].getDataSection().size());
EXPECT_EQ(20, alb.as<List<AnyStruct>>()[0].getPointerSection().size()); EXPECT_EQ(20, alb.as<List<AnyStruct>>()[0].getPointerSection().size());
alb = root.getAnyPointerField().getAs<List<TestAllTypes>>();
EXPECT_EQ(2, alb.size());
EXPECT_EQ(48, alb.as<List<AnyStruct>>()[0].getDataSection().size());
EXPECT_EQ(20, alb.as<List<AnyStruct>>()[0].getPointerSection().size());
auto alr = toAny(root.getAnyPointerField().getAs<List<TestAllTypes>>().asReader()); auto alr = toAny(root.getAnyPointerField().getAs<List<TestAllTypes>>().asReader());
EXPECT_EQ(2, alr.size()); EXPECT_EQ(2, alr.size());
EXPECT_EQ(48, alr.as<List<AnyStruct>>()[0].getDataSection().size()); EXPECT_EQ(48, alr.as<List<AnyStruct>>()[0].getDataSection().size());
...@@ -178,6 +192,10 @@ TEST(Any, AnyList) { ...@@ -178,6 +192,10 @@ TEST(Any, AnyList) {
EXPECT_EQ(48, alr.as<List<AnyStruct>>()[0].getDataSection().size()); EXPECT_EQ(48, alr.as<List<AnyStruct>>()[0].getDataSection().size());
EXPECT_EQ(20, alr.as<List<AnyStruct>>()[0].getPointerSection().size()); EXPECT_EQ(20, alr.as<List<AnyStruct>>()[0].getPointerSection().size());
alr = root.getAnyPointerField().getAs<List<TestAllTypes>>().asReader();
EXPECT_EQ(2, alr.size());
EXPECT_EQ(48, alr.as<List<AnyStruct>>()[0].getDataSection().size());
EXPECT_EQ(20, alr.as<List<AnyStruct>>()[0].getPointerSection().size());
} }
} // namespace } // namespace
......
...@@ -224,12 +224,6 @@ struct AnyPointer { ...@@ -224,12 +224,6 @@ struct AnyPointer {
inline Reader asReader() const { return Reader(builder.asReader()); } inline Reader asReader() const { return Reader(builder.asReader()); }
inline operator Reader() const { return Reader(builder.asReader()); } inline operator Reader() const { return Reader(builder.asReader()); }
inline void setInternal(_::StructReader value) { builder.setStruct(value); }
// For internal use.
//
// TODO(cleanup): RPC implementation uses this, but wouldn't have to if we had an AnyStruct
// type, which would be useful anyawy.
private: private:
_::PointerBuilder builder; _::PointerBuilder builder;
friend class Orphanage; friend class Orphanage;
...@@ -335,9 +329,6 @@ private: ...@@ -335,9 +329,6 @@ private:
friend class AnyPointer::Builder; friend class AnyPointer::Builder;
}; };
struct AnyList;
struct AnyStruct;
template <Kind k> struct AnyTypeFor_; template <Kind k> struct AnyTypeFor_;
template <> struct AnyTypeFor_<Kind::STRUCT> { typedef AnyStruct Type; }; template <> struct AnyTypeFor_<Kind::STRUCT> { typedef AnyStruct Type; };
template <> struct AnyTypeFor_<Kind::LIST> { typedef AnyList Type; }; template <> struct AnyTypeFor_<Kind::LIST> { typedef AnyList Type; };
...@@ -347,17 +338,20 @@ using AnyTypeFor = typename AnyTypeFor_<kind<T>()>::Type; ...@@ -347,17 +338,20 @@ using AnyTypeFor = typename AnyTypeFor_<kind<T>()>::Type;
template <typename T> template <typename T>
inline ReaderFor<AnyTypeFor<FromReader<T>>> toAny(T&& value) { inline ReaderFor<AnyTypeFor<FromReader<T>>> toAny(T&& value) {
return ReaderFor<AnyTypeFor<FromReader<T> > >( return ReaderFor<AnyTypeFor<FromReader<T>>>(
_::PointerHelpers<FromReader<T>>::getInternalReader(value)); _::PointerHelpers<FromReader<T>>::getInternalReader(value));
} }
template <typename T> template <typename T>
inline BuilderFor<AnyTypeFor<FromBuilder<T>>> toAny(T&& value) { inline BuilderFor<AnyTypeFor<FromBuilder<T>>> toAny(T&& value) {
return BuilderFor<AnyTypeFor<FromBuilder<T> > >( return BuilderFor<AnyTypeFor<FromBuilder<T>>>(
_::PointerHelpers<FromBuilder<T>>::getInternalBuilder(kj::mv(value))); _::PointerHelpers<FromBuilder<T>>::getInternalBuilder(kj::mv(value)));
} }
template <> template <>
struct List<AnyPointer, Kind::OTHER> { struct List<AnyPointer, Kind::OTHER> {
// Note: This cannot be used for a list of structs, since such lists are not encoded as pointer
// lists! Use List<AnyStruct>.
List() = delete; List() = delete;
class Reader { class Reader {
...@@ -411,10 +405,10 @@ struct List<AnyPointer, Kind::OTHER> { ...@@ -411,10 +405,10 @@ struct List<AnyPointer, Kind::OTHER> {
private: private:
_::ListBuilder builder; _::ListBuilder builder;
template <typename U, Kind K> template <typename, Kind>
friend struct _::PointerHelpers; friend struct _::PointerHelpers;
friend class Orphanage; friend class Orphanage;
template <typename U, Kind K> template <typename, Kind>
friend struct ToDynamic_; friend struct ToDynamic_;
}; };
}; };
...@@ -424,6 +418,10 @@ public: ...@@ -424,6 +418,10 @@ public:
Reader() = default; Reader() = default;
inline Reader(_::StructReader reader): _reader(reader) {} inline Reader(_::StructReader reader): _reader(reader) {}
template <typename T, typename = kj::EnableIf<kind<FromReader<T>>() == Kind::STRUCT>>
inline Reader(T&& value)
: _reader(_::PointerHelpers<FromReader<T>>::getInternalReader(kj::fwd<T>(value))) {}
Data::Reader getDataSection() { Data::Reader getDataSection() {
return _reader.getDataSectionAsBlob(); return _reader.getDataSectionAsBlob();
} }
...@@ -436,14 +434,20 @@ public: ...@@ -436,14 +434,20 @@ public:
// T must be a struct type. // T must be a struct type.
private: private:
_::StructReader _reader; _::StructReader _reader;
template <typename, Kind>
friend struct _::PointerHelpers;
}; };
class AnyStruct::Builder { class AnyStruct::Builder {
public: public:
inline Builder(decltype(nullptr)) {} inline Builder(decltype(nullptr)) {}
inline Builder(_::PointerBuilder builder, _::StructSize size, const word* defaultValue = nullptr): _builder(builder.getStruct(size, defaultValue)) {}
inline Builder(_::StructBuilder builder): _builder(builder) {} inline Builder(_::StructBuilder builder): _builder(builder) {}
template <typename T, typename = kj::EnableIf<kind<FromBuilder<T>>() == Kind::STRUCT>>
inline Builder(T&& value)
: _builder(_::PointerHelpers<FromBuilder<T>>::getInternalBuilder(kj::fwd<T>(value))) {}
inline Data::Builder getDataSection() { inline Data::Builder getDataSection() {
return _builder.getDataSectionAsBlob(); return _builder.getDataSectionAsBlob();
} }
...@@ -541,6 +545,10 @@ public: ...@@ -541,6 +545,10 @@ public:
Reader() = default; Reader() = default;
inline Reader(_::ListReader reader): _reader(reader) {} inline Reader(_::ListReader reader): _reader(reader) {}
template <typename T, typename = kj::EnableIf<kind<FromReader<T>>() == Kind::LIST>>
inline Reader(T&& value)
: _reader(_::PointerHelpers<FromReader<T>>::getInternalReader(kj::fwd<T>(value))) {}
inline ElementSize getElementSize() { return _reader.getElementSize(); } inline ElementSize getElementSize() { return _reader.getElementSize(); }
inline uint size() { return _reader.size() / ELEMENTS; } inline uint size() { return _reader.size() / ELEMENTS; }
...@@ -550,6 +558,9 @@ public: ...@@ -550,6 +558,9 @@ public:
} }
private: private:
_::ListReader _reader; _::ListReader _reader;
template <typename, Kind>
friend struct _::PointerHelpers;
}; };
class AnyList::Builder { class AnyList::Builder {
...@@ -557,6 +568,10 @@ public: ...@@ -557,6 +568,10 @@ public:
inline Builder(decltype(nullptr)) {} inline Builder(decltype(nullptr)) {}
inline Builder(_::ListBuilder builder): _builder(builder) {} inline Builder(_::ListBuilder builder): _builder(builder) {}
template <typename T, typename = kj::EnableIf<kind<FromBuilder<T>>() == Kind::LIST>>
inline Builder(T&& value)
: _builder(_::PointerHelpers<FromBuilder<T>>::getInternalBuilder(kj::fwd<T>(value))) {}
inline ElementSize getElementSize() { return _builder.getElementSize(); } inline ElementSize getElementSize() { return _builder.getElementSize(); }
inline uint size() { return _builder.size() / ELEMENTS; } inline uint size() { return _builder.size() / ELEMENTS; }
...@@ -572,50 +587,6 @@ private: ...@@ -572,50 +587,6 @@ private:
_::ListBuilder _builder; _::ListBuilder _builder;
}; };
namespace _ { // (private)
template <>
struct PointerHelpers<AnyStruct, Kind::OTHER> {
static inline typename AnyStruct::Reader get(
PointerReader reader, const word* defaultValue = nullptr) {
return typename AnyStruct::Reader(reader.getStruct(defaultValue));
}
static inline typename AnyStruct::Builder get(
PointerBuilder builder, const word* defaultValue = nullptr) {
// TODO(someday): allow specifying the size
return typename AnyStruct::Builder(
builder, _::StructSize(0 * WORDS, 0 * POINTERS), defaultValue);
}
static inline typename AnyStruct::Builder init(
PointerBuilder builder, uint dataWordCount, uint pointerCount) {
return typename AnyStruct::Builder(builder.initStruct(
StructSize(dataWordCount * WORDS, pointerCount * POINTERS)));
}
};
template <>
struct PointerHelpers<AnyList, Kind::OTHER> {
static inline typename AnyList::Reader get(
PointerReader reader, const word* defaultValue = nullptr) {
return typename AnyList::Reader(reader.getListAnySize(defaultValue));
}
static inline typename AnyList::Builder get(
PointerBuilder builder, const word* defaultValue = nullptr) {
return typename AnyList::Builder(builder.getListAnySize(defaultValue));
}
static inline typename AnyList::Builder init(
PointerBuilder builder, ElementSize elementSize, uint elementCount) {
return typename AnyList::Builder(builder.initList(elementSize, elementCount * ELEMENTS));
}
static inline typename AnyList::Builder init(
PointerBuilder builder, uint dataWordCount, uint pointerCount, uint elementCount) {
return typename AnyList::Builder(builder.initStructList(
elementCount * ELEMENTS, StructSize(dataWordCount * WORDS, pointerCount * POINTERS)));
}
};
} // namespace _ (private)
// ======================================================================================= // =======================================================================================
// Pipeline helpers // Pipeline helpers
// //
...@@ -839,6 +810,52 @@ struct PointerHelpers<AnyPointer, Kind::OTHER> { ...@@ -839,6 +810,52 @@ struct PointerHelpers<AnyPointer, Kind::OTHER> {
} }
}; };
template <>
struct PointerHelpers<AnyStruct, Kind::OTHER> {
static inline typename AnyStruct::Reader get(
PointerReader reader, const word* defaultValue = nullptr) {
return AnyStruct::Reader(reader.getStruct(defaultValue));
}
static inline typename AnyStruct::Builder get(
PointerBuilder builder, const word* defaultValue = nullptr) {
// TODO(someday): Allow specifying the size somehow?
return AnyStruct::Builder(builder.getStruct(
_::StructSize(0 * WORDS, 0 * POINTERS), defaultValue));
}
static inline void set(PointerBuilder builder, AnyStruct::Reader value) {
builder.setStruct(value._reader);
}
static inline typename AnyStruct::Builder init(
PointerBuilder builder, uint dataWordCount, uint pointerCount) {
return typename AnyStruct::Builder(builder.initStruct(
StructSize(dataWordCount * WORDS, pointerCount * POINTERS)));
}
};
template <>
struct PointerHelpers<AnyList, Kind::OTHER> {
static inline typename AnyList::Reader get(
PointerReader reader, const word* defaultValue = nullptr) {
return AnyList::Reader(reader.getListAnySize(defaultValue));
}
static inline typename AnyList::Builder get(
PointerBuilder builder, const word* defaultValue = nullptr) {
return AnyList::Builder(builder.getListAnySize(defaultValue));
}
static inline void set(PointerBuilder builder, AnyList::Reader value) {
builder.setList(value._reader);
}
static inline typename AnyList::Builder init(
PointerBuilder builder, ElementSize elementSize, uint elementCount) {
return AnyList::Builder(builder.initList(elementSize, elementCount * ELEMENTS));
}
static inline typename AnyList::Builder init(
PointerBuilder builder, uint dataWordCount, uint pointerCount, uint elementCount) {
return AnyList::Builder(builder.initStructList(
elementCount * ELEMENTS, StructSize(dataWordCount * WORDS, pointerCount * POINTERS)));
}
};
} // namespace _ (private) } // namespace _ (private)
template <typename T> template <typename T>
......
...@@ -453,6 +453,8 @@ private: ...@@ -453,6 +453,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -537,6 +539,8 @@ private: ...@@ -537,6 +539,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -621,6 +625,8 @@ private: ...@@ -621,6 +625,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -828,6 +834,8 @@ private: ...@@ -828,6 +834,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -928,6 +936,8 @@ private: ...@@ -928,6 +936,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1018,6 +1028,8 @@ private: ...@@ -1018,6 +1028,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1108,6 +1120,8 @@ private: ...@@ -1108,6 +1120,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1473,6 +1487,8 @@ private: ...@@ -1473,6 +1487,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1564,6 +1580,8 @@ private: ...@@ -1564,6 +1580,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1648,6 +1666,8 @@ private: ...@@ -1648,6 +1666,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1740,6 +1760,8 @@ private: ...@@ -1740,6 +1760,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1845,6 +1867,8 @@ private: ...@@ -1845,6 +1867,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1959,6 +1983,8 @@ private: ...@@ -1959,6 +1983,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2052,6 +2078,8 @@ private: ...@@ -2052,6 +2078,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2154,6 +2182,8 @@ private: ...@@ -2154,6 +2182,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2233,6 +2263,8 @@ private: ...@@ -2233,6 +2263,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2323,6 +2355,8 @@ private: ...@@ -2323,6 +2355,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2409,6 +2443,8 @@ private: ...@@ -2409,6 +2443,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2501,6 +2537,8 @@ private: ...@@ -2501,6 +2537,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2580,6 +2618,8 @@ private: ...@@ -2580,6 +2618,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2664,6 +2704,8 @@ private: ...@@ -2664,6 +2704,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2756,6 +2798,8 @@ private: ...@@ -2756,6 +2798,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2895,6 +2939,8 @@ private: ...@@ -2895,6 +2939,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2975,6 +3021,8 @@ private: ...@@ -2975,6 +3021,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
......
...@@ -231,6 +231,8 @@ private: ...@@ -231,6 +231,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -351,6 +353,8 @@ private: ...@@ -351,6 +353,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -430,6 +434,8 @@ private: ...@@ -430,6 +434,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -509,6 +515,8 @@ private: ...@@ -509,6 +515,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
......
...@@ -203,6 +203,8 @@ private: ...@@ -203,6 +203,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -286,6 +288,8 @@ private: ...@@ -286,6 +288,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -435,6 +439,8 @@ private: ...@@ -435,6 +439,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -533,6 +539,8 @@ private: ...@@ -533,6 +539,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
......
...@@ -153,6 +153,8 @@ private: ...@@ -153,6 +153,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -227,6 +229,8 @@ private: ...@@ -227,6 +229,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -296,6 +300,8 @@ private: ...@@ -296,6 +300,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -365,6 +371,8 @@ private: ...@@ -365,6 +371,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -449,6 +457,8 @@ private: ...@@ -449,6 +457,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -535,6 +545,8 @@ private: ...@@ -535,6 +545,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
......
...@@ -524,6 +524,8 @@ private: ...@@ -524,6 +524,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -605,6 +607,8 @@ private: ...@@ -605,6 +607,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -719,6 +723,8 @@ private: ...@@ -719,6 +723,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -816,6 +822,8 @@ private: ...@@ -816,6 +822,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -951,6 +959,8 @@ private: ...@@ -951,6 +959,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1030,6 +1040,8 @@ private: ...@@ -1030,6 +1040,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1130,6 +1142,8 @@ private: ...@@ -1130,6 +1142,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1209,6 +1223,8 @@ private: ...@@ -1209,6 +1223,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1293,6 +1309,8 @@ private: ...@@ -1293,6 +1309,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1394,6 +1412,8 @@ private: ...@@ -1394,6 +1412,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1485,6 +1505,8 @@ private: ...@@ -1485,6 +1505,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1572,6 +1594,8 @@ private: ...@@ -1572,6 +1594,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1663,6 +1687,8 @@ private: ...@@ -1663,6 +1687,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1754,6 +1780,8 @@ private: ...@@ -1754,6 +1780,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1840,6 +1868,8 @@ private: ...@@ -1840,6 +1868,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1963,6 +1993,8 @@ private: ...@@ -1963,6 +1993,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2047,6 +2079,8 @@ private: ...@@ -2047,6 +2079,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2132,6 +2166,8 @@ private: ...@@ -2132,6 +2166,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2213,6 +2249,8 @@ private: ...@@ -2213,6 +2249,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2302,6 +2340,8 @@ private: ...@@ -2302,6 +2340,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
......
...@@ -626,6 +626,8 @@ private: ...@@ -626,6 +626,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -705,6 +707,8 @@ private: ...@@ -705,6 +707,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -789,6 +793,8 @@ private: ...@@ -789,6 +793,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -898,6 +904,8 @@ private: ...@@ -898,6 +904,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -977,6 +985,8 @@ private: ...@@ -977,6 +985,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1066,6 +1076,8 @@ private: ...@@ -1066,6 +1076,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1155,6 +1167,8 @@ private: ...@@ -1155,6 +1167,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1296,6 +1310,8 @@ private: ...@@ -1296,6 +1310,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1417,6 +1433,8 @@ private: ...@@ -1417,6 +1433,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1517,6 +1535,8 @@ private: ...@@ -1517,6 +1535,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1593,6 +1613,8 @@ private: ...@@ -1593,6 +1613,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1678,6 +1700,8 @@ private: ...@@ -1678,6 +1700,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1772,6 +1796,8 @@ private: ...@@ -1772,6 +1796,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1856,6 +1882,8 @@ private: ...@@ -1856,6 +1882,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -1991,6 +2019,8 @@ private: ...@@ -1991,6 +2019,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2197,6 +2227,8 @@ private: ...@@ -2197,6 +2227,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2276,6 +2308,8 @@ private: ...@@ -2276,6 +2308,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2361,6 +2395,8 @@ private: ...@@ -2361,6 +2395,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2446,6 +2482,8 @@ private: ...@@ -2446,6 +2482,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2531,6 +2569,8 @@ private: ...@@ -2531,6 +2569,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2624,6 +2664,8 @@ private: ...@@ -2624,6 +2664,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2703,6 +2745,8 @@ private: ...@@ -2703,6 +2745,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2777,6 +2821,8 @@ private: ...@@ -2777,6 +2821,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2856,6 +2902,8 @@ private: ...@@ -2856,6 +2902,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -2951,6 +2999,8 @@ private: ...@@ -2951,6 +2999,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -3041,6 +3091,8 @@ private: ...@@ -3041,6 +3091,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -3261,6 +3313,8 @@ private: ...@@ -3261,6 +3313,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -3355,6 +3409,8 @@ private: ...@@ -3355,6 +3409,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -3446,6 +3502,8 @@ private: ...@@ -3446,6 +3502,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -3540,6 +3598,8 @@ private: ...@@ -3540,6 +3598,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
...@@ -3624,6 +3684,8 @@ private: ...@@ -3624,6 +3684,8 @@ private:
template <typename, ::capnp::Kind> template <typename, ::capnp::Kind>
friend struct ::capnp::ToDynamic_; friend struct ::capnp::ToDynamic_;
friend class ::capnp::Orphanage; friend class ::capnp::Orphanage;
template <typename, ::capnp::Kind>
friend struct ::capnp::_::PointerHelpers;
}; };
#if !CAPNP_LITE #if !CAPNP_LITE
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment