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& ggs = gr.generators();
  for (Grid_Generator_System::const_iterator i = ggs.begin(),
        ggs_end = ggs.end(); i != ggs_end; ++i)
    cout << *i << endl;
The same effect can be obtained more concisely by using more features of the STL:
  const Grid_Generator_System& ggs = gr.generators();
  copy(ggs.begin(), ggs.end(), ostream_iterator<Grid_Generator>(cout, "\n"));

Definition at line 267 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 169 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 174 of file Grid_Generator_System.inlines.hh.

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

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

Destructor.

Reimplemented from Parma_Polyhedra_Library::Generator_System::const_iterator.

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

00179                                                      {
00180 }

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 233 of file Grid_Generator_System.inlines.hh.


Member Function Documentation

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 222 of file Grid_Generator_System.inlines.hh.

References Parma_Polyhedra_Library::Linear_System::operator!=().

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

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 190 of file Grid_Generator_System.inlines.hh.

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

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 208 of file Grid_Generator_System.inlines.hh.

References operator++().

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

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

Prefix increment operator.

Reimplemented from Parma_Polyhedra_Library::Generator_System::const_iterator.

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

Referenced by operator++().

00202                                                 {
00203   return static_cast<Grid_Generator_System::const_iterator&>
00204     (Generator_System::const_iterator::operator++());
00205 }

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 196 of file Grid_Generator_System.inlines.hh.

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

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

Assignment operator.

Reimplemented from Parma_Polyhedra_Library::Generator_System::const_iterator.

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

00184                                                                       {
00185   return static_cast<Grid_Generator_System::const_iterator&>
00186     (Generator_System::const_iterator::operator=(y));
00187 }

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 216 of file Grid_Generator_System.inlines.hh.

References Parma_Polyhedra_Library::Grid_Generator_System::operator==.

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


Friends And Related Function Documentation

friend class Grid_Generator_System [friend]

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


The documentation for this class was generated from the following files:
Generated on Sun Feb 27 16:20:25 2011 for PPL by  doxygen 1.6.3