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
e9cce1dc
Commit
e9cce1dc
authored
Aug 02, 2016
by
Kenton Varda
Committed by
GitHub
Aug 02, 2016
Browse files
Options
Browse Files
Download
Plain Diff
Merge pull request #351 from ecatmur/as-reader-const
Mark Builder::operator Reader/asReader() member functions const.
parents
180c2eae
ba76d7a5
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
14 additions
and
14 deletions
+14
-14
any.h
c++/src/capnp/any.h
+4
-4
capability.h
c++/src/capnp/capability.h
+2
-2
list.h
c++/src/capnp/list.h
+8
-8
No files found.
c++/src/capnp/any.h
View file @
e9cce1dc
...
...
@@ -427,8 +427,8 @@ struct List<AnyPointer, Kind::OTHER> {
inline
Builder
(
decltype
(
nullptr
))
:
builder
(
ElementSize
::
POINTER
)
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
AnyPointer
::
Builder
operator
[](
uint
index
)
{
...
...
@@ -592,8 +592,8 @@ public:
inline
Builder
(
decltype
(
nullptr
))
:
builder
(
ElementSize
::
INLINE_COMPOSITE
)
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
AnyStruct
::
Builder
operator
[](
uint
index
)
{
...
...
c++/src/capnp/capability.h
View file @
e9cce1dc
...
...
@@ -678,8 +678,8 @@ struct List<T, Kind::INTERFACE> {
inline
Builder
(
decltype
(
nullptr
))
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
typename
T
::
Client
operator
[](
uint
index
)
{
...
...
c++/src/capnp/list.h
View file @
e9cce1dc
...
...
@@ -143,8 +143,8 @@ struct List<T, Kind::PRIMITIVE> {
inline
Builder
(
decltype
(
nullptr
))
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
T
operator
[](
uint
index
)
{
...
...
@@ -239,8 +239,8 @@ struct List<T, Kind::STRUCT> {
inline
Builder
(
decltype
(
nullptr
))
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
typename
T
::
Builder
operator
[](
uint
index
)
{
...
...
@@ -362,8 +362,8 @@ struct List<List<T>, Kind::LIST> {
inline
Builder
(
decltype
(
nullptr
))
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
typename
List
<
T
>::
Builder
operator
[](
uint
index
)
{
...
...
@@ -470,8 +470,8 @@ struct List<T, Kind::BLOB> {
inline
Builder
(
decltype
(
nullptr
))
{}
inline
explicit
Builder
(
_
::
ListBuilder
builder
)
:
builder
(
builder
)
{}
inline
operator
Reader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
{
return
Reader
(
builder
.
asReader
());
}
inline
operator
Reader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
Reader
asReader
()
const
{
return
Reader
(
builder
.
asReader
());
}
inline
uint
size
()
const
{
return
builder
.
size
()
/
ELEMENTS
;
}
inline
typename
T
::
Builder
operator
[](
uint
index
)
{
...
...
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