|
|
using | IteratorType = std::conditional_t< modifiable, typename StorageType::iterator, typename StorageType::const_iterator > |
| | Type of the wrapped iterator.
|
| |
| using | ParticleType = std::remove_pointer_t< typename StorageType::value_type > |
| | Type of the Particles in the storage.
|
| |
| using | difference_type = typename IteratorType::difference_type |
| | Type trait for std::iterator_traits, to enable use of standard library algorithms.
|
| |
| using | value_type = typename IteratorType::value_type |
| | Type trait for std::iterator_traits, to enable use of standard library algorithms.
|
| |
|
using | pointer = typename IteratorType::pointer |
| | Type trait for std::iterator_traits, to enable use of standard library algorithms.
|
| |
|
using | reference = typename IteratorType::reference |
| | Type trait for std::iterator_traits, to enable use of standard library algorithms.
|
| |
| using | iterator_category = typename IteratorType::iterator_category |
| | Type trait for std::iterator_traits, to enable use of standard library algorithms.
|
| |
template<class StorageType, bool modifiable>
class CellIterator< StorageType, modifiable >
Wraps the iterator of arbitrary cells to provide a common interface.
- Note
- This class is necessary because some cells store
Particle_T and others Particle_T *.
- Template Parameters
-
| StorageType | Type of the cell, used to derive the particle type. |
| modifiable | If false, this is a const iterator, meaning, the underlying particle can not be modified. |
template<class StorageType , bool modifiable>
| using CellIterator< StorageType, modifiable >::difference_type = typename IteratorType::difference_type |
Type trait for std::iterator_traits, to enable use of standard library algorithms.
Must be of the name expected by the standard library, hence not camel case like the rest of the project.
template<class StorageType , bool modifiable>
| using CellIterator< StorageType, modifiable >::iterator_category = typename IteratorType::iterator_category |
Type trait for std::iterator_traits, to enable use of standard library algorithms.
Must be of the name expected by the standard library, hence not camel case like the rest of the project.
template<class StorageType , bool modifiable>
| using CellIterator< StorageType, modifiable >::value_type = typename IteratorType::value_type |
Type trait for std::iterator_traits, to enable use of standard library algorithms.
Must be of the name expected by the standard library, hence not camel case like the rest of the project.