From 5dcc0213844cffbe1d9a3f86573f6324e4bf799f Mon Sep 17 00:00:00 2001 From: Karsten Rink <karsten.rink@ufz.de> Date: Wed, 8 Oct 2014 13:56:40 +0200 Subject: [PATCH] added iterator methods to TemplateVec for accessing the name id map --- GeoLib/TemplateVec.h | 6 ++++++ 1 file changed, 6 insertions(+) diff --git a/GeoLib/TemplateVec.h b/GeoLib/TemplateVec.h index 61138afe0bd..e4a541053d0 100644 --- a/GeoLib/TemplateVec.h +++ b/GeoLib/TemplateVec.h @@ -82,6 +82,12 @@ public: */ std::string getName () const { return _name; } + /// Returns the begin of the name id mapping structure + NameIdMap::const_iterator getNameIDMapBegin() const { return _name_id_map->cbegin(); } + + /// Returns the end of the name id mapping structure + NameIdMap::const_iterator getNameIDMapEnd() const { return _name_id_map->cend(); } + /** * @return the number of data elements */ -- GitLab