STLSoft - ... Robust, Lightweight, Cross-platform, Template Software ... ATLSTL - Template Software for the Active Template Library COMSTL - The Standard Template Library meets the Component Object Model .netSTL - Standard Template Library meets the Microsoft.NET Common Language Runtime InetSTL - The Standard Template Library meets WinInet MFCSTL - Template Software for the Microsoft Foundation Classes UNIXSTL - Template Software for the UNIX Operating System WinSTL - where the Standard Template Library meets the Win32 API

Main Page   Modules   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages  

glob_sequence Class Reference
[File-System Library (UNIXSTL)]

STL-like readonly sequence based on the results of file-system wildcard matches. More...

#include <unixstl_glob_sequence.h>

List of all members.

Public Types

Types
typedef us_char_a_t char_type
 The char type.

typedef char_type const * value_type
 The value type.

typedef value_type const & const_reference
 The non-mutating (const) reference type.

typedef value_type const * const_pointer
 The non-mutating (const) pointer type.

typedef us_size_t size_type
 The size type.

typedef us_ptrdiff_t difference_type
 The difference type.

typedef ::stlsoft::pointer_iterator<
value_type const, const_pointer,
const_reference >::iterator_type 
const_iterator
 The non-mutating (const) iterator type.

typedef ::stlsoft::reverse_iterator_base<
const_iterator, value_type,
const_reference, const_pointer,
difference_type
const_reverse_iterator
 The type of the const (non-mutating) reverse iterator.

Flags
enum  {
  includeDots = 0x0008,
  directories = 0x0010,
  files = 0x0020,
  noSort = 0x0100,
  markDirs = 0x0200,
  absolutePath = 0x0400
}

Public Methods

Construction
 glob_sequence (char_type const *pattern, us_uint_t flags=noSort)
 Constructs a sequence according to the given criteria.

 glob_sequence (char_type const *directory, char_type const *pattern, us_uint_t flags=noSort)
 Constructs a sequence according to the given criteria.

Attributes
us_size_t size () const
 Returns the number of elements in the sequence.

us_bool_t empty () const
 Indicates whether the search sequence is empty.

const value_type operator[] (size_type index) const
 Returns the value corresponding to the given index.

Iteration
const_iterator begin () const
 Begins the iteration.

const_iterator end () const
 Ends the iteration.

const_reverse_iterator rbegin () const
 Begins the reverse iteration.

const_reverse_iterator rend () const
 Ends the reverse iteration.


Detailed Description

STL-like readonly sequence based on the results of file-system wildcard matches.

This class presents and STL-like readonly sequence interface to allow the iteration over the results of file-system wildcard matches.


Member Typedef Documentation

typedef us_char_a_t char_type
 

The char type.

typedef ::stlsoft:: pointer_iterator< value_type const , const_pointer , const_reference >::iterator_type const_iterator
 

The non-mutating (const) iterator type.

typedef value_type const* const_pointer
 

The non-mutating (const) pointer type.

typedef value_type const& const_reference
 

The non-mutating (const) reference type.

typedef ::stlsoft:: reverse_iterator_base< const_iterator , value_type , const_reference , const_pointer , difference_type > const_reverse_iterator
 

The type of the const (non-mutating) reverse iterator.

typedef us_ptrdiff_t difference_type
 

The difference type.

typedef us_size_t size_type
 

The size type.

typedef char_type const* value_type
 

The value type.


Member Enumeration Documentation

anonymous enum
 

Enumeration values:
includeDots  Requests that dots directories be included in the returned sequence
directories  Causes the search to include directories
files  Causes the search to include files
noSort  Does not sort entries
markDirs  Mark directories with a trailing path name separator
absolutePath  Return all entries in absolute format


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

STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004