Google

Main Page   Class Hierarchy   Compound List   File List   Compound Members  

scfstrv.h

00001 /*
00002     Crystal Space Shared String Vector class
00003     Copyright (C) 1998,1999 by Andrew Zabolotny <bit@eltech.ru>
00004 
00005     This library is free software; you can redistribute it and/or
00006     modify it under the terms of the GNU Library General Public
00007     License as published by the Free Software Foundation; either
00008     version 2 of the License, or (at your option) any later version.
00009 
00010     This library is distributed in the hope that it will be useful,
00011     but WITHOUT ANY WARRANTY; without even the implied warranty of
00012     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
00013     Library General Public License for more details.
00014 
00015     You should have received a copy of the GNU Library General Public
00016     License along with this library; if not, write to the Free
00017     Software Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.
00018 */
00019 
00020 #ifndef __CS_SCFSTRV_H__
00021 #define __CS_SCFSTRV_H__
00022 
00023 #include "iutil/strvec.h"
00024 #include "csutil/csstrvec.h"
00025 
00027 class scfStrVector : public iStrVector
00028 {
00029   csStrVector v;
00030 
00031 public:
00032   SCF_DECLARE_IBASE;
00033 
00035   scfStrVector (int iLimit = 16, int iDelta = 16) : v (iLimit, iDelta)
00036   { SCF_CONSTRUCT_IBASE (NULL); }
00037 
00039   virtual ~scfStrVector ()
00040   { }
00041 
00043   virtual int Length () const;
00044 
00046   virtual void Push (char *iValue);
00047 
00049   virtual char *Pop ();
00050 
00052   virtual char *Get (int iIndex) const;
00053 
00055   virtual int Find (const char *iValue) const;
00056 
00058   virtual int FindSorted (const char *iValue) const;
00059 
00061   virtual void QuickSort ();
00062 
00064   virtual void Delete (int iIndex);
00065 
00067   virtual void Insert (int iIndex, char *iValue);
00068 
00070   virtual void DeleteAll ();
00071 };
00072 
00073 #endif // __CS_SCFSTRV_H__

Generated for Crystal Space by doxygen 1.2.5 written by Dimitri van Heesch, ©1997-2000