Pepper_42_C++_interfaces
|
#include <directory_entry.h>
Public Member Functions | |
DirectoryEntry () | |
DirectoryEntry (PassRef, const PP_DirectoryEntry &data) | |
DirectoryEntry (const DirectoryEntry &other) | |
~DirectoryEntry () | |
DirectoryEntry & | operator= (const DirectoryEntry &other) |
bool | is_null () const |
FileRef | file_ref () const |
PP_FileType | file_type () const |
The DirectoryEntry
class represents information about a directory entry.
Definition at line 24 of file directory_entry.h.
pp::DirectoryEntry::DirectoryEntry | ( | ) |
Default constructor for creating an is_null() DirectoryEntry
object.
pp::DirectoryEntry::DirectoryEntry | ( | PassRef | , |
const PP_DirectoryEntry & | data | ||
) |
A constructor used when you have a PP_DirectoryEntry
which contains a FileRef
that has already been reference counted as a return value.
[in] | data | A PP_DirectoryEntry to be copied. |
pp::DirectoryEntry::DirectoryEntry | ( | const DirectoryEntry & | other | ) |
A copy constructor for DirectoryEntry
. This constructor increments a reference count of the FileRef
held by this DirectoryEntry.
[in] | other | A pointer to a DirectoryEntry . |
pp::DirectoryEntry::~DirectoryEntry | ( | ) |
A destructor that decrements a reference count of the FileRef
held by this DirectoryEntry
.
|
inline |
This function returns the FileRef
held by this DirectoryEntry
.
FileRef
of the file. Definition at line 68 of file directory_entry.h.
|
inline |
This function returns the PP_FileType
of the file referenced by this DirectoryEntry
.
PP_FileType
of the file. Definition at line 74 of file directory_entry.h.
|
inline |
This function determines if this DirectoryEntry
is a null value.
DirectoryEntry
is null, otherwise false. Definition at line 62 of file directory_entry.h.
DirectoryEntry& pp::DirectoryEntry::operator= | ( | const DirectoryEntry & | other | ) |
This function assigns one DirectoryEntry
object to this DirectoryEntry
object. This function increases the reference count of the FileRef
of the other DirectoryEntry while decrementing the reference count of the FileRef of this DirectoryEntry.
[in] | other | A pointer to a DirectoryEntry . |
DirectoryEntry
object.