Gamgee
You miserable little maggot. I'll stove your head in!
|
iterator for SharedField objects. More...
#include <shared_field_iterator.h>
Public Member Functions | |
SharedFieldIterator () | |
default constructor of an empty iterator More... | |
SharedFieldIterator (const std::shared_ptr< bcf1_t > &body, uint8_t *data_ptr, uint8_t *end_ptr, const uint8_t bytes_per_value, const utils::VariantFieldType &type) | |
Constructor with bcf1_t structure and start and end pointers of the vector/array. More... | |
SharedFieldIterator (const std::shared_ptr< bcf1_t > &body, uint8_t *data_ptr, const uint8_t bytes_per_value, const utils::VariantFieldType &type) | |
Constructor with bcf1_t structure and start pointer of the vector/array. More... | |
SharedFieldIterator (const SharedFieldIterator &other)=default | |
standard copy constructor creates a new iterator pointing to the same underlying data More... | |
SharedFieldIterator (SharedFieldIterator &&other)=default | |
standard move constructor More... | |
SharedFieldIterator & | operator= (const SharedFieldIterator &other)=default |
standard copy assignment operator creates a new iterator pointing to the same underlying data More... | |
SharedFieldIterator & | operator= (SharedFieldIterator &&other)=default |
two iterators are equal if they are in exactly the same state (pointing at the same location in memory More... | |
bool | operator== (const SharedFieldIterator &other) |
bool | operator!= (const SharedFieldIterator &other) |
the negation of SharedFieldIterator::operator==() More... | |
bool | operator< (const SharedFieldIterator &other) |
an operator is greater/less than another iterator if it is pointing to a previous element in the SharedField object. The order is determined by the Variant record. More... | |
bool | operator> (const SharedFieldIterator &other) |
not smaller than other neither equal to other More... | |
bool | operator<= (const SharedFieldIterator &other) |
not greater than other More... | |
bool | operator>= (const SharedFieldIterator &other) |
not smaller than other More... | |
VALUE_TYPE | operator* () const noexcept |
VALUE_TYPE | read_and_cache_current_pointee () noexcept |
SharedFieldIterator & | operator+= (const int n) |
SharedFieldIterator & | operator-= (const int n) |
SharedFieldIterator & | operator++ () noexcept |
advances to the next value More... | |
SharedFieldIterator | operator++ (int) noexcept |
Postfix increment. Advances to the next sample. More... | |
SharedFieldIterator & | operator-- () |
advances to the previous value More... | |
SharedFieldIterator | operator-- (int) noexcept |
Postfix decrement. Move back to the previous sample. More... | |
int32_t | operator- (const SharedFieldIterator &first) const |
difference between two iterators as an integer. More... | |
VALUE_TYPE | operator[] (const uint32_t index) const |
random access to the value of a given index for reading or writing More... | |
iterator for SharedField objects.
This iterator will walk through all the values for a given SharedField object. For example if you want to iterate over all the AN values of a Variant record you would do so through this iterator.
|
inline |
default constructor of an empty iterator
|
inlineexplicit |
Constructor with bcf1_t structure and start and end pointers of the vector/array.
body | a pointer to the bcf1_t data structure to be held as a shared pointer |
data_ptr | the byte array containing the value(s) for this shared field |
end_ptr | the end pointer value of the data array |
bytes_per_value | number of bytes in each value |
type | the encoding of the value |
|
inlineexplicit |
Constructor with bcf1_t structure and start pointer of the vector/array.
body | a pointer to the bcf1_t data structure to be held as a shared pointer |
data_ptr | the byte array containing the value(s) for this shared field |
bytes_per_value | number of bytes in each value |
type | the encoding of the value |
|
default |
standard copy constructor creates a new iterator pointing to the same underlying data
|
default |
standard move constructor
|
inline |
the negation of SharedFieldIterator::operator==()
|
inlinenoexcept |
|
inlinenoexcept |
advances to the next value
|
inlinenoexcept |
Postfix increment. Advances to the next sample.
|
inline |
advance n values
|
inline |
difference between two iterators as an integer.
first | is the iterator the position of which is to be subtracted from the position of the current iterator. |
|
inline |
advances to the previous value
|
inlinenoexcept |
Postfix decrement. Move back to the previous sample.
|
inline |
moves back n values
|
inline |
an operator is greater/less than another iterator if it is pointing to a previous element in the SharedField object. The order is determined by the Variant record.
|
inline |
not greater than other
|
default |
standard copy assignment operator creates a new iterator pointing to the same underlying data
|
default |
two iterators are equal if they are in exactly the same state (pointing at the same location in memory
standard move assignment operator
|
inline |
|
inline |
not smaller than other neither equal to other
|
inline |
not smaller than other
|
inline |
random access to the value of a given index for reading or writing
index | must be between 0 and the number of indices for this record but no boundary check is done in this implementation |
|
inlinenoexcept |