DARTFile.Branches

Data struct which contains the branches in sub-tree

Constructors

this
this(Document doc)
Undocumented in source.

Members

Functions

count
uint count()
dart_index
DARTIndex dart_index(size_t key)
Undocumented in source. Be warned that the author may not have intended to support it.
dart_indices
DARTIndexRange dart_indices()
Undocumented in source. Be warned that the author may not have intended to support it.
dump
void dump()

Dumps the branches information

empty
bool empty()

Check if the branches has indices

fingerprint
Fingerprint fingerprint(size_t key)
get_dart_index
DARTIndex get_dart_index(size_t key)
Undocumented in source. Be warned that the author may not have intended to support it.
hasIndices
bool hasIndices()
Undocumented in source. Be warned that the author may not have intended to support it.
index
Index index(uint key)

Get the index number of Leave at the leave number key

isSingle
bool isSingle()
keys
auto keys()
Undocumented in source. Be warned that the author may not have intended to support it.
opIndex
Leave opIndex(uint key)

Get the leave at key in the branches

opIndexAssign
void opIndexAssign(Leave leave, uint key)

Set the branch at leave-number key the leave

opSlice
auto opSlice()
Undocumented in source. Be warned that the author may not have intended to support it.
toDoc
const(Document) toDoc()
Undocumented in source. Be warned that the author may not have intended to support it.
toHiBON
HiBON toHiBON(bool exclude_indices)

Creates a HiBON from a the branches

Manifest constants

dart_indicesName
enum dart_indicesName;
Undocumented in source.
fingerprintsName
enum fingerprintsName;
Undocumented in source.
indicesName
enum indicesName;
Undocumented in source.

Mixins

__anonymous
mixin JSONString
Undocumented in source.
__anonymous
mixin HiBONRecordType
Undocumented in source.

Properties

fingerprints
const(Fingerprint[]) fingerprints [@property getter]
indices
const(Index[]) indices [@property getter]

Structs

DARTIndexRange
struct DARTIndexRange
Undocumented in source.

Variables

_dart_indices
DARTIndex[] _dart_indices;

Array of all the Leaves hashes

_fingerprints
Fingerprint[] _fingerprints;

Array of all the Leaves hashes

_indices
Index[] _indices;

Array of index pointer to BlockFile

merkleroot
Fingerprint merkleroot;

The sparsed Merkle root hash of the branches

Mixed In Members

From mixin JSONString

toString
void toString(void delegate(scope const(char)[]) @(safe) sink, FormatSpec!char fmt)
Undocumented in source. Be warned that the author may not have intended to support it.

From mixin HiBONRecordType

ThisType
alias ThisType = typeof(this)
Undocumented in source.
record_types
alias record_types = getUDAs!(ThisType, recordType)
Undocumented in source.
type_name
enum type_name;
Undocumented in source.
isRecord
alias isRecord = isRecordT!ThisType
Undocumented in source.
isRecord
bool isRecord(Document doc)
Undocumented in source. Be warned that the author may not have intended to support it.

Meta