Base forward iterator browsing all readout plane IDs in the detector. More...
#include <GeometryCore.h>
Public Types | |
using | GeoID_t = typename upper_iterator::GeoID_t |
using | LocalID_t = readout::ROPID |
type of the ID we change More... | |
using | iterator = ROP_id_iterator_base< GeoID_t > |
Type of this iterator. More... | |
Iterator traits | |
using | difference_type = std::ptrdiff_t |
using | value_type = LocalID_t |
using | reference = value_type const & |
using | pointer = value_type const * |
using | iterator_category = std::input_iterator_tag |
Public Member Functions | |
ROP_id_iterator_base ()=default | |
Default constructor; effect not defined: assign to it before using! More... | |
ROP_id_iterator_base (geo::GeometryCore const *geom) | |
Constructor: points to begin. More... | |
ROP_id_iterator_base (geo::GeometryCore const *geom, GeoID_t const &start_from) | |
Constructor: points to the specified readout plane. More... | |
ROP_id_iterator_base (geo::GeometryCore const *geom, BeginPos_t const) | |
Constructor: points to begin. More... | |
ROP_id_iterator_base (geo::GeometryCore const *geom, EndPos_t) | |
Constructor: points to end. More... | |
template<typename OTHERID > | |
bool | operator== (ROP_id_iterator_base< OTHERID > const &as) const |
Returns true if the two iterators point to the same readout plane. More... | |
template<typename OTHERID > | |
bool | operator!= (ROP_id_iterator_base< OTHERID > const &as) const |
Returns true if the two iterators point to different readout planes. More... | |
reference | operator* () const |
Returns the PlaneID the iterator points to. More... | |
pointer | operator-> () const |
Returns the PlaneID the iterator points to. More... | |
iterator & | operator++ () |
Prefix increment: returns this iterator pointing to the next plane. More... | |
iterator | operator++ (int) |
Postfix increment: returns the current iterator, then increments it. More... | |
operator bool () const | |
Returns whether the iterator is pointing to a valid plane. More... | |
Protected Types | |
using | ID_t = typename LocalID_t::ROPID_t |
Specific type for plane ID. More... | |
Protected Types inherited from geo::details::TPCset_id_iterator_base< GEOID > | |
using | ID_t = typename LocalID_t::TPCsetID_t |
Specific type for TPC set ID. More... | |
using | GeoID_t = typename upper_iterator::GeoID_t |
using | LocalID_t = readout::TPCsetID |
Type of the ID we change. More... | |
using | iterator = TPCset_id_iterator_base< GeoID_t > |
Type of this iterator. More... | |
using | difference_type = std::ptrdiff_t |
using | value_type = LocalID_t |
using | reference = value_type const & |
using | pointer = value_type const * |
using | iterator_category = std::input_iterator_tag |
Protected Types inherited from geo::details::cryostat_id_iterator_base< GEOID > | |
using | ID_t = typename LocalID_t::CryostatID_t |
using | ElementPtr_t = geo::CryostatGeo const * |
using | GeoID_t = GEOID |
type of the actual ID stored in the iterator More... | |
using | iterator = cryostat_id_iterator_base< GeoID_t > |
this iterator More... | |
using | LocalID_t = geo::CryostatID |
type of the ID we change More... | |
using | difference_type = std::ptrdiff_t |
using | value_type = LocalID_t |
using | reference = value_type const & |
using | pointer = value_type const * |
using | iterator_category = std::input_iterator_tag |
Protected Member Functions | |
ROP_id_iterator_base (geo::GeometryCore const *geom, UndefinedPos_t) | |
Constructor: position undefined (meaning undefined local limits too). More... | |
LocalID_t const & | localID () const |
Returns the type of ID we act on. More... | |
void | next () |
Skips to the next readout plane. More... | |
ID_t const & | local_index () const |
Returns the index (part if the ID) this iterator runs on. More... | |
Protected Member Functions inherited from geo::details::TPCset_id_iterator_base< GEOID > | |
TPCset_id_iterator_base (geo::GeometryCore const *geom, UndefinedPos_t) | |
Constructor: position undefined (meaning undefined local limits too). More... | |
LocalID_t const & | localID () const |
Returns the type of ID we act on. More... | |
void | next () |
Skips to the next TPC set. More... | |
ID_t const & | local_index () const |
Returns the index (part if the ID) this iterator runs on. More... | |
TPCset_id_iterator_base () | |
Default constructor; effect not defined: assign to it before using! More... | |
TPCset_id_iterator_base (geo::GeometryCore const *geom) | |
Constructor: points to begin. More... | |
TPCset_id_iterator_base (geo::GeometryCore const *geom, GeoID_t const &start_from) | |
Constructor: points to the specified TPC set. More... | |
TPCset_id_iterator_base (geo::GeometryCore const *geom, BeginPos_t const) | |
Constructor: points to begin. More... | |
TPCset_id_iterator_base (geo::GeometryCore const *geom, EndPos_t) | |
Constructor: points to end. More... | |
template<typename OTHERID > | |
bool | operator== (TPCset_id_iterator_base< OTHERID > const &as) const |
Returns true if the two iterators point to the same TPC set. More... | |
template<typename OTHERID > | |
bool | operator!= (TPCset_id_iterator_base< OTHERID > const &as) const |
Returns true if the two iterators point to different TPC sets. More... | |
reference | operator* () const |
Returns the TPCsetID the iterator points to. More... | |
pointer | operator-> () const |
Returns the TPCsetID the iterator points to. More... | |
iterator & | operator++ () |
Prefix increment: returns this iterator pointing to the next TPC set. More... | |
iterator | operator++ (int) |
Postfix increment: returns the current iterator, then increments it. More... | |
operator bool () const | |
Returns whether the iterator is pointing to a valid TPC set. More... | |
Protected Member Functions inherited from geo::details::cryostat_id_iterator_base< GEOID > | |
cryostat_id_iterator_base (geo::GeometryCore const *geom, UndefinedPos_t) | |
Constructor: does not set the current ID. More... | |
void | next () |
Skips to the next cryostat. More... | |
bool | at_end () const |
Returns whether this iterator has reached the end. More... | |
GeoID_t const & | ID () const |
Returns the actual type of ID we store. More... | |
GeoID_t & | ID () |
cryostat_id_iterator_base () | |
Default constructor; effect not defined: assign to it before using! More... | |
cryostat_id_iterator_base (geo::GeometryCore const *geom) | |
Constructor: points to begin. More... | |
cryostat_id_iterator_base (geo::GeometryCore const *geom, GeoID_t const &start_from) | |
Constructor: points to the specified cryostat. More... | |
cryostat_id_iterator_base (geo::GeometryCore const *geom, BeginPos_t const) | |
Constructor: points to begin. More... | |
cryostat_id_iterator_base (geo::GeometryCore const *geom, EndPos_t) | |
Constructor: points to end. More... | |
template<typename OTHERID > | |
bool | operator== (cryostat_id_iterator_base< OTHERID > const &as) const |
Returns true if the two iterators point to the same cryostat. More... | |
template<typename OTHERID > | |
bool | operator!= (cryostat_id_iterator_base< OTHERID > const &as) const |
Returns true if the two iterators point to different cryostats. More... | |
reference | operator* () const |
Returns the ID the iterator points to. More... | |
pointer | operator-> () const |
Returns a pointer to the ID the iterator points to. More... | |
iterator & | operator++ () |
Prefix increment: returns this iterator pointing to the next cryostat. More... | |
iterator | operator++ (int) |
Postfix increment: returns the current iterator, then increments it. More... | |
operator bool () const | |
Returns whether the iterator is pointing to a valid cryostat. More... | |
ElementPtr_t | get () const |
Returns a pointer to cryostat, or nullptr if invalid. More... | |
Protected Member Functions inherited from geo::details::geometry_iterator_base | |
geo::GeometryCore const * | geometry () const |
Returns a pointer to the geometry. More... | |
geometry_iterator_base () | |
Default constructor; do not use a default-constructed iterator as-is! More... | |
geometry_iterator_base (geo::GeometryCore const *geom) | |
Constructor: associates with the specified geometry. More... | |
Private Types | |
using | upper_iterator = TPCset_id_iterator_base< GEOID > |
Private Member Functions | |
void | set_local_limits () |
LocalID_t & | localID () |
Returns the type of ID we act on (non-const version). More... | |
ID_t & | local_index () |
Returns the index (part if the ID) this iterator runs on (non-const). More... | |
Private Attributes | |
ID_t | limit = LocalID_t::InvalidID |
Maximum number of readout planes in the current TPC set. More... | |
Base forward iterator browsing all readout plane IDs in the detector.
GEOID | ID type to be used |
This iterator requires that GEOID is derived from geo::ROPID. Note that no polymorphic behaviour is required, or expected, from GEOID.
This iterator is designed to carry on, untouched, anything else that the GEOID type defines beyond the required ROPID data.
Currently, backward iterations are not supported.
Definition at line 1076 of file GeometryCore.h.
using geo::details::ROP_id_iterator_base< GEOID >::difference_type = std::ptrdiff_t |
Definition at line 1105 of file GeometryCore.h.
using geo::details::ROP_id_iterator_base< GEOID >::GeoID_t = typename upper_iterator::GeoID_t |
Definition at line 1083 of file GeometryCore.h.
|
protected |
Specific type for plane ID.
Definition at line 1164 of file GeometryCore.h.
using geo::details::ROP_id_iterator_base< GEOID >::iterator = ROP_id_iterator_base<GeoID_t> |
Type of this iterator.
Definition at line 1090 of file GeometryCore.h.
using geo::details::ROP_id_iterator_base< GEOID >::iterator_category = std::input_iterator_tag |
Definition at line 1109 of file GeometryCore.h.
using geo::details::ROP_id_iterator_base< GEOID >::LocalID_t = readout::ROPID |
type of the ID we change
Definition at line 1085 of file GeometryCore.h.
using geo::details::ROP_id_iterator_base< GEOID >::pointer = value_type const* |
Definition at line 1108 of file GeometryCore.h.
using geo::details::ROP_id_iterator_base< GEOID >::reference = value_type const& |
Definition at line 1107 of file GeometryCore.h.
|
private |
Definition at line 1080 of file GeometryCore.h.
using geo::details::ROP_id_iterator_base< GEOID >::value_type = LocalID_t |
Definition at line 1106 of file GeometryCore.h.
|
default |
Default constructor; effect not defined: assign to it before using!
|
inline |
Constructor: points to begin.
Definition at line 1117 of file GeometryCore.h.
|
inline |
Constructor: points to the specified readout plane.
Definition at line 1122 of file GeometryCore.h.
|
inline |
Constructor: points to begin.
Definition at line 1127 of file GeometryCore.h.
|
inline |
Constructor: points to end.
Definition at line 1132 of file GeometryCore.h.
|
inlineprotected |
Constructor: position undefined (meaning undefined local limits too).
Definition at line 1167 of file GeometryCore.h.
|
inlineprotected |
Returns the index (part if the ID) this iterator runs on.
Definition at line 1183 of file GeometryCore.h.
|
inlineprivate |
Returns the index (part if the ID) this iterator runs on (non-const).
Definition at line 1198 of file GeometryCore.h.
|
inlineprotected |
Returns the type of ID we act on.
Definition at line 1174 of file GeometryCore.h.
|
inlineprivate |
Returns the type of ID we act on (non-const version).
Definition at line 1195 of file GeometryCore.h.
|
inlineprotected |
Skips to the next readout plane.
Definition at line 6051 of file GeometryCore.h.
|
inline |
Returns whether the iterator is pointing to a valid plane.
Definition at line 6038 of file GeometryCore.h.
|
inline |
Returns true if the two iterators point to different readout planes.
Definition at line 1144 of file GeometryCore.h.
|
inline |
Returns the PlaneID the iterator points to.
Definition at line 1148 of file GeometryCore.h.
|
inline |
Prefix increment: returns this iterator pointing to the next plane.
Definition at line 1154 of file GeometryCore.h.
|
inline |
Postfix increment: returns the current iterator, then increments it.
Definition at line 1157 of file GeometryCore.h.
|
inline |
Returns the PlaneID the iterator points to.
Definition at line 1151 of file GeometryCore.h.
|
inline |
Returns true if the two iterators point to the same readout plane.
Definition at line 1139 of file GeometryCore.h.
|
inlineprivate |
Sets limit to the past-the-end readout plane number of current TPC set.
Definition at line 6045 of file GeometryCore.h.
|
private |
Maximum number of readout planes in the current TPC set.
Definition at line 1188 of file GeometryCore.h.