|
|
|
|
|
|
|
|
|
|
|
|||||||
#include <unixstl_glob_sequence.h>
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. | |
This class presents and STL-like readonly sequence interface to allow the iteration over the results of file-system wildcard matches.
|
|
The char type.
|
|
|
The non-mutating (const) iterator type.
|
|
|
The non-mutating (const) pointer type.
|
|
|
The non-mutating (const) reference type.
|
|
|
The type of the const (non-mutating) reverse iterator.
|
|
|
The difference type.
|
|
|
The size type.
|
|
|
The value type.
|
|
|
|
| STLSoft Libraries documentation © Synesis Software Pty Ltd, 2001-2004 |