From ea2fd89e5d976e28bae072e95f82c81bc2068aca Mon Sep 17 00:00:00 2001 From: Thomas Fischer <thomas.fischer@ufz.de> Date: Mon, 4 May 2015 07:29:32 +0200 Subject: [PATCH] [MeL] PropertyVector: Changed behaviour of size() method. The method size() returns now the number of tuples instead of the number of values. --- MeshLib/PropertyVector.h | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/MeshLib/PropertyVector.h b/MeshLib/PropertyVector.h index 7a2b2342c10..70fd7dfdaed 100644 --- a/MeshLib/PropertyVector.h +++ b/MeshLib/PropertyVector.h @@ -59,6 +59,11 @@ public: return t; } + std::size_t size() const + { + return std::vector<PROP_VAL_TYPE>::size() / _tuple_size; + } + protected: /// @brief The constructor taking meta information for the data. /// @param property_name a string describing the property -- GitLab