summaryrefslogtreecommitdiff
path: root/src/Simplex_tree/include
diff options
context:
space:
mode:
authorvrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2014-12-10 16:09:31 +0000
committervrouvrea <vrouvrea@636b058d-ea47-450e-bf9e-a15bfbe3eedb>2014-12-10 16:09:31 +0000
commitc97ef32a8f8959c3ad67543a5e22fb6e1a82cda5 (patch)
tree8a905d77677c33dc5d42dfed63aedc5ca13b33cf /src/Simplex_tree/include
parent429d4f06cede4d97144592eff91689fc1c707474 (diff)
Add examples in tests
git-svn-id: svn+ssh://scm.gforge.inria.fr/svnroot/gudhi/branches/cpplint_test@347 636b058d-ea47-450e-bf9e-a15bfbe3eedb Former-commit-id: a53767f02ba413531d397ebf720d87ed9d832a79
Diffstat (limited to 'src/Simplex_tree/include')
-rw-r--r--src/Simplex_tree/include/gudhi/Simplex_tree.h6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/Simplex_tree/include/gudhi/Simplex_tree.h b/src/Simplex_tree/include/gudhi/Simplex_tree.h
index 9b3de20a..db7ad2b8 100644
--- a/src/Simplex_tree/include/gudhi/Simplex_tree.h
+++ b/src/Simplex_tree/include/gudhi/Simplex_tree.h
@@ -360,7 +360,7 @@ class Simplex_tree {
/** \brief Returns the number of simplices in the complex.
*
* Does not count the empty simplex. */
- size_t num_simplices() {
+ const unsigned int& num_simplices() const {
return num_simplices_;
}
@@ -526,7 +526,7 @@ class Simplex_tree {
threshold_ = fil;
}
/** Set a number of simplices for the simplicial complex. */
- void set_num_simplices(size_t num_simplices) {
+ void set_num_simplices(const unsigned int& num_simplices) {
num_simplices_ = num_simplices;
}
/** Set a dimension for the simplicial complex. */
@@ -793,7 +793,7 @@ class Simplex_tree {
/** \brief Upper bound on the filtration values of the simplices.*/
Filtration_value threshold_;
/** \brief Total number of simplices in the complex, without the empty simplex.*/
- size_t num_simplices_;
+ unsigned int num_simplices_;
/** \brief Set of simplex tree Nodes representing the vertices.*/
Siblings root_;
/** \brief Simplices ordered according to a filtration.*/