PPL
1.2
|
A class to define STL const and non-const iterators from pointer types. More...
#include <Ptr_Iterator_defs.hh>
Public Types | |
typedef std::iterator_traits< P >::difference_type | difference_type |
typedef std::iterator_traits< P >::reference | reference |
typedef std::iterator_traits< P >::pointer | pointer |
Public Member Functions | |
Ptr_Iterator () | |
Default constructor: no guarantees. More... | |
Ptr_Iterator (const P &q) | |
Construct an iterator pointing at q . More... | |
template<typename Q > | |
Ptr_Iterator (const Ptr_Iterator< Q > &q) | |
Copy constructor allowing the construction of a const_iterator from a non-const iterator. More... | |
reference | operator* () const |
Dereference operator. More... | |
pointer | operator-> () const |
Indirect member selector. More... | |
reference | operator[] (const difference_type m) const |
Subscript operator. More... | |
Ptr_Iterator & | operator++ () |
Prefix increment operator. More... | |
Ptr_Iterator | operator++ (int) |
Postfix increment operator. More... | |
Ptr_Iterator & | operator-- () |
Prefix decrement operator. More... | |
Ptr_Iterator | operator-- (int) |
Postfix decrement operator. More... | |
Ptr_Iterator & | operator+= (const difference_type m) |
Assignment-increment operator. More... | |
Ptr_Iterator & | operator-= (const difference_type m) |
Assignment-decrement operator. More... | |
difference_type | operator- (const Ptr_Iterator &y) const |
Returns the difference between *this and y . More... | |
Ptr_Iterator | operator+ (const difference_type m) const |
Returns the sum of *this and m . More... | |
Ptr_Iterator | operator- (const difference_type m) const |
Returns the difference of *this and m . More... | |
Private Member Functions | |
const P & | base () const |
Returns the hidden pointer. More... | |
Private Attributes | |
P | p |
The base pointer implementing the iterator. More... | |
A class to define STL const and non-const iterators from pointer types.
Definition at line 68 of file Ptr_Iterator_defs.hh.
typedef std::iterator_traits<P>::difference_type Parma_Polyhedra_Library::Implementation::Ptr_Iterator< P >::difference_type |
Definition at line 75 of file Ptr_Iterator_defs.hh.
typedef std::iterator_traits<P>::pointer Parma_Polyhedra_Library::Implementation::Ptr_Iterator< P >::pointer |
Definition at line 77 of file Ptr_Iterator_defs.hh.
typedef std::iterator_traits<P>::reference Parma_Polyhedra_Library::Implementation::Ptr_Iterator< P >::reference |
Definition at line 76 of file Ptr_Iterator_defs.hh.
|
inline |
Default constructor: no guarantees.
Definition at line 39 of file Ptr_Iterator_inlines.hh.
|
inlineexplicit |
Construct an iterator pointing at q
.
Definition at line 45 of file Ptr_Iterator_inlines.hh.
|
inline |
Copy constructor allowing the construction of a const_iterator from a non-const iterator.
Definition at line 52 of file Ptr_Iterator_inlines.hh.
|
inlineprivate |
Returns the hidden pointer.
Definition at line 33 of file Ptr_Iterator_inlines.hh.
Referenced by Parma_Polyhedra_Library::Implementation::operator!=(), Parma_Polyhedra_Library::Implementation::operator+(), Parma_Polyhedra_Library::Implementation::operator-(), Parma_Polyhedra_Library::Implementation::operator<(), Parma_Polyhedra_Library::Implementation::operator<=(), Parma_Polyhedra_Library::Implementation::operator==(), Parma_Polyhedra_Library::Implementation::operator>(), and Parma_Polyhedra_Library::Implementation::operator>=().
|
inline |
Dereference operator.
Definition at line 58 of file Ptr_Iterator_inlines.hh.
|
inline |
Returns the sum of *this
and m
.
Definition at line 123 of file Ptr_Iterator_inlines.hh.
|
inline |
Prefix increment operator.
Definition at line 76 of file Ptr_Iterator_inlines.hh.
|
inline |
Postfix increment operator.
Definition at line 83 of file Ptr_Iterator_inlines.hh.
|
inline |
Assignment-increment operator.
Definition at line 103 of file Ptr_Iterator_inlines.hh.
|
inline |
Returns the difference between *this
and y
.
Definition at line 117 of file Ptr_Iterator_inlines.hh.
References Parma_Polyhedra_Library::Implementation::Ptr_Iterator< P >::p.
|
inline |
Returns the difference of *this
and m
.
Definition at line 129 of file Ptr_Iterator_inlines.hh.
|
inline |
Prefix decrement operator.
Definition at line 89 of file Ptr_Iterator_inlines.hh.
|
inline |
Postfix decrement operator.
Definition at line 96 of file Ptr_Iterator_inlines.hh.
|
inline |
Assignment-decrement operator.
Definition at line 110 of file Ptr_Iterator_inlines.hh.
|
inline |
Indirect member selector.
Definition at line 64 of file Ptr_Iterator_inlines.hh.
|
inline |
Subscript operator.
Definition at line 70 of file Ptr_Iterator_inlines.hh.
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
friend |
|
private |
The base pointer implementing the iterator.
Definition at line 130 of file Ptr_Iterator_defs.hh.
Referenced by Parma_Polyhedra_Library::Implementation::Ptr_Iterator< P >::operator-().