Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in / Register
Toggle navigation
C
capnproto
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Packages
Packages
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
submodule
capnproto
Commits
e7db3681
Commit
e7db3681
authored
Mar 30, 2016
by
David Lamparter
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Regenerate schema C++ translation
parent
cc57e5c1
Expand all
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
94 additions
and
10 deletions
+94
-10
schema.capnp.c++
c++/src/capnp/schema.capnp.c++
+0
-0
schema.capnp.h
c++/src/capnp/schema.capnp.h
+94
-10
No files found.
c++/src/capnp/schema.capnp.c++
View file @
e7db3681
This diff is collapsed.
Click to expand it.
c++/src/capnp/schema.capnp.h
View file @
e7db3681
...
...
@@ -89,7 +89,7 @@ struct Node {
struct
Annotation
;
struct
_capnpPrivate
{
CAPNP_DECLARE_STRUCT_HEADER
(
e682ab4cf923a417
,
5
,
6
)
CAPNP_DECLARE_STRUCT_HEADER
(
e682ab4cf923a417
,
5
,
7
)
#if !CAPNP_LITE
static
constexpr
::
capnp
::
_
::
RawBrandedSchema
const
*
brand
=
&
schema
->
defaultBrand
;
#endif // !CAPNP_LITE
...
...
@@ -134,7 +134,7 @@ struct Node::Struct {
class
Pipeline
;
struct
_capnpPrivate
{
CAPNP_DECLARE_STRUCT_HEADER
(
9
ea0b19b37fb4435
,
5
,
6
)
CAPNP_DECLARE_STRUCT_HEADER
(
9
ea0b19b37fb4435
,
5
,
7
)
#if !CAPNP_LITE
static
constexpr
::
capnp
::
_
::
RawBrandedSchema
const
*
brand
=
&
schema
->
defaultBrand
;
#endif // !CAPNP_LITE
...
...
@@ -149,7 +149,7 @@ struct Node::Enum {
class
Pipeline
;
struct
_capnpPrivate
{
CAPNP_DECLARE_STRUCT_HEADER
(
b54ab3364333f598
,
5
,
6
)
CAPNP_DECLARE_STRUCT_HEADER
(
b54ab3364333f598
,
5
,
7
)
#if !CAPNP_LITE
static
constexpr
::
capnp
::
_
::
RawBrandedSchema
const
*
brand
=
&
schema
->
defaultBrand
;
#endif // !CAPNP_LITE
...
...
@@ -164,7 +164,7 @@ struct Node::Interface {
class
Pipeline
;
struct
_capnpPrivate
{
CAPNP_DECLARE_STRUCT_HEADER
(
e82753cff0c2218f
,
5
,
6
)
CAPNP_DECLARE_STRUCT_HEADER
(
e82753cff0c2218f
,
5
,
7
)
#if !CAPNP_LITE
static
constexpr
::
capnp
::
_
::
RawBrandedSchema
const
*
brand
=
&
schema
->
defaultBrand
;
#endif // !CAPNP_LITE
...
...
@@ -179,7 +179,7 @@ struct Node::Const {
class
Pipeline
;
struct
_capnpPrivate
{
CAPNP_DECLARE_STRUCT_HEADER
(
b18aa5ac7a0d9420
,
5
,
6
)
CAPNP_DECLARE_STRUCT_HEADER
(
b18aa5ac7a0d9420
,
5
,
7
)
#if !CAPNP_LITE
static
constexpr
::
capnp
::
_
::
RawBrandedSchema
const
*
brand
=
&
schema
->
defaultBrand
;
#endif // !CAPNP_LITE
...
...
@@ -194,7 +194,7 @@ struct Node::Annotation {
class
Pipeline
;
struct
_capnpPrivate
{
CAPNP_DECLARE_STRUCT_HEADER
(
ec1619d4400a0290
,
5
,
6
)
CAPNP_DECLARE_STRUCT_HEADER
(
ec1619d4400a0290
,
5
,
7
)
#if !CAPNP_LITE
static
constexpr
::
capnp
::
_
::
RawBrandedSchema
const
*
brand
=
&
schema
->
defaultBrand
;
#endif // !CAPNP_LITE
...
...
@@ -217,7 +217,7 @@ struct Field {
struct
Ordinal
;
struct
_capnpPrivate
{
CAPNP_DECLARE_STRUCT_HEADER
(
9
aad50a41f4af45f
,
3
,
4
)
CAPNP_DECLARE_STRUCT_HEADER
(
9
aad50a41f4af45f
,
3
,
5
)
#if !CAPNP_LITE
static
constexpr
::
capnp
::
_
::
RawBrandedSchema
const
*
brand
=
&
schema
->
defaultBrand
;
#endif // !CAPNP_LITE
...
...
@@ -232,7 +232,7 @@ struct Field::Slot {
class
Pipeline
;
struct
_capnpPrivate
{
CAPNP_DECLARE_STRUCT_HEADER
(
c42305476bb4746f
,
3
,
4
)
CAPNP_DECLARE_STRUCT_HEADER
(
c42305476bb4746f
,
3
,
5
)
#if !CAPNP_LITE
static
constexpr
::
capnp
::
_
::
RawBrandedSchema
const
*
brand
=
&
schema
->
defaultBrand
;
#endif // !CAPNP_LITE
...
...
@@ -247,7 +247,7 @@ struct Field::Group {
class
Pipeline
;
struct
_capnpPrivate
{
CAPNP_DECLARE_STRUCT_HEADER
(
cafccddb68db1d11
,
3
,
4
)
CAPNP_DECLARE_STRUCT_HEADER
(
cafccddb68db1d11
,
3
,
5
)
#if !CAPNP_LITE
static
constexpr
::
capnp
::
_
::
RawBrandedSchema
const
*
brand
=
&
schema
->
defaultBrand
;
#endif // !CAPNP_LITE
...
...
@@ -266,7 +266,7 @@ struct Field::Ordinal {
};
struct
_capnpPrivate
{
CAPNP_DECLARE_STRUCT_HEADER
(
bb90d5c287870be6
,
3
,
4
)
CAPNP_DECLARE_STRUCT_HEADER
(
bb90d5c287870be6
,
3
,
5
)
#if !CAPNP_LITE
static
constexpr
::
capnp
::
_
::
RawBrandedSchema
const
*
brand
=
&
schema
->
defaultBrand
;
#endif // !CAPNP_LITE
...
...
@@ -706,6 +706,9 @@ public:
inline
bool
getIsGeneric
()
const
;
inline
bool
hasDocComment
()
const
;
inline
::
capnp
::
Text
::
Reader
getDocComment
()
const
;
private
:
::
capnp
::
_
::
StructReader
_reader
;
template
<
typename
,
::
capnp
::
Kind
>
...
...
@@ -799,6 +802,13 @@ public:
inline
bool
getIsGeneric
();
inline
void
setIsGeneric
(
bool
value
);
inline
bool
hasDocComment
();
inline
::
capnp
::
Text
::
Builder
getDocComment
();
inline
void
setDocComment
(
::
capnp
::
Text
::
Reader
value
);
inline
::
capnp
::
Text
::
Builder
initDocComment
(
unsigned
int
size
);
inline
void
adoptDocComment
(
::
capnp
::
Orphan
<
::
capnp
::
Text
>&&
value
);
inline
::
capnp
::
Orphan
<
::
capnp
::
Text
>
disownDocComment
();
private
:
::
capnp
::
_
::
StructBuilder
_builder
;
template
<
typename
,
::
capnp
::
Kind
>
...
...
@@ -1546,6 +1556,9 @@ public:
inline
Ordinal
::
Reader
getOrdinal
()
const
;
inline
bool
hasDocComment
()
const
;
inline
::
capnp
::
Text
::
Reader
getDocComment
()
const
;
private
:
::
capnp
::
_
::
StructReader
_reader
;
template
<
typename
,
::
capnp
::
Kind
>
...
...
@@ -1606,6 +1619,13 @@ public:
inline
Ordinal
::
Builder
getOrdinal
();
inline
Ordinal
::
Builder
initOrdinal
();
inline
bool
hasDocComment
();
inline
::
capnp
::
Text
::
Builder
getDocComment
();
inline
void
setDocComment
(
::
capnp
::
Text
::
Reader
value
);
inline
::
capnp
::
Text
::
Builder
initDocComment
(
unsigned
int
size
);
inline
void
adoptDocComment
(
::
capnp
::
Orphan
<
::
capnp
::
Text
>&&
value
);
inline
::
capnp
::
Orphan
<
::
capnp
::
Text
>
disownDocComment
();
private
:
::
capnp
::
_
::
StructBuilder
_builder
;
template
<
typename
,
::
capnp
::
Kind
>
...
...
@@ -4333,6 +4353,38 @@ inline void Node::Builder::setIsGeneric(bool value) {
288
*
::
capnp
::
ELEMENTS
,
value
);
}
inline
bool
Node
::
Reader
::
hasDocComment
()
const
{
return
!
_reader
.
getPointerField
(
6
*
::
capnp
::
POINTERS
).
isNull
();
}
inline
bool
Node
::
Builder
::
hasDocComment
()
{
return
!
_builder
.
getPointerField
(
6
*
::
capnp
::
POINTERS
).
isNull
();
}
inline
::
capnp
::
Text
::
Reader
Node
::
Reader
::
getDocComment
()
const
{
return
::
capnp
::
_
::
PointerHelpers
<
::
capnp
::
Text
>::
get
(
_reader
.
getPointerField
(
6
*
::
capnp
::
POINTERS
));
}
inline
::
capnp
::
Text
::
Builder
Node
::
Builder
::
getDocComment
()
{
return
::
capnp
::
_
::
PointerHelpers
<
::
capnp
::
Text
>::
get
(
_builder
.
getPointerField
(
6
*
::
capnp
::
POINTERS
));
}
inline
void
Node
::
Builder
::
setDocComment
(
::
capnp
::
Text
::
Reader
value
)
{
::
capnp
::
_
::
PointerHelpers
<
::
capnp
::
Text
>::
set
(
_builder
.
getPointerField
(
6
*
::
capnp
::
POINTERS
),
value
);
}
inline
::
capnp
::
Text
::
Builder
Node
::
Builder
::
initDocComment
(
unsigned
int
size
)
{
return
::
capnp
::
_
::
PointerHelpers
<
::
capnp
::
Text
>::
init
(
_builder
.
getPointerField
(
6
*
::
capnp
::
POINTERS
),
size
);
}
inline
void
Node
::
Builder
::
adoptDocComment
(
::
capnp
::
Orphan
<
::
capnp
::
Text
>&&
value
)
{
::
capnp
::
_
::
PointerHelpers
<
::
capnp
::
Text
>::
adopt
(
_builder
.
getPointerField
(
6
*
::
capnp
::
POINTERS
),
kj
::
mv
(
value
));
}
inline
::
capnp
::
Orphan
<
::
capnp
::
Text
>
Node
::
Builder
::
disownDocComment
()
{
return
::
capnp
::
_
::
PointerHelpers
<
::
capnp
::
Text
>::
disown
(
_builder
.
getPointerField
(
6
*
::
capnp
::
POINTERS
));
}
inline
bool
Node
::
Parameter
::
Reader
::
hasName
()
const
{
return
!
_reader
.
getPointerField
(
0
*
::
capnp
::
POINTERS
).
isNull
();
}
...
...
@@ -5064,6 +5116,38 @@ inline Field::Ordinal::Builder Field::Builder::initOrdinal() {
_builder
.
setDataField
<
::
uint16_t
>
(
6
*
::
capnp
::
ELEMENTS
,
0
);
return
Field
::
Ordinal
::
Builder
(
_builder
);
}
inline
bool
Field
::
Reader
::
hasDocComment
()
const
{
return
!
_reader
.
getPointerField
(
4
*
::
capnp
::
POINTERS
).
isNull
();
}
inline
bool
Field
::
Builder
::
hasDocComment
()
{
return
!
_builder
.
getPointerField
(
4
*
::
capnp
::
POINTERS
).
isNull
();
}
inline
::
capnp
::
Text
::
Reader
Field
::
Reader
::
getDocComment
()
const
{
return
::
capnp
::
_
::
PointerHelpers
<
::
capnp
::
Text
>::
get
(
_reader
.
getPointerField
(
4
*
::
capnp
::
POINTERS
));
}
inline
::
capnp
::
Text
::
Builder
Field
::
Builder
::
getDocComment
()
{
return
::
capnp
::
_
::
PointerHelpers
<
::
capnp
::
Text
>::
get
(
_builder
.
getPointerField
(
4
*
::
capnp
::
POINTERS
));
}
inline
void
Field
::
Builder
::
setDocComment
(
::
capnp
::
Text
::
Reader
value
)
{
::
capnp
::
_
::
PointerHelpers
<
::
capnp
::
Text
>::
set
(
_builder
.
getPointerField
(
4
*
::
capnp
::
POINTERS
),
value
);
}
inline
::
capnp
::
Text
::
Builder
Field
::
Builder
::
initDocComment
(
unsigned
int
size
)
{
return
::
capnp
::
_
::
PointerHelpers
<
::
capnp
::
Text
>::
init
(
_builder
.
getPointerField
(
4
*
::
capnp
::
POINTERS
),
size
);
}
inline
void
Field
::
Builder
::
adoptDocComment
(
::
capnp
::
Orphan
<
::
capnp
::
Text
>&&
value
)
{
::
capnp
::
_
::
PointerHelpers
<
::
capnp
::
Text
>::
adopt
(
_builder
.
getPointerField
(
4
*
::
capnp
::
POINTERS
),
kj
::
mv
(
value
));
}
inline
::
capnp
::
Orphan
<
::
capnp
::
Text
>
Field
::
Builder
::
disownDocComment
()
{
return
::
capnp
::
_
::
PointerHelpers
<
::
capnp
::
Text
>::
disown
(
_builder
.
getPointerField
(
4
*
::
capnp
::
POINTERS
));
}
inline
::
uint32_t
Field
::
Slot
::
Reader
::
getOffset
()
const
{
return
_reader
.
getDataField
<
::
uint32_t
>
(
1
*
::
capnp
::
ELEMENTS
);
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment