//*CMZ : 1.01/04 29/05/97 13.03.03 by Fons Rademakers
//*-- Author : Fons Rademakers 12/11/95
//*KEEP,CopyRight,T=C.
/*************************************************************************
* Copyright(c) 1995-1999, The ROOT System, All rights reserved. *
* Authors: Rene Brun, Fons Rademakers. *
* For list of contributors see $ROOTSYS/AA_CREDITS. *
* *
* Permission to use, copy, modify and distribute this software and its *
* documentation for non-commercial purposes is hereby granted without *
* fee, provided that the above copyright notice appears in all copies *
* and that both the copyright notice and this permission notice appear *
* in the supporting documentation. The authors make no claims about the *
* suitability of this software for any purpose. It is provided "as is" *
* without express or implied warranty. *
*************************************************************************/
//*KEND.
//////////////////////////////////////////////////////////////////////////
// //
// TObjString //
// //
// Collectable string class. This is a TObject containing a TString. //
// //
//////////////////////////////////////////////////////////////////////////
//*KEEP,TObjString.
#include "TObjString.h"
//*KEND.
ClassImp(TObjString)
//______________________________________________________________________________
Int_t TObjString::Compare(TObject *obj)
{
if (this == obj) return 0;
if (TObjString::Class() != obj->IsA()) return -1;
return fString.CompareTo(((TObjString*)obj)->fString);
}
//______________________________________________________________________________
Bool_t TObjString::IsEqual(TObject *obj)
{
if (this == obj) return kTRUE;
if (TObjString::Class() != obj->IsA()) return kFALSE;
return fString == ((TObjString*)obj)->fString;
}
ROOT page - Class index - Top of the page
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.