Rogue Wave banner
Previous fileTop of DocumentContentsIndex pageNext file
Essential Tools Module Reference Guide
Rogue Wave web site:  Home Page  |  Main Documentation Page

RWDirectoryIterator

Module:  Essential Tools Module   Group:  File System Classes


Does not inherit

Local Index

Members

Non-Members

Synopsis

#include <rw/directory.h>
RWDirectoryIterator<const char*> it;
RWDirectoryIterator<RWCString> it;

Description

The Essential Tools library provides two specializations of the class template: one for const char* which acts like a flat iterator (no iteration of subdirectories); the other one for RWCString which provides a recursive iteration of subdirectories. Neither of these follow symbolic links.

Both iterators are refinements of the Input Iterator concept. One limitation is that they will be usable only in single-pass algorithms.

The nature of the API for manipulating files and directories requires special attention to synchronization issues. These classes are:

Persistence

None

Public Typedefs

typedef const char*
value_type;

Public Member Constructors

const char* specialization constructors

RWDirectoryIterator();
explicit 
RWDirectoryIterator(const char*);
RWDirectoryIterator
(const RWDirectoryIterator<const char*>&);

RWCString specialization constructors

RWDirectoryIterator();
explicit 
RWDirectoryIterator(const char*, int depth = 0);
RWDirectoryIterator(const RWDirectoryIterator<RWCString>&);

Public Destructors

Both specializations

~RWDirectoryIterator();

Public Member Operators

Both specializations

RWDirectoryIterator&
operator=(const RWDirectoryIterator&);
RWDirectoryIterator&
operator++();
RWDirectoryIterator
operator++(int)
const char*
operator*() const;

Global Space Operators

bool
operator==(const RWDirectoryIterator& lhs,
const RWDirectoryIterator& rhs) const;
bool
operator!=(const RWDirectoryIterator& lhs, 
const RWDirectoryIterator& rhs) const;


Previous fileTop of DocumentContentsIndex pageNext file

© Copyright Rogue Wave Software, Inc. All Rights Reserved.
Rogue Wave and SourcePro are registered trademarks of Rogue Wave Software, Inc. in the United States and other countries. All other trademarks are the property of their respective owners.
Contact Rogue Wave about documentation or support issues.