#include <Grid_Generator_System.defs.hh>
Public Member Functions | |
const_iterator () | |
Default constructor. | |
const_iterator (const const_iterator &y) | |
Ordinary copy-constructor. | |
~const_iterator () | |
Destructor. | |
const_iterator & | operator= (const const_iterator &y) |
Assignment operator. | |
const Grid_Generator & | operator* () const |
Dereference operator. | |
const Grid_Generator * | operator-> () const |
Indirect member selector. | |
const_iterator & | operator++ () |
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 |
A const_iterator is used to provide read-only access to each generator contained in an object of Grid_Generator_System.
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;
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.
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.
00169 : Generator_System::const_iterator() { 00170 }
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.
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.
00233 : Generator_System::const_iterator::const_iterator(y) { 00234 }
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 183 of file Grid_Generator_System.inlines.hh.
References Parma_Polyhedra_Library::Generator_System::const_iterator::operator=().
00183 { 00184 return static_cast<Grid_Generator_System::const_iterator&> 00185 (Generator_System::const_iterator::operator=(y)); 00186 }
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] |
Prefix increment operator.
Reimplemented from Parma_Polyhedra_Library::Generator_System::const_iterator.
Definition at line 201 of file Grid_Generator_System.inlines.hh.
References Parma_Polyhedra_Library::Generator_System::const_iterator::operator++().
Referenced by operator++().
00201 { 00202 return static_cast<Grid_Generator_System::const_iterator&> 00203 (Generator_System::const_iterator::operator++()); 00204 }
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 }
friend class Grid_Generator_System [friend] |
Definition at line 310 of file Grid_Generator_System.defs.hh.