ROOT logo
// @(#)root/base:$Id$
// Author: Fons Rademakers   12/11/95

/*************************************************************************
 * Copyright (C) 1995-2000, Rene Brun and Fons Rademakers.               *
 * All rights reserved.                                                  *
 *                                                                       *
 * For the licensing terms see $ROOTSYS/LICENSE.                         *
 * For the list of contributors see $ROOTSYS/README/CREDITS.             *
 *************************************************************************/

//////////////////////////////////////////////////////////////////////////
//                                                                      //
// TObjString                                                           //
//                                                                      //
// Collectable string class. This is a TObject containing a TString.    //
//                                                                      //
//////////////////////////////////////////////////////////////////////////

#include "TObjString.h"

ClassImp(TObjString)

//______________________________________________________________________________
Int_t TObjString::Compare(const TObject *obj) const
{
   // string compare the argument with this object.
   if (this == obj) return 0;
   if (TObjString::Class() != obj->IsA()) return -1;
   return fString.CompareTo(((TObjString*)obj)->fString);
}

//______________________________________________________________________________
Bool_t TObjString::IsEqual(const TObject *obj) const
{
   // return kTRUE if the argument has the same content as this object.

   if (this == obj) return kTRUE;
   if (TObjString::Class() != obj->IsA()) return kFALSE;
   return fString == ((TObjString*)obj)->fString;
}
 TObjString.cxx:1
 TObjString.cxx:2
 TObjString.cxx:3
 TObjString.cxx:4
 TObjString.cxx:5
 TObjString.cxx:6
 TObjString.cxx:7
 TObjString.cxx:8
 TObjString.cxx:9
 TObjString.cxx:10
 TObjString.cxx:11
 TObjString.cxx:12
 TObjString.cxx:13
 TObjString.cxx:14
 TObjString.cxx:15
 TObjString.cxx:16
 TObjString.cxx:17
 TObjString.cxx:18
 TObjString.cxx:19
 TObjString.cxx:20
 TObjString.cxx:21
 TObjString.cxx:22
 TObjString.cxx:23
 TObjString.cxx:24
 TObjString.cxx:25
 TObjString.cxx:26
 TObjString.cxx:27
 TObjString.cxx:28
 TObjString.cxx:29
 TObjString.cxx:30
 TObjString.cxx:31
 TObjString.cxx:32
 TObjString.cxx:33
 TObjString.cxx:34
 TObjString.cxx:35
 TObjString.cxx:36
 TObjString.cxx:37
 TObjString.cxx:38
 TObjString.cxx:39
 TObjString.cxx:40
 TObjString.cxx:41