Lines Matching full:directory
29 #include "utils/fs/directory.hpp"
52 /// Constructs a new directory entry.
54 /// \param name_ Name of the directory entry.
60 /// Checks if two directory entries are equal.
72 /// Checks if two directory entries are different.
96 /// Formats a directory entry.
112 /// In order to support multiple concurrent iterators over the same directory
113 /// object, this class is the one that performs all directory-level accesses.
115 /// handles the DIR object for the directory.
118 /// directory class at all. This should not be relied on for object lifecycle
121 /// Path of the directory accessed by this iterator.
124 /// Raw pointer to the system representation of the directory.
130 /// Raw representation of the system directory entry.
136 /// Custom representation of the directory entry.
143 /// Constructs an iterator pointing to the "end" of the directory.
144 impl(void) : _path("invalid-directory-entry"), _dirp(NULL) in impl()
148 /// Constructs a new iterator to start scanning a directory.
150 /// \param path The directory that will be scanned.
152 /// \throw system_error If there is a problem opening the directory.
163 // Initialize our first directory entry. Note that this may actually in impl()
164 // close the directory we just opened if the directory happens to be in impl()
172 /// This closes the directory if still open.
179 /// Closes the directory and invalidates the iterator.
190 /// Advances the directory entry to the next one.
216 /// Constructs a new directory iterator.
231 /// Creates a new directory iterator for a directory.
233 /// \return The directory iterator. Note that the result may be invalid.
235 /// \throw system_error If opening the directory or reading its first entry
244 /// Creates a new invalid directory iterator.
246 /// \return The invalid directory iterator.
298 /// \return A reference to the directory entry pointed to by the iterator.
309 /// \return A pointer to the directory entry pointed to by the iterator.
318 /// Internal implementation details for the directory.
319 struct utils::fs::directory::impl : utils::noncopyable {
320 /// Path to the directory to scan.
323 /// Constructs a new directory.
325 /// \param path_ Path to the directory to scan.
332 /// Constructs a new directory.
334 /// \param path_ Path to the directory to scan.
335 fs::directory::directory(const path& path_) : _pimpl(new impl(path_)) in directory() function in fs::directory
340 /// Returns an iterator to start scanning the directory.
342 /// \return An iterator on the directory.
344 /// \throw system_error If the directory cannot be opened to obtain its first
346 fs::directory::const_iterator
347 fs::directory::begin(void) const in begin()
356 fs::directory::const_iterator
357 fs::directory::end(void) const in end()