|
| | DereferenceIterator ()=default |
| | Default constructor.
|
| | DereferenceIterator (BaseIterator other) |
| | Construct from a base iterator.
|
| template<typename OtherIterator, typename = std::enable_if_t< std::is_convertible_v<OtherIterator, BaseIterator>>> |
| | DereferenceIterator (const DereferenceIterator< OtherIterator > &other) |
| | Conversion constructor from another compatible DereferenceIterator.
|
| auto | operator* () const -> reference |
| | Dereference operator returning a reference to the pointed value.
|
| auto | operator-> () const -> pointer |
| | Member access operator returning a pointer to the pointed value.
|
| auto | operator[] (size_t idx) const -> reference |
| | Random access operator returning a reference to the nth value.
|
template<class BaseIterator>
class SFCGAL::DereferenceIterator< BaseIterator >
Iterator adapter that dereferences unique_ptr elements automatically.
This class wraps a base iterator (e.g., std::vector<std::unique_ptr<T>>::iterator) and returns references to the pointed objects instead of unique_ptrs.
- Template Parameters
-
| BaseIterator | the underlying iterator type |
template<class BaseIterator>
template<typename OtherIterator, typename = std::enable_if_t< std::is_convertible_v<OtherIterator, BaseIterator>>>
Conversion constructor from another compatible DereferenceIterator.
Allows implicit conversion from DereferenceIterator<iterator> to DereferenceIterator<const_iterator>.
- Template Parameters
-
| OtherIterator | Another iterator type convertible to BaseIterator. |
- Parameters
-