From c97ef32a8f8959c3ad67543a5e22fb6e1a82cda5 Mon Sep 17 00:00:00 2001 From: vrouvrea Date: Wed, 10 Dec 2014 16:09:31 +0000 Subject: 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 --- src/Simplex_tree/include/gudhi/Simplex_tree.h | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/Simplex_tree/include') 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.*/ -- cgit v1.2.3