Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
7
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Open sidebar
KennethVanhoey
CGoGN
Commits
bbb1864a
Commit
bbb1864a
authored
Jul 01, 2011
by
Pierre Kraemer
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
fin modif CellMarker
parent
fea93fec
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
11 additions
and
12 deletions
+11
-12
include/Topology/generic/cellmarker.h
include/Topology/generic/cellmarker.h
+11
-12
No files found.
include/Topology/generic/cellmarker.h
View file @
bbb1864a
...
...
@@ -143,6 +143,15 @@ public:
* unmark all the cells
*/
virtual
void
unmarkAll
()
=
0
;
bool
isAllUnmarked
()
{
AttributeContainer
&
cont
=
m_map
.
getAttributeContainer
(
m_cell
)
;
for
(
unsigned
int
i
=
cont
.
begin
();
i
!=
cont
.
end
();
cont
.
next
(
i
))
if
(
m_map
.
getMarkVector
(
m_cell
,
m_thread
)
->
operator
[](
i
).
testMark
(
m_mark
))
return
false
;
return
true
;
}
};
/**
...
...
@@ -190,6 +199,7 @@ public:
virtual
~
CellMarkerStore
()
{
unmarkAll
()
;
assert
(
isAllUnmarked
());
}
protected:
...
...
@@ -225,9 +235,7 @@ class CellMarkerNoUnmark: public CellMarkerGen
{
public:
CellMarkerNoUnmark
(
AttribMap
&
map
,
unsigned
int
cell
,
unsigned
int
thread
=
0
)
:
CellMarkerGen
(
map
,
cell
,
thread
)
{
std
::
cout
<<
"CellMarkerNoUnmark.."
<<
std
::
endl
;
}
{}
virtual
~
CellMarkerNoUnmark
()
{
...
...
@@ -238,15 +246,6 @@ protected:
CellMarkerNoUnmark
(
const
CellMarkerNoUnmark
&
cm
)
:
CellMarkerGen
(
cm
)
{}
bool
isAllUnmarked
()
{
AttributeContainer
&
cont
=
m_map
.
getAttributeContainer
(
m_cell
)
;
for
(
unsigned
int
i
=
cont
.
begin
();
i
!=
cont
.
end
();
cont
.
next
(
i
))
if
(
m_map
.
getMarkVector
(
m_cell
,
m_thread
)
->
operator
[](
i
).
testMark
(
m_mark
))
return
false
;
return
true
;
}
public:
void
unmarkAll
()
{
...
...
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