CatapultServer
v0.5.0.1 (Elephant)
|
Consumer input composed of a range of entities augmented with metadata. More...
Public Member Functions | |
ConsumerInput () | |
Creates a default consumer input. More... | |
ConsumerInput (model::AnnotatedBlockRange &&range, InputSource source=InputSource::Unknown) | |
Creates a consumer input around a block range with an optional input source (inputSource). More... | |
ConsumerInput (model::AnnotatedTransactionRange &&range, InputSource source=InputSource::Unknown) | |
Creates a consumer input around a transaction range with an optional input source (inputSource). More... | |
bool | empty () const |
Returns true if this input is empty and has no elements. More... | |
bool | hasBlocks () const |
Returns true if this input is not empty and has blocks. More... | |
bool | hasTransactions () const |
Returns true if this input is not empty and has transactions. More... | |
BlockElements & | blocks () |
Returns the block elements associated with this input. More... | |
const BlockElements & | blocks () const |
Returns the const block elements associated with this input. More... | |
TransactionElements & | transactions () |
Returns the (free) transaction elements associated with this input. More... | |
const TransactionElements & | transactions () const |
Returns the const (free) transaction elements associated with this input. More... | |
InputSource | source () const |
Gets the source of this input. More... | |
const Key & | sourcePublicKey () const |
Gets the (optional) source public key. More... | |
model::BlockRange | detachBlockRange () |
Detaches the block range associated with this input. More... | |
model::TransactionRange | detachTransactionRange () |
Detaches the transaction range associated with this input. More... | |
Friends | |
std::ostream & | operator<< (std::ostream &out, const ConsumerInput &input) |
Insertion operator for outputting input to out. More... | |
Consumer input composed of a range of entities augmented with metadata.
catapult::disruptor::ConsumerInput::ConsumerInput | ( | ) |
Creates a default consumer input.
|
explicit |
Creates a consumer input around a block range with an optional input source (inputSource).
|
explicit |
Creates a consumer input around a transaction range with an optional input source (inputSource).
BlockElements & catapult::disruptor::ConsumerInput::blocks | ( | ) |
Returns the block elements associated with this input.
const BlockElements & catapult::disruptor::ConsumerInput::blocks | ( | ) | const |
Returns the const block elements associated with this input.
model::BlockRange catapult::disruptor::ConsumerInput::detachBlockRange | ( | ) |
Detaches the block range associated with this input.
model::TransactionRange catapult::disruptor::ConsumerInput::detachTransactionRange | ( | ) |
Detaches the transaction range associated with this input.
bool catapult::disruptor::ConsumerInput::empty | ( | ) | const |
Returns true
if this input is empty and has no elements.
bool catapult::disruptor::ConsumerInput::hasBlocks | ( | ) | const |
Returns true
if this input is not empty and has blocks.
bool catapult::disruptor::ConsumerInput::hasTransactions | ( | ) | const |
Returns true
if this input is not empty and has transactions.
InputSource catapult::disruptor::ConsumerInput::source | ( | ) | const |
Gets the source of this input.
const Key & catapult::disruptor::ConsumerInput::sourcePublicKey | ( | ) | const |
Gets the (optional) source public key.
TransactionElements & catapult::disruptor::ConsumerInput::transactions | ( | ) |
Returns the (free) transaction elements associated with this input.
const TransactionElements & catapult::disruptor::ConsumerInput::transactions | ( | ) | const |
Returns the const (free) transaction elements associated with this input.
|
friend |
Insertion operator for outputting input to out.
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |
|
private |