TObjNum Class Reference

#include <TIntList.h>

List of all members.

Public Member Functions

 TObjNum (Int_t i=0)
 ~TObjNum ()
virtual void SetNum (Int_t i)
virtual Int_t GetNum () const
void Print (Option_t *="") const
Bool_t IsEqual (const TObject *obj) const
Bool_t IsSortable () const
virtual Int_t Compare (const TObject *obj) const

Private Attributes

Int_t num

Detailed Description

Definition at line 11 of file TIntList.h.


Constructor & Destructor Documentation

TObjNum::TObjNum ( Int_t  i = 0  )  [inline]

Definition at line 16 of file TIntList.h.

00016 : num(i) { }

TObjNum::~TObjNum (  )  [inline]

Definition at line 17 of file TIntList.h.

00017 {  }


Member Function Documentation

virtual Int_t TObjNum::Compare ( const TObject *  obj  )  const [inline, virtual]

Definition at line 29 of file TIntList.h.

References GetNum(), and num.

00030                                   { if (num > ((TObjNum*)obj)->GetNum())
00031                                       return 1;
00032                                    else if (num < ((TObjNum*)obj)->GetNum())
00033                                       return -1;
00034                                    else return 0; }

virtual Int_t TObjNum::GetNum (  )  const [inline, virtual]

Definition at line 20 of file TIntList.h.

References num.

Referenced by Compare(), TIntList::Exists(), and TIntList::Remove().

00020 { return num; }

Bool_t TObjNum::IsEqual ( const TObject *  obj  )  const [inline]

Definition at line 24 of file TIntList.h.

References num.

00025                               { return num == ((TObjNum*)obj)->GetNum();   }

Bool_t TObjNum::IsSortable (  )  const [inline]

Definition at line 27 of file TIntList.h.

00027 { return kTRUE; }

void TObjNum::Print ( Option_t *  = ""  )  const [inline]

Definition at line 22 of file TIntList.h.

References num.

00022 { cout << num << endl;  }

virtual void TObjNum::SetNum ( Int_t  i  )  [inline, virtual]

Definition at line 19 of file TIntList.h.

References num.

00019 { num = i;    }


Member Data Documentation

Int_t TObjNum::num [private]

Definition at line 13 of file TIntList.h.

Referenced by Compare(), GetNum(), IsEqual(), Print(), and SetNum().


The documentation for this class was generated from the following file:

Generated on 19 Jan 2018 for loon by  doxygen 1.6.1