Print

Print


Commit in lcio/src/aid/EVENT on rio_v00-00
LCObject.aid+15-11.12 -> 1.12.12.1
added 64bit index and accessors and ptrToIndex/indexToPtr() functions

lcio/src/aid/EVENT
LCObject.aid 1.12 -> 1.12.12.1
diff -u -r1.12 -r1.12.12.1
--- LCObject.aid	1 Dec 2006 14:10:09 -0000	1.12
+++ LCObject.aid	20 Nov 2009 15:09:31 -0000	1.12.12.1
@@ -31,6 +31,8 @@
     /** Returns an object id for internal (debugging) use in LCIO.
      */
     public int id() const ;
+
+
 @endif
 // @ifdef cpp
 // public interface LCObject extends Cloneable, LCRTRelations{
@@ -49,7 +51,19 @@
      *  Do not use this method.
      */
     public:
-	 virtual LCObject* clone() const {  return 0 ; } 
+	virtual LCObject* clone() const {  return 0 ; } 
+    
+    /** converts C++ pointers to Indices if any */
+    virtual void ptrToIndex() {}     
+    
+    /** convert indices to C++ pointers */
+    virtual void indexToPtr() {} 
+   
+    long long getIndex() { return _index ; } 
+    void setIndex( long long index ) { _index = index ; }
+    
+    protected:
+	long long _index ;  //! no RIO
 }
 
 }
CVSspam 0.2.8