PCL
pcl::ReferenceArray< T, A >::iterator Class Reference

Mutable ReferenceArray iterator. More...

#include <ReferenceArray.h>

+ Inheritance diagram for pcl::ReferenceArray< T, A >::iterator:

Public Member Functions

 iterator ()=default
 
 iterator (const iterator &)=default
 
 iterator (std::nullptr_t)
 
 operator T* () const
 
T & operator* () const
 
iterator operator+ (distance_type d) const
 
iteratoroperator++ ()
 
iterator operator++ (int)
 
iteratoroperator+= (distance_type d)
 
distance_type operator- (const iterator &i) const
 
iterator operator- (distance_type d) const
 
iteratoroperator-- ()
 
iterator operator-- (int)
 
iteratoroperator-= (distance_type d)
 
T * operator-> () const
 
bool operator< (const iterator &i) const
 
iteratoroperator= (const iterator &)=default
 
bool operator== (const iterator &i) const
 
T * Pointer () const
 

Additional Inherited Members

- Public Types inherited from pcl::Iterator< RandomAccessIterator, T >
using item_type = T
 Represents the item type.
 
using iterator_class = RandomAccessIterator
 Represents the iterator class.
 

Detailed Description

template<typename T, class A = StandardAllocator>
class pcl::ReferenceArray< T, A >::iterator

Definition at line 123 of file ReferenceArray.h.

Constructor & Destructor Documentation

◆ iterator() [1/3]

template<typename T , class A = StandardAllocator>
pcl::ReferenceArray< T, A >::iterator::iterator ( )
default

Default constructor. Constructs an uninitialized iterator object.

◆ iterator() [2/3]

template<typename T , class A = StandardAllocator>
pcl::ReferenceArray< T, A >::iterator::iterator ( const iterator )
default

Copy constructor.

◆ iterator() [3/3]

template<typename T , class A = StandardAllocator>
pcl::ReferenceArray< T, A >::iterator::iterator ( std::nullptr_t  )
inline

Constructs a null iterator.

Definition at line 144 of file ReferenceArray.h.

Member Function Documentation

◆ operator T*()

template<typename T , class A = StandardAllocator>
pcl::ReferenceArray< T, A >::iterator::operator T* ( ) const
inline

Pointer-to-object conversion operator. Returns a pointer to the object pointed to by this iterator.

Definition at line 165 of file ReferenceArray.h.

◆ operator*()

template<typename T , class A = StandardAllocator>
T& pcl::ReferenceArray< T, A >::iterator::operator* ( ) const
inline

Indirection operator. Returns a reference to the object pointed to by this iterator.

Definition at line 174 of file ReferenceArray.h.

◆ operator+()

template<typename T , class A = StandardAllocator>
iterator pcl::ReferenceArray< T, A >::iterator::operator+ ( distance_type  d) const
inline

Scalar-to-iterator addition operator. Returns an iterator equivalent to this iterator incremented by a distance d.

Definition at line 264 of file ReferenceArray.h.

◆ operator++() [1/2]

template<typename T , class A = StandardAllocator>
iterator& pcl::ReferenceArray< T, A >::iterator::operator++ ( )
inline

Preincrement operator. Increments this iterator so that it points to the next object in the iterated container, then returns a reference to this iterator.

Definition at line 193 of file ReferenceArray.h.

◆ operator++() [2/2]

template<typename T , class A = StandardAllocator>
iterator pcl::ReferenceArray< T, A >::iterator::operator++ ( int  )
inline

Postincrement operator. Increments this iterator so that it points to the next object in the iterated container. Returns a copy of the iterator as it was before incrementing it.

Definition at line 204 of file ReferenceArray.h.

◆ operator+=()

template<typename T , class A = StandardAllocator>
iterator& pcl::ReferenceArray< T, A >::iterator::operator+= ( distance_type  d)
inline

Assignment/addition operator. Increments this iterator by a distance d from its current position. Positive increments cause this iterator to move forward by d elements. Negative increments move this iterator backward by d elements. Returns a reference to this iterator.

Definition at line 241 of file ReferenceArray.h.

◆ operator-() [1/2]

template<typename T , class A = StandardAllocator>
distance_type pcl::ReferenceArray< T, A >::iterator::operator- ( const iterator i) const
inline

Iterator subtraction operator. Returns the distance (in container elements) between this iterator and another iterator i.

Definition at line 282 of file ReferenceArray.h.

◆ operator-() [2/2]

template<typename T , class A = StandardAllocator>
iterator pcl::ReferenceArray< T, A >::iterator::operator- ( distance_type  d) const
inline

Scalar-to-iterator subtraction operator. Returns an iterator equal to this iterator decremented by a distance d.

Definition at line 273 of file ReferenceArray.h.

◆ operator--() [1/2]

template<typename T , class A = StandardAllocator>
iterator& pcl::ReferenceArray< T, A >::iterator::operator-- ( )
inline

Predecrement operator. Decrements this iterator so that it points to the previous object in the iterated container, then returns a reference to this iterator.

Definition at line 216 of file ReferenceArray.h.

◆ operator--() [2/2]

template<typename T , class A = StandardAllocator>
iterator pcl::ReferenceArray< T, A >::iterator::operator-- ( int  )
inline

Postdecrement operator. Decrements this iterator so that it points to the previous object in the iterated container. Returns a copy of the iterator as it was before decrementing it.

Definition at line 227 of file ReferenceArray.h.

◆ operator-=()

template<typename T , class A = StandardAllocator>
iterator& pcl::ReferenceArray< T, A >::iterator::operator-= ( distance_type  d)
inline

Assignment/subtraction operator. Decrements this iterator by a distance d from its current position. Positive increments cause this iterator to move backward by d elements. Negative increments move this iterator forward by d elements. Returns a reference to this iterator.

Definition at line 254 of file ReferenceArray.h.

◆ operator->()

template<typename T , class A = StandardAllocator>
T* pcl::ReferenceArray< T, A >::iterator::operator-> ( ) const
inline

Structure selection operator. Returns a pointer to the object pointed to by this iterator.

Definition at line 183 of file ReferenceArray.h.

◆ operator<()

template<typename T , class A = StandardAllocator>
bool pcl::ReferenceArray< T, A >::iterator::operator< ( const iterator i) const
inline

Less than operator. Returns true if this iterator points to a container element that precedes another iterator i.

Definition at line 300 of file ReferenceArray.h.

◆ operator=()

template<typename T , class A = StandardAllocator>
iterator& pcl::ReferenceArray< T, A >::iterator::operator= ( const iterator )
default

Copy assignment operator. Returns a reference to this object.

◆ operator==()

template<typename T , class A = StandardAllocator>
bool pcl::ReferenceArray< T, A >::iterator::operator== ( const iterator i) const
inline

Equality operator. Returns true if this iterator points to the same object as another iterator i.

Definition at line 291 of file ReferenceArray.h.

◆ Pointer()

template<typename T , class A = StandardAllocator>
T* pcl::ReferenceArray< T, A >::iterator::Pointer ( ) const
inline

Returns a pointer to the object pointed to by this iterator.

Definition at line 156 of file ReferenceArray.h.


The documentation for this class was generated from the following file: