Iterator for the class PiercedKernel. More...
#include <piercedKernelIterator.hpp>
Public Types | |
typedef std::ptrdiff_t | difference_type |
typedef id_t | id_type |
typedef std::bidirectional_iterator_tag | iterator_category |
typedef kernel_t | kernel_type |
typedef const id_t * | pointer |
typedef const id_t & | reference |
typedef id_t | value_type |
Public Member Functions | |
PiercedKernelIterator () | |
id_t | getId (const id_t &fallback=-1) const noexcept |
const kernel_type & | getKernel () const |
std::size_t | getPos () const noexcept |
std::size_t | getRawIndex () const noexcept |
bool | operator!= (const PiercedKernelIterator &rhs) const |
const id_t & | operator* () const |
PiercedKernelIterator & | operator++ () |
PiercedKernelIterator | operator++ (int) |
PiercedKernelIterator & | operator-- () |
PiercedKernelIterator | operator-- (int) |
const id_t * | operator-> () const |
bool | operator== (const PiercedKernelIterator &rhs) const |
void | swap (PiercedKernelIterator &other) noexcept |
Friends | |
template<typename PK_id_t > | |
class | PiercedKernel |
template<typename PSI_value_t , typename PSI_id_t , typename PSI_value_no_cv_t > | |
class | PiercedStorageIterator |
Iterator for the class PiercedKernel.
id_t | is the type of ids associated to the elements |
Definition at line 46 of file piercedKernelIterator.hpp.
typedef std::ptrdiff_t bitpit::PiercedKernelIterator< id_t >::difference_type |
Difference type
Definition at line 85 of file piercedKernelIterator.hpp.
typedef id_t bitpit::PiercedKernelIterator< id_t >::id_type |
Type of ids in the kernel
Definition at line 105 of file piercedKernelIterator.hpp.
typedef std::bidirectional_iterator_tag bitpit::PiercedKernelIterator< id_t >::iterator_category |
Iterator category
Definition at line 75 of file piercedKernelIterator.hpp.
typedef kernel_t bitpit::PiercedKernelIterator< id_t >::kernel_type |
Kernel type
Definition at line 100 of file piercedKernelIterator.hpp.
typedef const id_t* bitpit::PiercedKernelIterator< id_t >::pointer |
Pointer type
Definition at line 90 of file piercedKernelIterator.hpp.
typedef const id_t& bitpit::PiercedKernelIterator< id_t >::reference |
Reference type
Definition at line 95 of file piercedKernelIterator.hpp.
typedef id_t bitpit::PiercedKernelIterator< id_t >::value_type |
Value type
Definition at line 80 of file piercedKernelIterator.hpp.
bitpit::PiercedKernelIterator< id_t >::PiercedKernelIterator | ( | ) |
Creates a new uninitialized iterator
Definition at line 34 of file piercedKernelIterator.tpp.
|
noexcept |
Gets the id of the current element.
Definition at line 80 of file piercedKernelIterator.tpp.
const PiercedKernelIterator< id_t >::kernel_type & bitpit::PiercedKernelIterator< id_t >::getKernel | ( | ) | const |
Get a constant reference of the kernel associated with the iterator.
Definition at line 68 of file piercedKernelIterator.tpp.
|
noexcept |
Gets the position of the current element.
Definition at line 114 of file piercedKernelIterator.tpp.
|
noexcept |
Gets the position of the current element.
Definition at line 103 of file piercedKernelIterator.tpp.
|
inline |
Two-way comparison.
Definition at line 141 of file piercedKernelIterator.hpp.
const id_t & bitpit::PiercedKernelIterator< id_t >::operator* | ( | ) | const |
Deference operator.
Definition at line 223 of file piercedKernelIterator.tpp.
PiercedKernelIterator< id_t > & bitpit::PiercedKernelIterator< id_t >::operator++ | ( | ) |
Pre-increment operator.
Increment operator does not check whether it crosses the end() of the container. Thus, calling this function if the iterator is already at the end of the container results in undefined behavior.
Definition at line 127 of file piercedKernelIterator.tpp.
PiercedKernelIterator< id_t > bitpit::PiercedKernelIterator< id_t >::operator++ | ( | int | ) |
Post-increment operator.
Increment operator does not check whether it crosses the end() of the container. Thus, calling this function if the iterator is already at the end of the container results in undefined behavior.
Definition at line 159 of file piercedKernelIterator.tpp.
PiercedKernelIterator< id_t > & bitpit::PiercedKernelIterator< id_t >::operator-- | ( | ) |
Pre-decrement operator.
Decrement operator does not check whether it crosses the begin() of the container. Thus, calling this function if the iterator is already at the begin of the container results in undefined behavior.
Definition at line 176 of file piercedKernelIterator.tpp.
PiercedKernelIterator< id_t > bitpit::PiercedKernelIterator< id_t >::operator-- | ( | int | ) |
Post-decrement operator.
Decrement operator does not check whether it crosses the begin() of the container. Thus, calling this function if the iterator is already at the begin of the container results in undefined behavior.
Definition at line 208 of file piercedKernelIterator.tpp.
const id_t * bitpit::PiercedKernelIterator< id_t >::operator-> | ( | ) | const |
Deference operator.
Definition at line 234 of file piercedKernelIterator.tpp.
|
inline |
Two-way comparison.
Definition at line 133 of file piercedKernelIterator.hpp.
|
noexcept |
Exchanges the values of the current iterator and the iterator recevied as argument.
other | the iterator to exchange values with |
Definition at line 56 of file piercedKernelIterator.tpp.
Definition at line 51 of file piercedKernelIterator.hpp.
|
friend |
Definition at line 54 of file piercedKernelIterator.hpp.