Main Page   Modules   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

__one_iterator< _Tp > Class Template Reference
[Classes and types for internal use]

make an iterator out of one pointer More...

#include <vgtl_intadapt.h>

List of all members.

Public Types

typedef std::random_access_iterator_tag iterator_category
 standard iterator definitions

typedef ptrdiff_t difference_type
 standard iterator definitions

typedef _Tp value_type
 standard iterator definitions

typedef value_typepointer
 standard iterator definitions

typedef value_typereference
 standard iterator definitions


Public Methods

 __one_iterator ()
 standard constructor

 __one_iterator (const value_type *__x)
 standard constructor setting the value

 __one_iterator (const _Self &__x)
 copy constructor

 __one_iterator (const pointer &__v, bool __a)
 constructor, explicitly setting value and iterator position

reference operator * () const
 dereference operator

_Self & operator++ ()
 standard increment, decrement, and access operators for random access

_Self operator++ (int)
 standard increment, decrement, and access operators for random access

_Self & operator-- ()
 standard increment, decrement, and access operators for random access

_Self operator-- (int)
 standard increment, decrement, and access operators for random access

_Self operator+ (difference_type __n) const
 standard increment, decrement, and access operators for random access

_Self & operator+= (difference_type __n)
 standard increment, decrement, and access operators for random access

_Self operator- (difference_type __n) const
 standard increment, decrement, and access operators for random access

_Self & operator-= (difference_type __n)
 standard increment, decrement, and access operators for random access

reference operator[] (difference_type __n) const
 standard increment, decrement, and access operators for random access

bool operator== (const _Self &__x)
 comparsion operator

bool operator!= (const _Self &__x)
 comparsion operator


Protected Attributes

pointer __value
 The single value of the 'sequence'.

bool __at
 are we at begin()?


Detailed Description

template<class _Tp>
class __one_iterator< _Tp >

This adaptor takes a pointer to a value of type _Tp and constructs an iterator, which only has two possibilities:

Definition at line 209 of file vgtl_intadapt.h.


The documentation for this class was generated from the following file:
Generated on Tue Nov 4 01:41:30 2003 for Vienna Graph Template Library by doxygen1.2.18