Commits

Anonymous committed 3b060a0

SGIterator fixes.

Comments (0)

Files changed (2)

+2012-03-12  scott snyder  <snyder@bnl.gov>
+
+	* Tagging StoreGate-02-38-03.
+	* StoreGate/SGIterator.h: Implement missing methods.
+
 2012-03-02  Sebastien Binet  <sebastien.binet@cern.ch>
 
 	* Tagging StoreGate-02-38-02

StoreGate/SGIterator.h

     /// @name SG-specific accessors
     //@{
     /// Get the key string with which the current object was stored.
-    const std::string& key() const;
+    const std::string& key() const
+    { return m_dh.key(); }
     /// RETRIEVES the data object to check it is valid and unlocked
-    bool isValid() const; 
+    bool isValid() const
+    {
+      const DataHandle<DATA>& dh = m_dh;
+      return dh.isValid();
+    }
     /// RETRIEVES the data object to check it is valid
-    bool isValid();       
+    //bool isValid()
+    //{ return m_dh.isValid(); }
     /// weaker test but it does not touch the disk!
-    bool isInitialized() const;    
+    bool isInitialized() const
+    { return m_dh.isInitialized(); }
     //@}
   private:
     mutable DataHandle<DATA> m_dh;
   
 namespace SG {
 /** @class ConstIterator 
- *  a const_iterator facase to DataHandle. Behaves like a forward iterator
+ *  a const_iterator facade to DataHandle. Behaves like a forward iterator
  */
   template <class DATA>
   class ConstIterator :