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 | |
![]() | |
typedef const_iterator_t | const_iterator |
typedef long | id_type |
typedef kernel_t | kernel_type |
![]() | |
PiercedKernelRange () | |
PiercedKernelRange (const const_iterator &begin, const const_iterator &end) | |
PiercedKernelRange (const kernel_t *kernel) | |
PiercedKernelRange (const kernel_t *kernel, long first, long 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, long first, long last) |
bool | operator!= (const PiercedKernelRange< other_id_t > &rhs) const |
bool | operator== (const PiercedKernelRange< other_id_t > &rhs) const |
void | swap (PiercedKernelRange &other) noexcept |
![]() | |
const_iterator | m_cbegin |
const_iterator | m_cend |
Detailed Description
class bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >
The PiercedStorageRange allow to iterate using range-based loops over a PiercedStorage.
Definition at line 47 of file piercedStorageRange.hpp.
Member Typedef Documentation
◆ const_iterator
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.
◆ id_type
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.
◆ iterator
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.
◆ storage_type
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.
◆ value_type
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.
Constructor & Destructor Documentation
◆ PiercedStorageRange() [1/4]
bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::PiercedStorageRange | ( | ) |
Constructor.
Definition at line 34 of file piercedStorageRange.tpp.
◆ PiercedStorageRange() [2/4]
bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::PiercedStorageRange | ( | storage_t * | storage | ) |
Constructor.
- Parameters
-
storage is the storage that will be associated to the range
Definition at line 46 of file piercedStorageRange.tpp.
◆ PiercedStorageRange() [3/4]
bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::PiercedStorageRange | ( | storage_t * | storage, |
id_t | first, | ||
id_t | last ) |
Constructor.
- Parameters
-
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.
◆ PiercedStorageRange() [4/4]
bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::PiercedStorageRange | ( | const iterator & | begin, |
const iterator & | end ) |
Constructor.
- Parameters
-
begin is the begin of the range end is the end of the range
Definition at line 71 of file piercedStorageRange.tpp.
Member Function Documentation
◆ begin() [1/2]
|
noexcept |
Returns a constant iterator pointing to the first element in the range.
- Returns
- A constant iterator pointing to the first element in the range.
Definition at line 185 of file piercedStorageRange.tpp.
◆ begin() [2/2]
|
noexcept |
Returns an iterator pointing to the first element in the range.
- Returns
- An iterator pointing to the first element in the range.
Definition at line 159 of file piercedStorageRange.tpp.
◆ cbegin()
|
noexcept |
Returns a constant iterator pointing to the first element in the range.
- Returns
- A constant iterator pointing to the first element in the range.
Definition at line 209 of file piercedStorageRange.tpp.
◆ cend()
|
noexcept |
Returns a constant iterator pointing to the past-the-end element in the range.
- Returns
- A constant iterator pointing to the past-the-end element in the range.
Definition at line 222 of file piercedStorageRange.tpp.
◆ end() [1/2]
|
noexcept |
Returns a constant iterator pointing to the past-the-end element in the range.
- Returns
- A constant iterator pointing to the past-the-end element in the range.
Definition at line 198 of file piercedStorageRange.tpp.
◆ end() [2/2]
|
noexcept |
Returns a constant iterator pointing to the past-the-end element in the range.
- Returns
- A constant iterator pointing to the past-the-end element in the range.
Definition at line 174 of file piercedStorageRange.tpp.
◆ getKernelRange()
const PiercedKernelRange< id_t > & bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::getKernelRange | ( | ) | const |
Get a constant reference to the kernel range.
- Returns
- A constant reference to the kernel range.
Definition at line 146 of file piercedStorageRange.tpp.
◆ initialize() [1/3]
void bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::initialize | ( | const iterator & | begin, |
const iterator & | end ) |
Initialize the range.
- Parameters
-
begin is the begin of the range end is the end of the range
Definition at line 113 of file piercedStorageRange.tpp.
◆ initialize() [2/3]
void bitpit::PiercedStorageRange< value_t, id_t, value_no_cv_t >::initialize | ( | const storage_t * | storage | ) |
Initialize the range.
- Parameters
-
storage is the storage that will be associated to the range
Definition at line 82 of file piercedStorageRange.tpp.
◆ initialize() [3/3]
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.
- Parameters
-
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.
◆ operator!=()
|
inline |
Two-way comparison.
Definition at line 163 of file piercedStorageRange.hpp.
◆ operator==()
|
inline |
Two-way comparison.
Definition at line 150 of file piercedStorageRange.hpp.
◆ swap()
|
noexcept |
Exchanges the values of the current iterator and the iterator recevied as argument.
- Parameters
-
other the iterator to exchange values with
Definition at line 132 of file piercedStorageRange.tpp.
Friends And Related Symbol Documentation
◆ PiercedStorage
|
friend |
Definition at line 53 of file piercedStorageRange.hpp.
◆ PiercedStorageRange< value_no_cv_t, id_t, value_no_cv_t >
|
friend |
Definition at line 1 of file piercedStorageRange.hpp.
The documentation for this class was generated from the following files:
- src/containers/piercedStorageRange.hpp
- src/containers/piercedStorageRange.tpp
