FreeHEP API
Version v1.2.2

hep.io.root.core
Class Clones2

java.lang.Object
  |
  +--java.util.AbstractCollection
        |
        +--java.util.AbstractList
              |
              +--hep.io.root.core.Clones2
All Implemented Interfaces:
Collection, List, RootObject, TClonesArray, TCollection, TObjArray, TObject, TSeqCollection

public abstract class Clones2
extends AbstractList
implements TClonesArray

A Clones2 is used to represent a split TClonesArray. In Root 3.00 there was a special TBranchClones class to represent this, in later versions of Root this is just handled like everything else, by TBranchElement.


Field Summary
protected  ArrayList cloneCache
           
protected  int hollowIndex
           
protected  int size
           
 
Fields inherited from class java.util.AbstractList
modCount
 
Fields inherited from interface hep.io.root.interfaces.TCollection
rootIOVersion
 
Constructor Summary
Clones2()
           
 
Method Summary
protected abstract  void clearCache()
           
protected abstract  Clone2 createClone()
           
 Object get(int index)
           
 Object getElementAt(int index)
           
 int getLast()
           
 int getLowerBound()
           
 RootClass getRootClass()
          Get the class of this object
 int getUpperBound()
           
 void setData(int size, int hollowIndex)
           
 int size()
           
 
Methods inherited from class java.util.AbstractList
add, add, addAll, clear, equals, hashCode, indexOf, iterator, lastIndexOf, listIterator, listIterator, remove, removeRange, set, subList
 
Methods inherited from class java.util.AbstractCollection
addAll, contains, containsAll, isEmpty, remove, removeAll, retainAll, toArray, toArray, toString
 
Methods inherited from class java.lang.Object
clone, finalize, getClass, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface hep.io.root.interfaces.TCollection
getName, getSize
 
Methods inherited from interface hep.io.root.interfaces.TObject
getBits, getUniqueID
 
Methods inherited from interface java.util.List
add, add, addAll, addAll, clear, contains, containsAll, equals, hashCode, indexOf, isEmpty, iterator, lastIndexOf, listIterator, listIterator, remove, remove, removeAll, retainAll, set, subList, toArray, toArray
 

Field Detail

cloneCache

protected ArrayList cloneCache

hollowIndex

protected int hollowIndex

size

protected int size
Constructor Detail

Clones2

public Clones2()
Method Detail

setData

public void setData(int size,
                    int hollowIndex)

getElementAt

public Object getElementAt(int index)
Specified by:
getElementAt in interface TCollection

getLast

public int getLast()
Specified by:
getLast in interface TCollection

getLowerBound

public int getLowerBound()
Specified by:
getLowerBound in interface TObjArray

getRootClass

public RootClass getRootClass()
Description copied from interface: RootObject
Get the class of this object

Specified by:
getRootClass in interface RootObject
Returns:
The RootClass for this object

getUpperBound

public int getUpperBound()
Specified by:
getUpperBound in interface TObjArray

get

public Object get(int index)
Specified by:
get in interface List
Specified by:
get in class AbstractList

size

public int size()
Specified by:
size in interface List
Specified by:
size in class AbstractCollection

clearCache

protected abstract void clearCache()

createClone

protected abstract Clone2 createClone()

FreeHEP API
Version v1.2.2

Copyright © 2000-2003 FreeHEP, All Rights Reserved.