The PiercedStorageRange allow to iterate using range-based loops over a PiercedStorage. More...
#include <piercedStorageRange.hpp>
Public Types | |
typedef const_iterator_t | const_iterator |
typedef id_t | id_type |
typedef iterator_t | iterator |
typedef storage_t | storage_type |
typedef value_t | value_type |
Public Member Functions | |
PiercedStorageRange () | |
PiercedStorageRange (const iterator &begin, const iterator &end) | |
PiercedStorageRange (storage_t *storage) | |
PiercedStorageRange (storage_t *storage, id_t first, id_t last) | |
const_iterator | begin () const noexcept |
template<typename U = value_t, typename U_no_cv = value_no_cv_t, typename std::enable_if< std::is_same< U, U_no_cv >::value, int >::type = 0> | |
iterator | begin () noexcept |
const_iterator | cbegin () const noexcept |
const_iterator | cend () const noexcept |
const_iterator | end () const noexcept |
template<typename U = value_t, typename U_no_cv = value_no_cv_t, typename std::enable_if< std::is_same< U, U_no_cv >::value, int >::type = 0> | |
iterator | end () noexcept |
const PiercedKernelRange< id_t > & | getKernelRange () const |
void | initialize (const iterator &begin, const iterator &end) |
void | initialize (const storage_t *storage) |
void | initialize (const storage_t *storage, id_t first, id_t last) |
template<typename other_value_t , typename other_id_t = long> | |
bool | operator!= (const PiercedStorageRange< other_value_t, other_id_t > &rhs) const |
template<typename other_value_t , typename other_id_t = long> | |
bool | operator== (const PiercedStorageRange< other_value_t, other_id_t > &rhs) const |
void | swap (PiercedStorageRange &other) noexcept |
Friends | |
template<typename PS_value_t , typename PS_id_t > | |
class | PiercedStorage |
class | PiercedStorageRange< value_no_cv_t, id_t, value_no_cv_t > |
Additional Inherited Members | |
Protected Types inherited from bitpit::PiercedKernelRange< id_t > | |
typedef const_iterator_t | const_iterator |
typedef id_t | id_type |
typedef kernel_t | kernel_type |
Protected Member Functions inherited from bitpit::PiercedKernelRange< id_t > | |
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 inherited from bitpit::PiercedKernelRange< id_t > | |
const_iterator | m_cbegin |
const_iterator | m_cend |
The PiercedStorageRange allow to iterate using range-based loops over a PiercedStorage.
Definition at line 47 of file piercedStorageRange.hpp.
typedef const_iterator_t bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::const_iterator |
Type of constant iterator
Definition at line 112 of file piercedStorageRange.hpp.
typedef id_t bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::id_type |
Type of ids stored in the container
Definition at line 106 of file piercedStorageRange.hpp.
typedef iterator_t bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::iterator |
Type of iterator
Definition at line 109 of file piercedStorageRange.hpp.
typedef storage_t bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::storage_type |
Type of container
Definition at line 100 of file piercedStorageRange.hpp.
typedef value_t bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::value_type |
Type of data stored in the container
Definition at line 103 of file piercedStorageRange.hpp.
bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::PiercedStorageRange | ( | ) |
Constructor.
Definition at line 34 of file piercedStorageRange.tpp.
bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::PiercedStorageRange | ( | storage_t * | storage | ) |
Constructor.
storage | is the storage that will be associated to the range |
Definition at line 46 of file piercedStorageRange.tpp.
bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::PiercedStorageRange | ( | storage_t * | storage, |
id_t | first, | ||
id_t | last ) |
Constructor.
storage | is the storage 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 piercedStorageRange.tpp.
bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::PiercedStorageRange | ( | const iterator & | begin, |
const iterator & | end ) |
Constructor.
begin | is the begin of the range |
end | is the end of the range |
Definition at line 71 of file piercedStorageRange.tpp.
|
noexcept |
Returns a constant iterator pointing to the first element in the range.
Definition at line 185 of file piercedStorageRange.tpp.
|
noexcept |
Returns an iterator pointing to the first element in the range.
Definition at line 159 of file piercedStorageRange.tpp.
|
noexcept |
Returns a constant iterator pointing to the first element in the range.
Definition at line 209 of file piercedStorageRange.tpp.
|
noexcept |
Returns a constant iterator pointing to the past-the-end element in the range.
Definition at line 222 of file piercedStorageRange.tpp.
|
noexcept |
Returns a constant iterator pointing to the past-the-end element in the range.
Definition at line 198 of file piercedStorageRange.tpp.
|
noexcept |
Returns a constant iterator pointing to the past-the-end element in the range.
Definition at line 174 of file piercedStorageRange.tpp.
const PiercedKernelRange< id_t > & bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::getKernelRange | ( | ) | const |
Get a constant reference to the kernel range.
Definition at line 146 of file piercedStorageRange.tpp.
void bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::initialize | ( | const iterator & | begin, |
const iterator & | end ) |
Initialize the range.
begin | is the begin of the range |
end | is the end of the range |
Definition at line 113 of file piercedStorageRange.tpp.
void bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::initialize | ( | const storage_t * | storage | ) |
Initialize the range.
storage | is the storage that will be associated to the range |
Definition at line 82 of file piercedStorageRange.tpp.
void bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::initialize | ( | const storage_t * | storage, |
id_t | first, | ||
id_t | last ) |
Initialize the range.
storage | is the storage 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 98 of file piercedStorageRange.tpp.
|
inline |
Two-way comparison.
Definition at line 163 of file piercedStorageRange.hpp.
|
inline |
Two-way comparison.
Definition at line 150 of file piercedStorageRange.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 132 of file piercedStorageRange.tpp.
|
friend |
Definition at line 53 of file piercedStorageRange.hpp.
|
friend |
Definition at line 1 of file piercedStorageRange.hpp.