VFSRange

A bidirectional range of VFS items (files or directories).

Constructors

this
this(Items items)
Undocumented in source.

Destructor

~this
~this()
Undocumented in source.

Alias This

range_

Members

Aliases

Items
alias Items = RedBlackTree!(T, compare, false)

Type used to store the items.

Functions

popBack
void popBack()

Pop the back element from the range.

popFront
void popFront()

Pop the front element from the range.

Properties

length
size_t length [@property getter]

Get number of items in the range.

Static functions

compare
bool compare(T a, T b)

Function used to compare items alphabetically.

Variables

range_
Items.Range range_;
Undocumented in source.

Examples

//VFSDirs is a VFSRange of directories - VFSFiles of files.
VFSDirs dirs;

//Get the first directory.
auto f = dirs.front;

//Get the last directory.
auto b = dirs.back;

//Remove the first directory from the range (this will not remove the directory itself).
dirs.popFront();

//Remove the last directory from the range (this will not remove the directory itself).
dirs.popBack();

//Are there no files/directories ?
bool empty = r.empty;

Meta