EventView

EventView is used to store event has a

Members

Manifest constants

eventsName
enum eventsName;
Undocumented in source.

Mixins

__anonymous
mixin HiBONRecord!(q{ this(const Event event, const size_t relocate_node_id=size_t.max) { import std.algorithm : each; id=event.id; if (event.isGrounded) { mother=father=uint.max; } else { if (event.mother) { mother=event.mother.id; } if (event.father) { father=event.father.id; } } error=event.error; node_id=(relocate_node_id is size_t.max)?event.node_id:relocate_node_id; altitude=event.altitude; order=event.order; witness=event.witness !is null; round=(event.hasRound)?event.round.number:event.round.number.min; father_less=event.isFatherLess; if (witness) { famous = event.round.famous_mask[event.node_id]; } if (!event.round_received_mask[].empty) { event.round_received_mask[].each!((n) => round_received_mask~=cast(uint)(n)); } round_received=(event.round_received)?event.round_received.number:long.min; } })
Undocumented in source.

Variables

altitude
int altitude;
Undocumented in source.
error
bool error;
Undocumented in source.
famous
bool famous;
Undocumented in source.
father
uint father;
Undocumented in source.
father_less
bool father_less;
Undocumented in source.
id
uint id;
Undocumented in source.
mother
uint mother;
Undocumented in source.
node_id
size_t node_id;
Undocumented in source.
order
int order;
Undocumented in source.
round
long round;
Undocumented in source.
round_received
long round_received;
Undocumented in source.
round_received_mask
uint[] round_received_mask;
Undocumented in source.
witness
bool witness;
Undocumented in source.

Mixed In Members

From mixin HiBONRecord!(q{ this(const Event event, const size_t relocate_node_id=size_t.max) { import std.algorithm : each; id=event.id; if (event.isGrounded) { mother=father=uint.max; } else { if (event.mother) { mother=event.mother.id; } if (event.father) { father=event.father.id; } } error=event.error; node_id=(relocate_node_id is size_t.max)?event.node_id:relocate_node_id; altitude=event.altitude; order=event.order; witness=event.witness !is null; round=(event.hasRound)?event.round.number:event.round.number.min; father_less=event.isFatherLess; if (witness) { famous = event.round.famous_mask[event.node_id]; } if (!event.round_received_mask[].empty) { event.round_received_mask[].each!((n) => round_received_mask~=cast(uint)(n)); } round_received=(event.round_received)?event.round_received.number:long.min; } })

check
alias check = Check!(HiBONRecordException)
Undocumented in source.
__anonymous
mixin JSONString
Undocumented in source.
__anonymous
mixin HiBONRecordType
Undocumented in source.
isRecord
alias isRecord = HiBONRecord.isRecord!ThisType
Undocumented in source.
HAS_TYPE
enum HAS_TYPE;
Undocumented in source.
less_than
bool less_than(Key a, Key b)
Undocumented in source. Be warned that the author may not have intended to support it.
toHiBON
inout(HiBON) toHiBON()
Undocumented in source. Be warned that the author may not have intended to support it.
NO_DEFAULT_CTOR
enum NO_DEFAULT_CTOR;
Undocumented in source.
GetKeyName
template GetKeyName(uint i)
Undocumented in source.
_keys
string[] _keys()
keys
enum keys;
Undocumented in source.
this
this(HiBON hibon)
Undocumented in source.
this
this(Document doc)
Undocumented in source.
serialize
immutable(ubyte[]) serialize()
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.

Meta