/*****************************************************************************
 * Project: RooFit                                                           *
 * Package: RooFitCore                                                       *
 *    File: $Id: RooInt.h,v 1.6 2007/05/11 09:11:30 verkerke Exp $
 * Authors:                                                                  *
 *   WV, Wouter Verkerke, UC Santa Barbara, verkerke@slac.stanford.edu       *
 *   DK, David Kirkby,    UC Irvine,         dkirkby@uci.edu                 *
 *                                                                           *
 * Copyright (c) 2000-2005, Regents of the University of California          *
 *                          and Stanford University. All rights reserved.    *
 *                                                                           *
 * Redistribution and use in source and binary forms,                        *
 * with or without modification, are permitted according to the terms        *
 * listed in LICENSE (http://roofit.sourceforge.net/license.txt)             *
 *****************************************************************************/
#ifndef ROO_INT
#define ROO_INT

#include "Rtypes.h"
#include "TNamed.h"

class RooInt : public TNamed {
public:

  RooInt() : _value(0) {} ;
  RooInt(Int_t value) : TNamed(), _value(value) {} ;
  RooInt(const RooInt& other) : TNamed(other), _value(other._value) {}
  virtual ~RooInt() {} ;

  // Double_t cast operator 
  inline operator Int_t() const { return _value ; }
  RooInt& operator=(Int_t value) { _value = value ; return *this ; }

  // Sorting interface ;
  Int_t Compare(const TObject* other) const ;
  virtual Bool_t IsSortable() const { return kTRUE ; }

protected:

  Int_t _value ; // Payload
  ClassDef(RooInt,1) // Container class for Int_t
};

#endif
 RooInt.h:1
 RooInt.h:2
 RooInt.h:3
 RooInt.h:4
 RooInt.h:5
 RooInt.h:6
 RooInt.h:7
 RooInt.h:8
 RooInt.h:9
 RooInt.h:10
 RooInt.h:11
 RooInt.h:12
 RooInt.h:13
 RooInt.h:14
 RooInt.h:15
 RooInt.h:16
 RooInt.h:17
 RooInt.h:18
 RooInt.h:19
 RooInt.h:20
 RooInt.h:21
 RooInt.h:22
 RooInt.h:23
 RooInt.h:24
 RooInt.h:25
 RooInt.h:26
 RooInt.h:27
 RooInt.h:28
 RooInt.h:29
 RooInt.h:30
 RooInt.h:31
 RooInt.h:32
 RooInt.h:33
 RooInt.h:34
 RooInt.h:35
 RooInt.h:36
 RooInt.h:37
 RooInt.h:38
 RooInt.h:39
 RooInt.h:40
 RooInt.h:41
 RooInt.h:42
 RooInt.h:43
 RooInt.h:44