The PiercedKernelRange allow to iterate using range-based loops over a PiercedStorage. More...
#include <piercedKernelRange.hpp>
Public Types | |
typedef const_iterator_t | const_iterator |
typedef id_t | id_type |
typedef kernel_t | kernel_type |
Public Member Functions | |
PiercedKernelRange () | |
PiercedKernelRange (const const_iterator &begin, const const_iterator &end) | |
PiercedKernelRange (const kernel_t *kernel) | |
PiercedKernelRange (const kernel_t *kernel, id_t first, id_t last) | |
const_iterator | begin () const noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
const_iterator | end () const noexcept |
std::size_t | evalSize () const |
void | initialize (const const_iterator &begin, const const_iterator &end) |
void | initialize (const kernel_t *kernel) |
void | initialize (const kernel_t *kernel, id_t first, id_t last) |
template<typename other_id_t = long> | |
bool | operator!= (const PiercedKernelRange< other_id_t > &rhs) const |
template<typename other_id_t = long> | |
bool | operator== (const PiercedKernelRange< other_id_t > &rhs) const |
void | swap (PiercedKernelRange &other) noexcept |
Protected Attributes | |
const_iterator | m_cbegin |
const_iterator | m_cend |
Friends | |
template<typename PK_id_t > | |
class | PiercedKernel |
The PiercedKernelRange allow to iterate using range-based loops over a PiercedStorage.
Definition at line 35 of file piercedKernelRange.hpp.
typedef const_iterator_t bitpit::PiercedKernelRange< id_t >::const_iterator |
Type of constant iterator
Definition at line 66 of file piercedKernelRange.hpp.
typedef id_t bitpit::PiercedKernelRange< id_t >::id_type |
Type of ids stored in the container
Definition at line 63 of file piercedKernelRange.hpp.
typedef kernel_t bitpit::PiercedKernelRange< id_t >::kernel_type |
Kernel type
Definition at line 60 of file piercedKernelRange.hpp.
bitpit::PiercedKernelRange< id_t >::PiercedKernelRange | ( | ) |
Constructor.
Definition at line 34 of file piercedKernelRange.tpp.
bitpit::PiercedKernelRange< id_t >::PiercedKernelRange | ( | const kernel_t * | kernel | ) |
Constructor.
kernel | is the kernel that will be associated to the range |
Definition at line 46 of file piercedKernelRange.tpp.
bitpit::PiercedKernelRange< id_t >::PiercedKernelRange | ( | const kernel_t * | kernel, |
id_t | first, | ||
id_t | last ) |
Constructor.
kernel | is the kernel that will be associated to the range |
first | is the id of the first element in the range |
last | is the id of the last element in the range |
Definition at line 59 of file piercedKernelRange.tpp.
bitpit::PiercedKernelRange< id_t >::PiercedKernelRange | ( | const const_iterator & | begin, |
const const_iterator & | end ) |
Constructor.
begin | is the begin of the range |
end | is the end of the range |
Definition at line 71 of file piercedKernelRange.tpp.
|
noexcept |
Returns a constant iterator pointing to the first element in the range.
Definition at line 161 of file piercedKernelRange.tpp.
|
noexcept |
Returns a constant iterator pointing to the first element in the range.
Definition at line 185 of file piercedKernelRange.tpp.
|
noexcept |
Returns a constant iterator pointing to the past-the-end element in the range.
Definition at line 198 of file piercedKernelRange.tpp.
|
noexcept |
Returns a constant iterator pointing to the past-the-end element in the range.
Definition at line 174 of file piercedKernelRange.tpp.
std::size_t bitpit::PiercedKernelRange< id_t >::evalSize | ( | ) | const |
Evaluates the number of elements contained in the range.
Definition at line 137 of file piercedKernelRange.tpp.
void bitpit::PiercedKernelRange< id_t >::initialize | ( | const const_iterator & | begin, |
const const_iterator & | end ) |
Initialize the range.
begin | is the begin of the range |
end | is the end of the range |
Definition at line 109 of file piercedKernelRange.tpp.
void bitpit::PiercedKernelRange< id_t >::initialize | ( | const kernel_t * | kernel | ) |
Initialize the range.
kernel | is the kernel that will be associated to the range |
Definition at line 82 of file piercedKernelRange.tpp.
void bitpit::PiercedKernelRange< id_t >::initialize | ( | const kernel_t * | kernel, |
id_t | first, | ||
id_t | last ) |
Initialize the range.
kernel | is the kernel that will be associated to the range |
first | is the id of the first element in the range |
last | is the id of the last element in the range |
Definition at line 96 of file piercedKernelRange.tpp.
|
inline |
Two-way comparison.
Definition at line 110 of file piercedKernelRange.hpp.
|
inline |
Two-way comparison.
Definition at line 93 of file piercedKernelRange.hpp.
|
noexcept |
Exchanges the values of the current range and the range recevied as argument.
other | the range to exchange values with |
Definition at line 125 of file piercedKernelRange.tpp.
Definition at line 39 of file piercedKernelRange.hpp.
|
protected |
Begin
Definition at line 125 of file piercedKernelRange.hpp.
|
protected |
End
Definition at line 128 of file piercedKernelRange.hpp.