Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
C
CGoGN
Project overview
Project overview
Details
Activity
Releases
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Issues
0
Issues
0
List
Boards
Labels
Service Desk
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Operations
Operations
Incidents
Environments
Analytics
Analytics
CI / CD
Repository
Value Stream
Wiki
Wiki
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
Etienne Schmitt
CGoGN
Commits
455dc609
Commit
455dc609
authored
Jul 09, 2014
by
Sylvain Thery
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
optimize gmap2::deleteCC
parent
4f71806d
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
include/Topology/gmap/gmap2.hpp
include/Topology/gmap/gmap2.hpp
+4
-1
No files found.
include/Topology/gmap/gmap2.hpp
View file @
455dc609
...
@@ -204,7 +204,7 @@ void GMap2<MAP_IMPL>::deleteFace(Dart d)
...
@@ -204,7 +204,7 @@ void GMap2<MAP_IMPL>::deleteFace(Dart d)
template
<
typename
MAP_IMPL
>
template
<
typename
MAP_IMPL
>
void
GMap2
<
MAP_IMPL
>::
deleteCC
(
Dart
d
)
void
GMap2
<
MAP_IMPL
>::
deleteCC
(
Dart
d
)
{
{
DartMarker
Store
<
GMap2
<
MAP_IMPL
>
>
mark
(
*
this
);
DartMarker
NoUnmark
<
MAP_IMPL
>
mark
(
*
this
);
std
::
vector
<
Dart
>
visited
;
std
::
vector
<
Dart
>
visited
;
visited
.
reserve
(
1024
)
;
visited
.
reserve
(
1024
)
;
...
@@ -234,7 +234,10 @@ void GMap2<MAP_IMPL>::deleteCC(Dart d)
...
@@ -234,7 +234,10 @@ void GMap2<MAP_IMPL>::deleteCC(Dart d)
}
}
for
(
std
::
vector
<
Dart
>::
iterator
it
=
visited
.
begin
();
it
!=
visited
.
end
();
++
it
)
for
(
std
::
vector
<
Dart
>::
iterator
it
=
visited
.
begin
();
it
!=
visited
.
end
();
++
it
)
{
mark
.
unmark
(
*
it
);
this
->
deleteDart
(
*
it
)
;
this
->
deleteDart
(
*
it
)
;
}
}
}
template
<
typename
MAP_IMPL
>
template
<
typename
MAP_IMPL
>
...
...
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