DCMTK
Version 3.6.6
OFFIS DICOM Toolkit
|
An iterator for iterating over all the files (and folders) contained in a given filesystem location. More...
Public Types | |
typedef OFdirectory_entry | value_type |
A valid OFdirectory_iterator refers to an OFdirectory_entry. | |
typedef STD_NAMESPACE ptrdiff_t | difference_type |
The distance between to OFdirectory_iterators would be measured as an std::ptrdiff_t. More... | |
typedef const OFdirectory_entry * | pointer |
OFdirectory_iterator's '->' operator will give you a pointer to a const OFdirectory_entry. | |
typedef const OFdirectory_entry & | reference |
OFdirectory_iterator's '*' operator will give you a const reference to an OFdirectory_entry. | |
Public Member Functions | |
OFdirectory_iterator () | |
Construct a past-the-end OFdirectory_iterator for being used as the sentinel when iterating. | |
OFdirectory_iterator (const OFpath &path) | |
Construct an OFdirectory_iterator for iterating over all the files (and folders) inside the given location (not recursively). More... | |
OFdirectory_iterator (const OFdirectory_iterator &rhs) | |
Copy construct an OFdirectory_iterator, referring to the same directory entry as the given one. More... | |
OFdirectory_iterator & | operator= (const OFdirectory_iterator &rhs) |
Assign a different OFdirectory_iterator to this one. More... | |
~OFdirectory_iterator () | |
Destroy an OFdirectory_iterator freeing the data needed for iterating. | |
OFBool | operator== (const OFdirectory_iterator &rhs) const |
Compare an OFdirectory_iterator against another one. More... | |
OFBool | operator!= (const OFdirectory_iterator &rhs) const |
Compare an OFdirectory_iterator against another one. More... | |
OFdirectory_iterator & | operator++ () |
Increment the iterator. More... | |
unspecified | operator++ (int) |
Increment the iterator. More... | |
pointer | operator-> () const |
Dereference the iterator. More... | |
reference | operator* () const |
Dereference the iterator. More... | |
An iterator for iterating over all the files (and folders) contained in a given filesystem location.
OFdirectory_iterator implements a subset of the functionality described as std::filesystem::directory_iterator, see http://en.cppreference.com/w/cpp/filesystem/directory_iterator for more information.
typedef STD_NAMESPACE ptrdiff_t OFdirectory_iterator::difference_type |
The distance between to OFdirectory_iterators would be measured as an std::ptrdiff_t.
Well, it cannot be measured since OFdirectory_iterator is an input iterator, but some code might depend on the type being defined, so we define it anyway.
OFdirectory_iterator::OFdirectory_iterator | ( | const OFpath & | path | ) |
Construct an OFdirectory_iterator for iterating over all the files (and folders) inside the given location (not recursively).
path | the location to search for files in. |
OFdirectory_iterator::OFdirectory_iterator | ( | const OFdirectory_iterator & | rhs | ) |
Copy construct an OFdirectory_iterator, referring to the same directory entry as the given one.
rhs | the iterator to copy. |
OFBool OFdirectory_iterator::operator!= | ( | const OFdirectory_iterator & | rhs | ) | const |
Compare an OFdirectory_iterator against another one.
This is primarily used for comparing a potentially valid iterator against the past-the-end iterator OFdirectory_iterator() to determine whether the iterator refers to an directory entry or not.
rhs | another iterator to compare this one against. |
reference OFdirectory_iterator::operator* | ( | ) | const |
Dereference the iterator.
OFdirectory_iterator& OFdirectory_iterator::operator++ | ( | ) |
Increment the iterator.
Incrementing the iterator will make it refer to the next file in the originally given location or to path-the-end in case the current one was the last file.
unspecified OFdirectory_iterator::operator++ | ( | int | ) |
Increment the iterator.
Incrementing the iterator will make it refer to the next file in the originally given location or to path-the-end in case the current one was the last file.
pointer OFdirectory_iterator::operator-> | ( | ) | const |
Dereference the iterator.
OFdirectory_iterator& OFdirectory_iterator::operator= | ( | const OFdirectory_iterator & | rhs | ) |
Assign a different OFdirectory_iterator to this one.
rhs | another iterator that will be copied into this one. |
OFBool OFdirectory_iterator::operator== | ( | const OFdirectory_iterator & | rhs | ) | const |
Compare an OFdirectory_iterator against another one.
This is primarily used for comparing a potentially valid iterator against the past-the-end iterator OFdirectory_iterator() to determine whether the iterator refers to an directory entry or not.
rhs | another iterator to compare this one against. |