|
GCpp general purpose C++ library
version 1.0
|
#include <GStringList.hh>
Public Types | |
| typedef GListIterT< GString > | GSIterator |
| iterator type definition | |
Public Member Functions | |
| template<class Q > | |
| bool | IsInstanceOf () const |
| template<class Q > | |
| bool | IsInstanceOf () |
| virtual GStringList * | Clone () const |
| virtual const char * | ClassName () const |
| GStringList () | |
| GStringList (const u_int fl) | |
| GStringList (const string &str, const string &separ=" ,;:.!?'[]{}()=+-*&%$#\n\t\r") | |
| GStringList (const GStringList &original) | |
| virtual | ~GStringList () |
| GStringList & | operator= (const GStringList &original) |
| virtual int | GetFileList (const string &dir, const string &pattern) |
| virtual int | GetFileList (const string &pattern) |
Public Member Functions inherited from GSortListT< GString > | |
| bool | IsInstanceOf () const |
| bool | IsInstanceOf () |
| GSortListT (u_int fl=0) | |
| GSortListT (const GSortListT< GString > &list) | |
| GSortListT (const GListT< GString > &list) | |
| GSortListT (const GListT< GString > &list, u_int fl) | |
| GSortListT< GString > & | operator= (const GListT< GString > &list) |
| virtual void | ReverseSort () |
| virtual int | Compare (const GString &obj1, const GString &obj2) const |
| virtual void | Sort () |
| virtual bool | IsSorted () const |
Public Member Functions inherited from GListT< GString > | |
| bool | IsInstanceOf () const |
| bool | IsInstanceOf () |
| GListT (u_int opts=0) | |
| GListT (const GListT< GString > &list) | |
| GListT (const GListT< GString > &list, u_int opts) | |
| GListT< GString > & | operator= (const GListT< GString > &list) |
| virtual GListIterT< GString > | Begin () const |
| virtual GListIterT< GString > | End () const |
| virtual bool | Exist (const GString *ptr) const |
| virtual GListIterT< GString > | Find (const GString *ptr) const |
| virtual GListIterT< GString > | FindNext (const GString *ptr) const |
| virtual GListIterT< GString > | FindPrevious (const GString *ptr) const |
| virtual GListIterT< GString > | FindFirst (const GString *ptr) const |
| virtual GListIterT< GString > | FindLast (const GString *ptr) const |
| GListIterT< GString > | Current () const |
| GListIterT< GString > | Previous () const |
| GListIterT< GString > | Next () const |
| GListIterT< GString > | First () const |
| GListIterT< GString > | Last () const |
| GListIterT< GString > | Goto (u_int n=0) const |
| GString & | At (u_int n) const |
| int | Index () const |
| virtual int | Move (int n) |
| virtual bool | MoveUp () |
| virtual bool | MoveDown () |
| virtual bool | MoveTop () |
| virtual bool | MoveBottom () |
| virtual GListIterT< GString > | Add (GString *obj_ptr) |
| virtual GListIterT< GString > | Add (GString &obj_ptr) |
| virtual GListIterT< GString > | Insert (GString *obj_ptr) |
| virtual GListIterT< GString > | Insert (GString &obj_ptr) |
| virtual GListIterT< GString > | Append (GString *obj_ptr) |
| virtual GListIterT< GString > | Append (GString &obj_ptr) |
| virtual GListIterT< GString > | Prepend (GString *obj_ptr) |
| virtual GListIterT< GString > | Prepend (GString &obj_ptr) |
| virtual GString * | Take () |
| virtual GString * | Take (const GString *ptr) |
| virtual bool | Remove () |
| virtual bool | Remove (const GString *ptr, bool all=true) |
| virtual void | Empty () |
Public Member Functions inherited from GCollectionT< GString > | |
| bool | IsInstanceOf () const |
| bool | IsInstanceOf () |
| GCollectionT (u_int flg=0) | |
| virtual u_int | GetSize () const |
| virtual u_int | GetCount () const |
| virtual u_int | GetOptions () const |
| bool | CheckOptions (u_int opts) const |
| bool | FixPositionOption () const |
| bool | IsSortable () const |
| bool | IsAlwaysSorted () const |
| bool | IsReverseSorted () const |
| bool | UniqueNameOption () const |
| bool | IsCaseSensitive () const |
| bool | DictSortOption () const |
Static Public Member Functions | |
| static const char * | StaticClassName () |
Static Public Member Functions inherited from GSortListT< GString > | |
| static const char * | StaticClassName () |
Static Public Member Functions inherited from GListT< GString > | |
| static const char * | StaticClassName () |
| static GListIterT< GString > | Null () |
Static Public Member Functions inherited from GCollectionT< GString > | |
| static const char * | StaticClassName () |
Additional Inherited Members | |
Protected Member Functions inherited from GSortListT< GString > | |
| virtual GListIterT< GString > | __Add (GString *item) |
| virtual GListIterT< GString > | __Insert (GString *item) |
| virtual GListIterT< GString > | __AddSorted (GString *item) |
Protected Member Functions inherited from GListT< GString > | |
| virtual GListIterT< GString > * | __Exist (const GString *ptr, GListIterT< GString > *except=NULL) const |
| virtual GListIterT< GString > * | __Find (const GString *ptr, GListIterT< GString > *except=NULL) const |
| virtual GString * | __Take () |
| virtual void | __Swap (GListIterT< GString > *iter) |
| virtual bool | __MoveUp () |
| virtual bool | __MoveDown () |
Protected Attributes inherited from GListT< GString > | |
| GListIterT< GString > ** | first_item |
| Iterator on first object in the list. | |
| GListIterT< GString > ** | last_item |
| Iterator on last object in the list. | |
| GListIterT< GString > ** | current_item |
| Iterator on current object in the list. | |
Protected Attributes inherited from GCollectionT< GString > | |
| u_int | options |
| Collection option flags. | |
| u_int | count_item |
| Number of objects in the collection. | |
Class defining a list of GString objects.
|
inline |
Default constructor: set list options so that objects are cloned and adopted.
|
inline |
Constructor with user defined list options (see GListT and GCollectionT template classes for options) to manage list objects.
| fl | options flags |
| GStringList::GStringList | ( | const string & | str, |
| const string & | separ = " ,;:.!?'[]{}()=+-*&%$#\n\t\r" |
||
| ) |
Constructor from a string, and from a set of characters to define words seperation. The list contains all the words extracted.
| str | input string containing the words |
| separ | set of separator characters |
References GListT< GString >::Append(), and GString::GetWord().
|
inline |
Copy constructor.
| original | list to copy |
|
inlinevirtual |
Destructor.
|
inlinevirtual |
Set the list as the file names matching the pattern in the directory. The directory name is not included. The function returns the number of files matching.
| dir | directory name |
| pattern | file pattern to match |
References GListT< GString >::Empty(), and GGetFileList().
|
inlinevirtual |
Set the list as the file names matching the pattern. The function returns the number of files matching.
| pattern | file pattern to match |
References GListT< GString >::Empty(), and GGetFileList().
|
inline |
Macro from GCpp library that defines the following functions:
|
inline |