#ifndef ROO_LINKED_LIST_ELEM
#define ROO_LINKED_LIST_ELEM
#include "Rtypes.h"
#include "RooLinkedListElem.h"
class TObject ;
class RooLinkedListElem ;
class TBuffer ;
class RooLinkedListElem {
public:
  
  RooLinkedListElem(TObject* arg) : 
    _prev(0), _next(0), _arg(arg), _refCount(1) {
  }
  
  RooLinkedListElem(TObject* arg, RooLinkedListElem* after) : 
    _prev(after), _next(after->_next), _arg(arg), _refCount(1) {
    
    after->_next = this ;
    if (_next) _next->_prev = this ;
  }
  
  virtual ~RooLinkedListElem() {    
    
    if (_prev) _prev->_next = _next ;
    if (_next) _next->_prev = _prev ;
  }
  Int_t refCount() const { return _refCount ; }
  Int_t incRefCount() { return ++_refCount ; }
  Int_t decRefCount() { return --_refCount ; }
protected:
  friend class RooHashTable ;
  friend class RooLinkedList ;
  friend class RooLinkedListIter ;
  RooLinkedListElem* _prev ; 
  RooLinkedListElem* _next ; 
  TObject*   _arg ;          
  Int_t      _refCount ;     
protected:
  
  RooLinkedListElem(const RooLinkedListElem&) ;
  ClassDef(RooLinkedListElem,0) 
} ;
#endif
This page has been automatically generated. If you have any comments or suggestions about the page layout send a mail to ROOT support, or contact the developers with any questions or problems regarding ROOT.