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
Open sidebar
OpenWalnut
OpenWalnut Core
Commits
3633c3ea
Commit
3633c3ea
authored
Sep 21, 2010
by
Mathias Goldau
Browse files
[DOC] Improved some documentation and added the shutdown flag test.
parent
b6111b15
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
8 additions
and
3 deletions
+8
-3
src/common/datastructures/WUnionFind.h
src/common/datastructures/WUnionFind.h
+2
-2
src/modules/detTractClustering/WMDetTractClustering.cpp
src/modules/detTractClustering/WMDetTractClustering.cpp
+6
-1
No files found.
src/common/datastructures/WUnionFind.h
View file @
3633c3ea
...
...
@@ -33,7 +33,7 @@
#include "../WExportCommon.h"
/**
* Implements a very simple union-find datastructure aka disjoint_sets.
* \note I know there is a boost solution on that:
* \note I know there is a boost solution on that
, but I didn't get it to work and I don't know how fast it is
:
* http://www.boost.org/doc/libs/1_42_0/libs/disjoint_sets/disjoint_sets.html
*
* And you may use it like this:
...
...
@@ -117,7 +117,7 @@ public:
void
merge
(
size_t
i
,
size_t
j
);
private:
std
::
vector
<
size_t
>
m_component
;
//!< Stores for each index its
cluster
ID
std
::
vector
<
size_t
>
m_component
;
//!< Stores for each index its ID
};
...
...
src/modules/detTractClustering/WMDetTractClustering.cpp
View file @
3633c3ea
...
...
@@ -90,10 +90,16 @@ void WMDetTractClustering::moduleMain()
{
m_moduleState
.
wait
();
if
(
m_shutdownFlag
()
)
// in case of shutdown => abort
{
break
;
}
if
(
!
m_tractInput
->
getData
().
get
()
)
// ok, the output has not yet sent data
{
continue
;
}
if
(
m_rawTracts
!=
m_tractInput
->
getData
()
)
// in case data has changed
{
m_rawTracts
=
m_tractInput
->
getData
();
...
...
@@ -288,7 +294,6 @@ void WMDetTractClustering::cluster()
m_dLtTableExists
=
true
;
boost
::
shared_ptr
<
WProgress
>
eraseProgress
(
new
WProgress
(
"Erasing clusters"
,
1
)
);
// m_progress->addSubProgress( eraseProgress );
// remove empty clusters
WFiberCluster
emptyCluster
;
...
...
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