OpenFOAM logo
The Open Source CFD Toolbox
  Source Guide OpenCFD Solutions Contact OpenFOAM

const_iterator Class Reference

The const_iterator for PackedList. More...

Inheritance diagram for const_iterator:
Collaboration diagram for const_iterator:

List of all members.


Public Member Functions

 const_iterator ()
 Construct null.
 const_iterator (const iteratorBase &)
 Construct from iterator base, eg iter(packedlist[i]).
 const_iterator (const PackedList *, const label)
 Construct from base list and position index.
 const_iterator (const iterator &)
 Construct from iterator.
bool operator== (const iteratorBase &) const
 Compare positions (not values).
bool operator!= (const iteratorBase &) const
const_iterator & operator= (const iteratorBase &)
 Assign from iteratorBase or derived.
unsigned int operator* () const
 Return referenced value directly.
unsigned int operator() () const
 Return referenced value directly.
const_iterator & operator++ ()
const_iterator operator++ (int)
const_iterator & operator-- ()
const_iterator operator-- (int)

Detailed Description

template<unsigned nBits = 1>
class Foam::PackedList< nBits >::const_iterator

The const_iterator for PackedList.

Definition at line 454 of file PackedList.H.


Constructor & Destructor Documentation

const_iterator (  )  [inline]

Construct null.

Definition at line 236 of file PackedListI.H.

const_iterator ( const iteratorBase &  iter  )  [inline]

Construct from iterator base, eg iter(packedlist[i]).

but also "const_iterator iter = packedlist[i];" An out-of-range iterator is assigned cend()

Definition at line 261 of file PackedListI.H.

References iteratorBase::index_, and iteratorBase::list_.

const_iterator ( const PackedList *  ,
const   label 
) [inline]

Construct from base list and position index.

const_iterator ( const iterator &  iter  )  [inline]

Construct from iterator.

Definition at line 300 of file PackedListI.H.


Member Function Documentation

bool operator== ( const iteratorBase &  iter  )  const [inline]

Compare positions (not values).

Reimplemented from iteratorBase.

Definition at line 331 of file PackedListI.H.

bool operator!= ( const iteratorBase &  iter  )  const [inline]

Reimplemented from iteratorBase.

Definition at line 341 of file PackedListI.H.

Foam::PackedList< nBits >::const_iterator & operator= ( const iteratorBase &  iter  )  [inline]

Assign from iteratorBase or derived.

eg, iter = packedlist[i] or even iter = list.begin()

Reimplemented from iteratorBase.

Definition at line 370 of file PackedListI.H.

unsigned int operator* (  )  const [inline]

Return referenced value directly.

Definition at line 480 of file PackedListI.H.

unsigned int operator() (  )  const [inline]

Return referenced value directly.

Definition at line 488 of file PackedListI.H.

Foam::PackedList< nBits >::const_iterator & operator++ (  )  [inline]

Definition at line 397 of file PackedListI.H.

References iteratorBase::index_.

Foam::PackedList< nBits >::const_iterator operator++ ( int   )  [inline]

Definition at line 416 of file PackedListI.H.

References iteratorBase::index_.

Foam::PackedList< nBits >::const_iterator & operator-- (  )  [inline]

Definition at line 435 of file PackedListI.H.

References iteratorBase::index_.

Foam::PackedList< nBits >::const_iterator operator-- ( int   )  [inline]

Definition at line 454 of file PackedListI.H.

References iteratorBase::index_.


The documentation for this class was generated from the following files:
Copyright © 2000-2009 OpenCFD Ltd