basic_directory_entry Class

Describes an object that is returned by *X, where X is a basic_directory_iterator or a basic_recursive_directory_iterator.

template<class Path>
class basic_directory_entry;

Remarks

The class stores an object of template type Path. Path can be either a basic_path or a type that is derived from basic_path. It also stores two file_type values; one that represents what is known about the status of the stored file name, and another that represents what is known about the symbolic link status of the file name.

Members

Public Typedefs

Name

Description

basic_directory_entry::path_type

A synonym for template type Path.

basic_directory_entry::string_type

A synonym for Path::string_type.

Public Constructors

Name

Description

basic_directory_entry::basic_directory_entry Constructor

Constructs a basic_directory_entry object.

Public Methods

Name

Description

basic_directory_entry::assign Method

Stores a specified Path object.

basic_directory_entry::path Method

Retrieves the stored Path object.

basic_directory_entry::replace_leaf Method

Replaces the stored leaf value and updates the status of the stored file name.

basic_directory_entry::status Method

Retrieves the file name status.

basic_directory_entry::symlink_status Method

Retrieves the file name symbolic link status.

Public Operators

Name

Description

basic_directory_entry::operator const path_type& Operator

Retrieves the stored Path object.

basic_directory_entry::operator!= Operator

Determines whether a specified Path object is not equal to the stored Path object.

basic_directory_entry::operator< Operator

Determines whether the stored Path object is less than a specified Path object.

basic_directory_entry::operator<= Operator

Determines whether the stored Path object is less than or equal to a specified Path object.

basic_directory_entry::operator= Operator

Stores a specified Path object.

basic_directory_entry::operator== Operator

Determines whether a specified Path object is equal to the stored Path object.

basic_directory_entry::operator> Operator

Determines whether the stored Path object is greater than a specified Path object.

basic_directory_entry::operator>= Operator

Determines whether the stored Path object is greater than or equal to a specified Path object.

Inheritance Hierarchy

basic_directory_entry

Requirements

Header: filesystem

Namespace: std::tr2::sys

See Also

Reference

<filesystem>

Other Resources

C++ Standard Library Header Files