Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
OpenMesh
OpenMesh
Commits
fba2f98c
Commit
fba2f98c
authored
May 23, 2017
by
Jan Möbius
Browse files
Boost range support (Thanks to Bastian Pranzas for the patch)
parent
9f8dfc41
Pipeline
#5100
passed with stage
in 58 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
src/OpenMesh/Core/Mesh/PolyConnectivity.hh
View file @
fba2f98c
...
...
@@ -1123,6 +1123,9 @@ public:
ITER_TYPE
(
CONTAINER_TYPE
::*
end_fn
)()
const
>
class
EntityRange
{
public:
typedef
ITER_TYPE
iterator
;
typedef
ITER_TYPE
const_iterator
;
EntityRange
(
CONTAINER_TYPE
&
container
)
:
container_
(
container
)
{}
ITER_TYPE
begin
()
const
{
return
(
container_
.
*
begin_fn
)();
}
ITER_TYPE
end
()
const
{
return
(
container_
.
*
end_fn
)();
}
...
...
@@ -1184,12 +1187,15 @@ public:
ITER_TYPE
(
CONTAINER_TYPE
::*
end_fn
)(
CENTER_ENTITY_TYPE
)
const
>
class
CirculatorRange
{
public:
typedef
ITER_TYPE
iterator
;
typedef
ITER_TYPE
const_iterator
;
CirculatorRange
(
const
CONTAINER_TYPE
&
container
,
CENTER_ENTITY_TYPE
center
)
:
container_
(
container
),
center_
(
center
)
{}
ITER_TYPE
begin
()
{
return
(
container_
.
*
begin_fn
)(
center_
);
}
ITER_TYPE
end
()
{
return
(
container_
.
*
end_fn
)(
center_
);
}
ITER_TYPE
begin
()
const
{
return
(
container_
.
*
begin_fn
)(
center_
);
}
ITER_TYPE
end
()
const
{
return
(
container_
.
*
end_fn
)(
center_
);
}
private:
const
CONTAINER_TYPE
&
container_
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new 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