다음을 통해 공유


basic_recursive_directory_iterator 클래스

Describes an input iterator that sequences through the file names in a file system directory. The iterator can also descend into subdirectories. For an iterator X, the expression *X evaluates to a basic_directory_entry object that wraps a file name and anything that's known about the status of the associated file.

template<class Path>
class basic_recursive_directory_iterator : public iterator<input_iterator_tag, basic_directory_entry<Path>>;

설명

The class stores an object of type Path, which represents the current file name in the directory sequence. Pathbasic_path 또는 basic_path에서 파생된 형식 중 하나일 수 있습니다.

The class also stores a bool that indicates whether recursive descent into subdirectories is inhibited.

멤버

공용 Typedefs

Name

설명

basic_recursive_directory_iterator::char_type

string_type::value_type 의 동의어입니다.

basic_recursive_directory_iterator::path_type

A synonym for template parameter Path.

basic_recursive_directory_iterator::pointer

value_type* 의 동의어입니다.

basic_recursive_directory_iterator::string_type

A synonym for the string type Path::string_type.

basic_recursive_directory_iterator::value_type

basic_directory_entry<Path> 의 동의어입니다.

Public 생성자

Name

설명

basic_recursive_directory_iterator::basic_recursive_directory_iterator 생성자

basic_recursive_directory_iterator 개체를 생성합니다.

Public 메서드

Name

설명

basic_recursive_directory_iterator::level 메서드

Returns the number of levels that the iterator has descended into the directory hierarchy.

basic_recursive_directory_iterator::no_push 메서드

Prohibits descent into subdirectories.

basic_recursive_directory_iterator::pop 메서드

Discontinues reading in the current subdirectory and increments the iterator.

Public 연산자

Name

설명

basic_recursive_directory_iterator::operator* 연산자

Retrieves the stored Path object.

basic_recursive_directory_iterator::operator++ 연산자

Reads and stores the next Path object.

basic_recursive_directory_iterator::operator= 연산자

Assignment operator for the current Path object.

basic_recursive_directory_iterator::operator-> 연산자

&**this를 반환합니다.

요구 사항

헤더: filesystem

네임스페이스: std::tr2::sys

참고 항목

참조

<filesystem>

기타 리소스

C++ 표준 라이브러리 헤더 파일