Parma_Polyhedra_Library::Grid_Generator_System::const_iterator Class Reference
[C++ Language Interface]

An iterator over a system of grid generators. More...

#include <Grid_Generator_System.defs.hh>

Inheritance diagram for Parma_Polyhedra_Library::Grid_Generator_System::const_iterator:

Inheritance graph
[legend]
Collaboration diagram for Parma_Polyhedra_Library::Grid_Generator_System::const_iterator:

Collaboration graph
[legend]

List of all members.

Public Member Functions

 const_iterator ()
 Default constructor.
 const_iterator (const const_iterator &y)
 Ordinary copy-constructor.
 ~const_iterator ()
 Destructor.
const_iteratoroperator= (const const_iterator &y)
 Assignment operator.
const Grid_Generatoroperator* () const
 Dereference operator.
const Grid_Generatoroperator-> () const
 Indirect member selector.
const_iteratoroperator++ ()
 Prefix increment operator.
const_iterator operator++ (int)
 Postfix increment operator.
bool operator== (const const_iterator &y) const
 Returns true if and only if *this and y are identical.
bool operator!= (const const_iterator &y) const
 Returns true if and only if *this and y are different.

Private Member Functions

 const_iterator (const Generator_System::const_iterator &y)
 Copy-constructor from Generator_System::const_iterator.

Friends

class Grid_Generator_System


Detailed Description

An iterator over a system of grid generators.

A const_iterator is used to provide read-only access to each generator contained in an object of Grid_Generator_System.

Example
The following code prints the system of generators of the grid gr:
  const Grid_Generator_System& gs = gr.generators();
  for (Grid_Generator_System::const_iterator i = gs.begin(),
        gs_end = gs.end(); i != gs_end; ++i)
    cout << *i << endl;
The same effect can be obtained more concisely by using more features of the STL:
  const Generator_System& gs = gr.generators();
  copy(gs.begin(), gs.end(), ostream_iterator<Grid_Generator>(cout, "\n"));

Definition at line 265 of file Grid_Generator_System.defs.hh.


Constructor & Destructor Documentation

Parma_Polyhedra_Library::Grid_Generator_System::const_iterator::const_iterator (  )  [inline]

Default constructor.

Reimplemented from Parma_Polyhedra_Library::Generator_System::const_iterator.

Definition at line 168 of file Grid_Generator_System.inlines.hh.

Parma_Polyhedra_Library::Grid_Generator_System::const_iterator::const_iterator ( const const_iterator y  )  [inline]

Ordinary copy-constructor.

Reimplemented from Parma_Polyhedra_Library::Generator_System::const_iterator.

Definition at line 173 of file Grid_Generator_System.inlines.hh.

00174   : Generator_System::const_iterator(y) {
00175 }

Parma_Polyhedra_Library::Grid_Generator_System::const_iterator::~const_iterator (  )  [inline]

Destructor.

Reimplemented from Parma_Polyhedra_Library::Generator_System::const_iterator.

Definition at line 178 of file Grid_Generator_System.inlines.hh.

00178                                                      {
00179 }

Parma_Polyhedra_Library::Grid_Generator_System::const_iterator::const_iterator ( const Generator_System::const_iterator y  )  [inline, private]

Copy-constructor from Generator_System::const_iterator.

Definition at line 232 of file Grid_Generator_System.inlines.hh.


Member Function Documentation

Grid_Generator_System::const_iterator & Parma_Polyhedra_Library::Grid_Generator_System::const_iterator::operator= ( const const_iterator y  )  [inline]

const Grid_Generator & Parma_Polyhedra_Library::Grid_Generator_System::const_iterator::operator* (  )  const [inline]

Dereference operator.

Reimplemented from Parma_Polyhedra_Library::Generator_System::const_iterator.

Definition at line 189 of file Grid_Generator_System.inlines.hh.

References Parma_Polyhedra_Library::operator*().

00189                                                      {
00190   return static_cast<const Grid_Generator&>
00191     (Generator_System::const_iterator::operator*());
00192 }

const Grid_Generator * Parma_Polyhedra_Library::Grid_Generator_System::const_iterator::operator-> (  )  const [inline]

Indirect member selector.

Reimplemented from Parma_Polyhedra_Library::Generator_System::const_iterator.

Definition at line 195 of file Grid_Generator_System.inlines.hh.

References Parma_Polyhedra_Library::Generator_System::const_iterator::operator->().

00195                                                       {
00196   return static_cast<const Grid_Generator*>
00197     (Generator_System::const_iterator::operator->());
00198 }

Grid_Generator_System::const_iterator & Parma_Polyhedra_Library::Grid_Generator_System::const_iterator::operator++ (  )  [inline]

Grid_Generator_System::const_iterator Parma_Polyhedra_Library::Grid_Generator_System::const_iterator::operator++ ( int   )  [inline]

Postfix increment operator.

Reimplemented from Parma_Polyhedra_Library::Generator_System::const_iterator.

Definition at line 207 of file Grid_Generator_System.inlines.hh.

References operator++().

00207                                                    {
00208   const const_iterator tmp = *this;
00209   operator++();
00210   return tmp;
00211 }

bool Parma_Polyhedra_Library::Grid_Generator_System::const_iterator::operator== ( const const_iterator y  )  const [inline]

Returns true if and only if *this and y are identical.

Reimplemented from Parma_Polyhedra_Library::Generator_System::const_iterator.

Definition at line 215 of file Grid_Generator_System.inlines.hh.

References Parma_Polyhedra_Library::operator==().

00215                                                         {
00216   return Generator_System::const_iterator::operator==(y);
00217 }

bool Parma_Polyhedra_Library::Grid_Generator_System::const_iterator::operator!= ( const const_iterator y  )  const [inline]

Returns true if and only if *this and y are different.

Reimplemented from Parma_Polyhedra_Library::Generator_System::const_iterator.

Definition at line 221 of file Grid_Generator_System.inlines.hh.

References Parma_Polyhedra_Library::operator!=().

00221                                                         {
00222   return Generator_System::const_iterator::operator!=(y);
00223 }


Friends And Related Function Documentation

friend class Grid_Generator_System [friend]

Definition at line 310 of file Grid_Generator_System.defs.hh.


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

Generated on Sat Oct 11 10:41:09 2008 for PPL by  doxygen 1.5.6