adding dereference operator for iterator class
authorrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Nov 2011 09:38:41 +0000 (09:38 +0000)
committerrichterm <richterm@f7af4fe6-9843-0410-8265-dc069ae4e863>
Fri, 25 Nov 2011 09:38:41 +0000 (09:38 +0000)
HLT/BASE/AliHLTIndexGrid.h

index db1b182..e71fd00 100644 (file)
@@ -16,6 +16,7 @@
 #include <iostream>
 #include <iomanip>
 #include <memory>
+#include <cerrno>
 
 template <typename T, typename V>
 class AliHLTIndexGrid {
@@ -216,6 +217,8 @@ class AliHLTIndexGrid {
     const ValueType& Data() const {return *fData;}
     ValueType& Data() {return *fData;}
 
+    ValueType operator*() {return *fData;}
+
   protected:
   private:
     ValueType* fData; //! data