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
9d103817
Commit
9d103817
authored
Jun 06, 2013
by
Kenton Varda
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
iterator -> Iterator. You should be auto-ing it anyway.
parent
9227a0f3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
39 additions
and
39 deletions
+39
-39
dynamic.h
c++/src/capnproto/dynamic.h
+6
-6
list.h
c++/src/capnproto/list.h
+24
-24
schema.h
c++/src/capnproto/schema.h
+9
-9
No files found.
c++/src/capnproto/dynamic.h
View file @
9d103817
...
@@ -423,9 +423,9 @@ public:
...
@@ -423,9 +423,9 @@ public:
inline
uint
size
()
const
{
return
reader
.
size
()
/
ELEMENTS
;
}
inline
uint
size
()
const
{
return
reader
.
size
()
/
ELEMENTS
;
}
DynamicValue
::
Reader
operator
[](
uint
index
)
const
;
DynamicValue
::
Reader
operator
[](
uint
index
)
const
;
typedef
internal
::
IndexingIterator
<
const
Reader
,
DynamicValue
::
Reader
>
i
terator
;
typedef
internal
::
IndexingIterator
<
const
Reader
,
DynamicValue
::
Reader
>
I
terator
;
inline
iterator
begin
()
const
{
return
i
terator
(
this
,
0
);
}
inline
Iterator
begin
()
const
{
return
I
terator
(
this
,
0
);
}
inline
iterator
end
()
const
{
return
i
terator
(
this
,
size
());
}
inline
Iterator
end
()
const
{
return
I
terator
(
this
,
size
());
}
private
:
private
:
ListSchema
schema
;
ListSchema
schema
;
...
@@ -461,9 +461,9 @@ public:
...
@@ -461,9 +461,9 @@ public:
void
set
(
uint
index
,
const
DynamicValue
::
Reader
&
value
);
void
set
(
uint
index
,
const
DynamicValue
::
Reader
&
value
);
DynamicValue
::
Builder
init
(
uint
index
,
uint
size
);
DynamicValue
::
Builder
init
(
uint
index
,
uint
size
);
typedef
internal
::
IndexingIterator
<
Builder
,
DynamicStruct
::
Builder
>
i
terator
;
typedef
internal
::
IndexingIterator
<
Builder
,
DynamicStruct
::
Builder
>
I
terator
;
inline
iterator
begin
()
{
return
i
terator
(
this
,
0
);
}
inline
Iterator
begin
()
{
return
I
terator
(
this
,
0
);
}
inline
iterator
end
()
{
return
i
terator
(
this
,
size
());
}
inline
Iterator
end
()
{
return
I
terator
(
this
,
size
());
}
void
copyFrom
(
std
::
initializer_list
<
DynamicValue
::
Reader
>
value
);
void
copyFrom
(
std
::
initializer_list
<
DynamicValue
::
Reader
>
value
);
...
...
c++/src/capnproto/list.h
View file @
9d103817
...
@@ -195,9 +195,9 @@ struct List<T, Kind::PRIMITIVE> {
...
@@ -195,9 +195,9 @@ struct List<T, Kind::PRIMITIVE> {
return
reader
.
template
getDataElement
<
T
>
(
index
*
ELEMENTS
);
return
reader
.
template
getDataElement
<
T
>
(
index
*
ELEMENTS
);
}
}
typedef
internal
::
IndexingIterator
<
const
Reader
,
T
>
i
terator
;
typedef
internal
::
IndexingIterator
<
const
Reader
,
T
>
I
terator
;
inline
iterator
begin
()
const
{
return
i
terator
(
this
,
0
);
}
inline
Iterator
begin
()
const
{
return
I
terator
(
this
,
0
);
}
inline
iterator
end
()
const
{
return
i
terator
(
this
,
size
());
}
inline
Iterator
end
()
const
{
return
I
terator
(
this
,
size
());
}
private
:
private
:
internal
::
ListReader
reader
;
internal
::
ListReader
reader
;
...
@@ -231,9 +231,9 @@ struct List<T, Kind::PRIMITIVE> {
...
@@ -231,9 +231,9 @@ struct List<T, Kind::PRIMITIVE> {
builder
.
template
setDataElement
<
T
>
(
index
*
ELEMENTS
,
value
);
builder
.
template
setDataElement
<
T
>
(
index
*
ELEMENTS
,
value
);
}
}
typedef
internal
::
IndexingIterator
<
Builder
,
T
>
i
terator
;
typedef
internal
::
IndexingIterator
<
Builder
,
T
>
I
terator
;
inline
iterator
begin
()
{
return
i
terator
(
this
,
0
);
}
inline
Iterator
begin
()
{
return
I
terator
(
this
,
0
);
}
inline
iterator
end
()
{
return
i
terator
(
this
,
size
());
}
inline
Iterator
end
()
{
return
I
terator
(
this
,
size
());
}
private
:
private
:
internal
::
ListBuilder
builder
;
internal
::
ListBuilder
builder
;
...
@@ -294,9 +294,9 @@ struct List<T, Kind::STRUCT> {
...
@@ -294,9 +294,9 @@ struct List<T, Kind::STRUCT> {
return
typename
T
::
Reader
(
reader
.
getStructElement
(
index
*
ELEMENTS
));
return
typename
T
::
Reader
(
reader
.
getStructElement
(
index
*
ELEMENTS
));
}
}
typedef
internal
::
IndexingIterator
<
const
Reader
,
typename
T
::
Reader
>
i
terator
;
typedef
internal
::
IndexingIterator
<
const
Reader
,
typename
T
::
Reader
>
I
terator
;
inline
iterator
begin
()
const
{
return
i
terator
(
this
,
0
);
}
inline
Iterator
begin
()
const
{
return
I
terator
(
this
,
0
);
}
inline
iterator
end
()
const
{
return
i
terator
(
this
,
size
());
}
inline
Iterator
end
()
const
{
return
I
terator
(
this
,
size
());
}
private
:
private
:
internal
::
ListReader
reader
;
internal
::
ListReader
reader
;
...
@@ -326,9 +326,9 @@ struct List<T, Kind::STRUCT> {
...
@@ -326,9 +326,9 @@ struct List<T, Kind::STRUCT> {
// be redundant, and set() would risk data loss if the input struct were from a newer version
// be redundant, and set() would risk data loss if the input struct were from a newer version
// of teh protocol.
// of teh protocol.
typedef
internal
::
IndexingIterator
<
Builder
,
typename
T
::
Builder
>
i
terator
;
typedef
internal
::
IndexingIterator
<
Builder
,
typename
T
::
Builder
>
I
terator
;
inline
iterator
begin
()
{
return
i
terator
(
this
,
0
);
}
inline
Iterator
begin
()
{
return
I
terator
(
this
,
0
);
}
inline
iterator
end
()
{
return
i
terator
(
this
,
size
());
}
inline
Iterator
end
()
{
return
I
terator
(
this
,
size
());
}
private
:
private
:
internal
::
ListBuilder
builder
;
internal
::
ListBuilder
builder
;
...
@@ -386,9 +386,9 @@ struct List<List<T>, Kind::LIST> {
...
@@ -386,9 +386,9 @@ struct List<List<T>, Kind::LIST> {
return
typename
List
<
T
>::
Reader
(
List
<
T
>::
getAsElementOf
(
reader
,
index
));
return
typename
List
<
T
>::
Reader
(
List
<
T
>::
getAsElementOf
(
reader
,
index
));
}
}
typedef
internal
::
IndexingIterator
<
const
Reader
,
typename
List
<
T
>::
Reader
>
i
terator
;
typedef
internal
::
IndexingIterator
<
const
Reader
,
typename
List
<
T
>::
Reader
>
I
terator
;
inline
iterator
begin
()
const
{
return
i
terator
(
this
,
0
);
}
inline
Iterator
begin
()
const
{
return
I
terator
(
this
,
0
);
}
inline
iterator
end
()
const
{
return
i
terator
(
this
,
size
());
}
inline
Iterator
end
()
const
{
return
I
terator
(
this
,
size
());
}
private
:
private
:
internal
::
ListReader
reader
;
internal
::
ListReader
reader
;
...
@@ -426,9 +426,9 @@ struct List<List<T>, Kind::LIST> {
...
@@ -426,9 +426,9 @@ struct List<List<T>, Kind::LIST> {
}
}
}
}
typedef
internal
::
IndexingIterator
<
Builder
,
typename
List
<
T
>::
Builder
>
i
terator
;
typedef
internal
::
IndexingIterator
<
Builder
,
typename
List
<
T
>::
Builder
>
I
terator
;
inline
iterator
begin
()
{
return
i
terator
(
this
,
0
);
}
inline
Iterator
begin
()
{
return
I
terator
(
this
,
0
);
}
inline
iterator
end
()
{
return
i
terator
(
this
,
size
());
}
inline
Iterator
end
()
{
return
I
terator
(
this
,
size
());
}
private
:
private
:
internal
::
ListBuilder
builder
;
internal
::
ListBuilder
builder
;
...
@@ -484,9 +484,9 @@ struct List<T, Kind::BLOB> {
...
@@ -484,9 +484,9 @@ struct List<T, Kind::BLOB> {
return
reader
.
getBlobElement
<
T
>
(
index
*
ELEMENTS
);
return
reader
.
getBlobElement
<
T
>
(
index
*
ELEMENTS
);
}
}
typedef
internal
::
IndexingIterator
<
const
Reader
,
typename
T
::
Reader
>
i
terator
;
typedef
internal
::
IndexingIterator
<
const
Reader
,
typename
T
::
Reader
>
I
terator
;
inline
iterator
begin
()
const
{
return
i
terator
(
this
,
0
);
}
inline
Iterator
begin
()
const
{
return
I
terator
(
this
,
0
);
}
inline
iterator
end
()
const
{
return
i
terator
(
this
,
size
());
}
inline
Iterator
end
()
const
{
return
I
terator
(
this
,
size
());
}
private
:
private
:
internal
::
ListReader
reader
;
internal
::
ListReader
reader
;
...
@@ -517,9 +517,9 @@ struct List<T, Kind::BLOB> {
...
@@ -517,9 +517,9 @@ struct List<T, Kind::BLOB> {
return
builder
.
initBlobElement
<
T
>
(
index
*
ELEMENTS
,
size
*
BYTES
);
return
builder
.
initBlobElement
<
T
>
(
index
*
ELEMENTS
,
size
*
BYTES
);
}
}
typedef
internal
::
IndexingIterator
<
Builder
,
typename
T
::
Builder
>
i
terator
;
typedef
internal
::
IndexingIterator
<
Builder
,
typename
T
::
Builder
>
I
terator
;
inline
iterator
begin
()
{
return
i
terator
(
this
,
0
);
}
inline
Iterator
begin
()
{
return
I
terator
(
this
,
0
);
}
inline
iterator
end
()
{
return
i
terator
(
this
,
size
());
}
inline
Iterator
end
()
{
return
I
terator
(
this
,
size
());
}
private
:
private
:
internal
::
ListBuilder
builder
;
internal
::
ListBuilder
builder
;
...
...
c++/src/capnproto/schema.h
View file @
9d103817
...
@@ -185,9 +185,9 @@ public:
...
@@ -185,9 +185,9 @@ public:
inline
uint
size
()
const
{
return
list
.
size
();
}
inline
uint
size
()
const
{
return
list
.
size
();
}
inline
Member
operator
[](
uint
index
)
const
{
return
Member
(
parent
,
unionIndex
,
index
,
list
[
index
]);
}
inline
Member
operator
[](
uint
index
)
const
{
return
Member
(
parent
,
unionIndex
,
index
,
list
[
index
]);
}
typedef
internal
::
IndexingIterator
<
const
MemberList
,
Member
>
i
terator
;
typedef
internal
::
IndexingIterator
<
const
MemberList
,
Member
>
I
terator
;
inline
iterator
begin
()
const
{
return
i
terator
(
this
,
0
);
}
inline
Iterator
begin
()
const
{
return
I
terator
(
this
,
0
);
}
inline
iterator
end
()
const
{
return
i
terator
(
this
,
size
());
}
inline
Iterator
end
()
const
{
return
I
terator
(
this
,
size
());
}
private
:
private
:
StructSchema
parent
;
StructSchema
parent
;
...
@@ -254,9 +254,9 @@ public:
...
@@ -254,9 +254,9 @@ public:
inline
uint
size
()
const
{
return
list
.
size
();
}
inline
uint
size
()
const
{
return
list
.
size
();
}
inline
Enumerant
operator
[](
uint
index
)
const
{
return
Enumerant
(
parent
,
index
,
list
[
index
]);
}
inline
Enumerant
operator
[](
uint
index
)
const
{
return
Enumerant
(
parent
,
index
,
list
[
index
]);
}
typedef
internal
::
IndexingIterator
<
const
EnumerantList
,
Enumerant
>
i
terator
;
typedef
internal
::
IndexingIterator
<
const
EnumerantList
,
Enumerant
>
I
terator
;
inline
iterator
begin
()
const
{
return
i
terator
(
this
,
0
);
}
inline
Iterator
begin
()
const
{
return
I
terator
(
this
,
0
);
}
inline
iterator
end
()
const
{
return
i
terator
(
this
,
size
());
}
inline
Iterator
end
()
const
{
return
I
terator
(
this
,
size
());
}
private
:
private
:
EnumSchema
parent
;
EnumSchema
parent
;
...
@@ -322,9 +322,9 @@ public:
...
@@ -322,9 +322,9 @@ public:
inline
uint
size
()
const
{
return
list
.
size
();
}
inline
uint
size
()
const
{
return
list
.
size
();
}
inline
Method
operator
[](
uint
index
)
const
{
return
Method
(
parent
,
index
,
list
[
index
]);
}
inline
Method
operator
[](
uint
index
)
const
{
return
Method
(
parent
,
index
,
list
[
index
]);
}
typedef
internal
::
IndexingIterator
<
const
MethodList
,
Method
>
i
terator
;
typedef
internal
::
IndexingIterator
<
const
MethodList
,
Method
>
I
terator
;
inline
iterator
begin
()
const
{
return
i
terator
(
this
,
0
);
}
inline
Iterator
begin
()
const
{
return
I
terator
(
this
,
0
);
}
inline
iterator
end
()
const
{
return
i
terator
(
this
,
size
());
}
inline
Iterator
end
()
const
{
return
I
terator
(
this
,
size
());
}
private
:
private
:
InterfaceSchema
parent
;
InterfaceSchema
parent
;
...
...
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