BEntryList

Derived From:None
Mix-in Classes:None
Declared In:storage/EntryList.h
Library: 
Allocation:
Class Overview

Member Functions

CountEntries()

virtual int32 CountEntries() = 0;

Returns the number of entries that are in the entry list.

Warning
Warning

For BQuery this is a no-op. Also, BDirectory's implementation manipulates the entry list pointer; thus, you shouldn't call CountEntries() while you're iterating through the directory's entries.

GetNextEntry(), GetNextRef(), GetNextDirents()

virtual status_t GetNextEntry(BEntryentry,
                              bool traverse = false) = 0;
virtual status_t GetNextRef(entry_ref* ref) = 0;virtual int32 GetNextDirents(dirent* buf,
                             size_t bufsize,
                             int32 count = INT_MAX) = 0;

These functions return the "next" entry in the entry list as a BEntry, entry_ref, or dirent structure. The end of the list is signalled by…

  • GetNextEntry() and GetNextRef() return B_ENTRY_NOT_FOUND.

  • GetNextDirents() returns 0.

If the traverse argument is true, symlinks are traversed.

See the class overview for more information.

Rewind()

virtual status_t Rewind() = 0;

Rewinds the entry list pointer so it points to the first element in the list.

Warning
Warning

For BQuery this is a no-op.

Creative Commons License
Legal Notice
This work is licensed under a Creative Commons Attribution-Non commercial-No Derivative Works 3.0 License.