#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 249 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 109 of file Grid_Generator_System.inlines.hh.
00110 : Generator_System::const_iterator() { 00111 }
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 114 of file Grid_Generator_System.inlines.hh.
00115 : Generator_System::const_iterator(y) { 00116 }
Parma_Polyhedra_Library::Grid_Generator_System::const_iterator::~const_iterator | ( | ) | [inline] |
Destructor.
Reimplemented from Parma_Polyhedra_Library::Generator_System::const_iterator.
Definition at line 119 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 180 of file Grid_Generator_System.inlines.hh.
00181 : Generator_System::const_iterator::const_iterator(y) { 00182 }
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 124 of file Grid_Generator_System.inlines.hh.
References Parma_Polyhedra_Library::Generator_System::const_iterator::operator=().
00124 { 00125 return static_cast<Grid_Generator_System::const_iterator&> 00126 (Generator_System::const_iterator::operator=(y)); 00127 }
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 130 of file Grid_Generator_System.inlines.hh.
References Parma_Polyhedra_Library::Generator_System::const_iterator::operator*().
00130 { 00131 return static_cast<const Grid_Generator&> 00132 (Generator_System::const_iterator::operator*()); 00133 }
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 136 of file Grid_Generator_System.inlines.hh.
References Parma_Polyhedra_Library::Generator_System::const_iterator::operator->().
00136 { 00137 return static_cast<const Grid_Generator*> 00138 (Generator_System::const_iterator::operator->()); 00139 }
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 142 of file Grid_Generator_System.inlines.hh.
References Parma_Polyhedra_Library::Generator_System::const_iterator::operator++().
Referenced by operator++().
00142 { 00143 return static_cast<Grid_Generator_System::const_iterator&> 00144 (Generator_System::const_iterator::operator++()); 00145 }
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 148 of file Grid_Generator_System.inlines.hh.
References operator++().
00148 { 00149 const const_iterator tmp = *this; 00150 operator++(); 00151 return tmp; 00152 }
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 156 of file Grid_Generator_System.inlines.hh.
References Parma_Polyhedra_Library::operator==().
00156 { 00157 return Generator_System::const_iterator::operator==(y); 00158 }
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 162 of file Grid_Generator_System.inlines.hh.
References Parma_Polyhedra_Library::operator!=().
00162 { 00163 return Generator_System::const_iterator::operator!=(y); 00164 }
friend class Grid_Generator_System [friend] |
Definition at line 294 of file Grid_Generator_System.defs.hh.