QuantumLibrary
|
Implementation of a configuration class for Sequencer. More...
#include <quantum_sequencer_configuration.h>
Public Types | |
using | ExceptionCallback = std::function< void(std::exception_ptr exception, void *opaque)> |
Callback for unhandled exceptions in tasks posted to Sequencer. More... | |
Public Member Functions | |
void | setControlQueueId (int controlQueueId) |
Sets the id of the control queue. More... | |
int | getControlQueueId () const |
Gets the id of the control queue. More... | |
void | setBucketCount (size_t bucketCount) |
Sets the minimal number of buckets to be used for the context hash map. More... | |
size_t | getBucketCount () const |
gets the minimal number of buckets to be used for the context hash map More... | |
void | setHash (const Hash &hash) |
Sets the hash function to be used for the context hash map. More... | |
const Hash & | getHash () const |
Gets the hash function to be used for the context hash map. More... | |
void | setKeyEqual (const KeyEqual &keyEqual) |
Sets the comparison function to be used for all SequenceKey comparisons for the context hash map. More... | |
const KeyEqual & | getKeyEqual () const |
Gets the comparison function to be used for all SequenceKey comparisons for the context hash map. More... | |
void | setAllocator (const Allocator &allocator) |
Sets the allocator for all SequenceKey comparisons for the context hash map. More... | |
const Allocator & | getAllocator () const |
Gets the allocator for all SequenceKey comparisons for the context hash map. More... | |
void | setExceptionCallback (const ExceptionCallback &exceptionCallback) |
Sets the exception callback for Scheduler. More... | |
const ExceptionCallback & | getExceptionCallback () const |
Gets the exception callback for Scheduler. More... | |
Implementation of a configuration class for Sequencer.
SequenceKey | Type of the key based that sequenced tasks are associated with in Sequencer |
Hash | Hash-function used for storing instances of SequenceKey in hash maps in Sequencer |
KeyEqual | The equal-function used for storing instances of SequenceKey in hash maps in Sequencer |
Allocator | The allocator used for storing instances of SequenceKey in hash maps in Sequencer |
using Bloomberg::quantum::SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::ExceptionCallback = std::function<void(std::exception_ptr exception, void* opaque)> |
Callback for unhandled exceptions in tasks posted to Sequencer.
exception | pointer to the thrown exception |
opaque | opaque data passed when posting a task |
const Allocator & Bloomberg::quantum::SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::getAllocator | ( | ) | const |
Gets the allocator for all SequenceKey comparisons for the context hash map.
size_t Bloomberg::quantum::SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::getBucketCount | ( | ) | const |
gets the minimal number of buckets to be used for the context hash map
int Bloomberg::quantum::SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::getControlQueueId | ( | ) | const |
Gets the id of the control queue.
const SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::ExceptionCallback & Bloomberg::quantum::SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::getExceptionCallback | ( | ) | const |
Gets the exception callback for Scheduler.
const Hash & Bloomberg::quantum::SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::getHash | ( | ) | const |
Gets the hash function to be used for the context hash map.
const KeyEqual & Bloomberg::quantum::SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::getKeyEqual | ( | ) | const |
Gets the comparison function to be used for all SequenceKey comparisons for the context hash map.
void Bloomberg::quantum::SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::setAllocator | ( | const Allocator & | allocator | ) |
Sets the allocator for all SequenceKey comparisons for the context hash map.
allocator | the allocator |
void Bloomberg::quantum::SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::setBucketCount | ( | size_t | bucketCount | ) |
Sets the minimal number of buckets to be used for the context hash map.
bucketCount | the bucket number |
void Bloomberg::quantum::SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::setControlQueueId | ( | int | controlQueueId | ) |
Sets the id of the control queue.
controlQueueId | the queue id |
void Bloomberg::quantum::SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::setExceptionCallback | ( | const ExceptionCallback & | exceptionCallback | ) |
Sets the exception callback for Scheduler.
exceptionCallback | the callback to set |
void Bloomberg::quantum::SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::setHash | ( | const Hash & | hash | ) |
Sets the hash function to be used for the context hash map.
hash | the hash function |
void Bloomberg::quantum::SequencerConfiguration< SequenceKey, Hash, KeyEqual, Allocator >::setKeyEqual | ( | const KeyEqual & | keyEqual | ) |
Sets the comparison function to be used for all SequenceKey comparisons for the context hash map.
keyEqual | the comparison function |