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

Immutable ReferenceArray iterator. More...

#include <ReferenceArray.h>

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

Public Member Functions

 const_iterator ()=default
 
 const_iterator (const const_iterator &)=default
 
 const_iterator (const iterator &i)
 
 const_iterator (std::nullptr_t)
 
 operator const T * () const
 
const T & operator* () const
 
const_iterator operator+ (distance_type d) const
 
const_iteratoroperator++ ()
 
const_iterator operator++ (int)
 
const_iteratoroperator+= (distance_type d)
 
distance_type operator- (const const_iterator &i) const
 
distance_type operator- (const iterator &i) const
 
const_iterator operator- (distance_type d) const
 
const_iteratoroperator-- ()
 
const_iterator operator-- (int)
 
const_iteratoroperator-= (distance_type d)
 
const T * operator-> () const
 
bool operator< (const const_iterator &i) const
 
bool operator< (const iterator &i) const
 
const_iteratoroperator= (const const_iterator &)=default
 
const_iteratoroperator= (const iterator &i)
 
bool operator== (const const_iterator &i) const
 
bool operator== (const iterator &i) const
 
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 >::const_iterator

Definition at line 326 of file ReferenceArray.h.

Constructor & Destructor Documentation

◆ const_iterator() [1/4]

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

Default constructor. Constructs an uninitialized iterator object.

◆ const_iterator() [2/4]

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

Constructor from non-const iterator.

Definition at line 342 of file ReferenceArray.h.

◆ const_iterator() [3/4]

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

Constructs a null iterator.

Definition at line 349 of file ReferenceArray.h.

◆ const_iterator() [4/4]

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

Copy constructor.

Member Function Documentation

◆ operator const T *()

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

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

Definition at line 386 of file ReferenceArray.h.

◆ operator*()

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

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

Definition at line 395 of file ReferenceArray.h.

◆ operator+()

template<typename T , class A = StandardAllocator>
const_iterator pcl::ReferenceArray< T, A >::const_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 485 of file ReferenceArray.h.

◆ operator++() [1/2]

template<typename T , class A = StandardAllocator>
const_iterator& pcl::ReferenceArray< T, A >::const_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 414 of file ReferenceArray.h.

◆ operator++() [2/2]

template<typename T , class A = StandardAllocator>
const_iterator pcl::ReferenceArray< T, A >::const_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 425 of file ReferenceArray.h.

◆ operator+=()

template<typename T , class A = StandardAllocator>
const_iterator& pcl::ReferenceArray< T, A >::const_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 462 of file ReferenceArray.h.

◆ operator-() [1/3]

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

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

Definition at line 503 of file ReferenceArray.h.

◆ operator-() [2/3]

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

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

Definition at line 512 of file ReferenceArray.h.

◆ operator-() [3/3]

template<typename T , class A = StandardAllocator>
const_iterator pcl::ReferenceArray< T, A >::const_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 494 of file ReferenceArray.h.

◆ operator--() [1/2]

template<typename T , class A = StandardAllocator>
const_iterator& pcl::ReferenceArray< T, A >::const_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 437 of file ReferenceArray.h.

◆ operator--() [2/2]

template<typename T , class A = StandardAllocator>
const_iterator pcl::ReferenceArray< T, A >::const_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 448 of file ReferenceArray.h.

◆ operator-=()

template<typename T , class A = StandardAllocator>
const_iterator& pcl::ReferenceArray< T, A >::const_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 475 of file ReferenceArray.h.

◆ operator->()

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

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

Definition at line 404 of file ReferenceArray.h.

◆ operator<() [1/2]

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

Less than operator. Returns true if this iterator precedes another iterator i.

Definition at line 539 of file ReferenceArray.h.

◆ operator<() [2/2]

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

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

Definition at line 548 of file ReferenceArray.h.

◆ operator=() [1/2]

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

Copy assignment operator. Returns a reference to this immutable iterator.

◆ operator=() [2/2]

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

Mutable iterator assignment operator. Returns a reference to this immutable iterator object.

Definition at line 368 of file ReferenceArray.h.

◆ operator==() [1/2]

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

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

Definition at line 521 of file ReferenceArray.h.

◆ operator==() [2/2]

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

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

Definition at line 530 of file ReferenceArray.h.

◆ Pointer()

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

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

Definition at line 377 of file ReferenceArray.h.


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