LArSoft
v07_13_02
Liquid Argon Software toolkit - http://larsoft.org/
|
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... | |
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... | |
LocalID_t const & | operator* () const |
Returns the PlaneID the iterator points to. More... | |
LocalID_t const * | 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... | |
using | ElementPtr_t = geo::CryostatGeo const * |
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... | |
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== (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!= (TPCset_id_iterator_base< OTHERID > const &as) const |
Returns true if the two iterators point to different TPC sets. 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... | |
bool | at_end () const |
Returns whether this iterator has reached the end. More... | |
geo::GeometryCore const * | geometry () const |
Returns a pointer to the geometry. More... | |
GeoID_t const & | ID () const |
Returns the actual type of ID we store. More... | |
GeoID_t & | ID () |
Returns the actual type of ID we store. More... | |
Static Protected Attributes | |
static constexpr BeginPos_t | begin_pos = {} |
static constexpr EndPos_t | end_pos = {} |
static constexpr UndefinedPos_t | undefined_pos = {} |
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 1023 of file GeometryCore.h.
|
inherited |
Definition at line 164 of file GeometryCore.h.
using geo::details::ROP_id_iterator_base< GEOID >::GeoID_t = typename upper_iterator::GeoID_t |
Definition at line 1030 of file GeometryCore.h.
|
protected |
Specific type for plane ID.
Definition at line 1100 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 1037 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 1032 of file GeometryCore.h.
|
private |
Definition at line 1027 of file GeometryCore.h.
|
default |
Default constructor; effect not defined: assign to it before using!
|
inline |
Constructor: points to begin.
Definition at line 1053 of file GeometryCore.h.
|
inline |
Constructor: points to the specified readout plane.
Definition at line 1058 of file GeometryCore.h.
|
inline |
Constructor: points to begin.
Definition at line 1063 of file GeometryCore.h.
|
inline |
Constructor: points to end.
Definition at line 1068 of file GeometryCore.h.
|
inlineprotected |
Constructor: position undefined (meaning undefined local limits too).
Definition at line 1103 of file GeometryCore.h.
|
inlineprotectedinherited |
Returns whether this iterator has reached the end.
Definition at line 245 of file GeometryCore.h.
|
inlineprotectedinherited |
Returns a pointer to the geometry.
Definition at line 135 of file GeometryCore.h.
|
inlineprotectedinherited |
Returns the actual type of ID we store.
Definition at line 237 of file GeometryCore.h.
|
inlineprotectedinherited |
Returns the actual type of ID we store.
Definition at line 238 of file GeometryCore.h.
|
inlineprotected |
Returns the index (part if the ID) this iterator runs on.
Definition at line 1119 of file GeometryCore.h.
|
inlineprivate |
Returns the index (part if the ID) this iterator runs on (non-const).
Definition at line 1134 of file GeometryCore.h.
|
inlineprotected |
Returns the type of ID we act on.
Definition at line 1110 of file GeometryCore.h.
Referenced by geo::details::ROP_id_iterator_base< GEOID >::operator!=(), and geo::details::ROP_id_iterator_base< GEOID >::operator==().
|
inlineprivate |
Returns the type of ID we act on (non-const version).
Definition at line 1131 of file GeometryCore.h.
|
inlineprotected |
Skips to the next readout plane.
Definition at line 5889 of file GeometryCore.h.
|
inline |
Returns whether the iterator is pointing to a valid plane.
Definition at line 5876 of file GeometryCore.h.
|
inlineinherited |
Returns true if the two iterators point to different cryostats.
Definition at line 206 of file GeometryCore.h.
References geo::details::cryostat_id_iterator_base< GEOID >::localID().
|
inlineinherited |
Returns true if the two iterators point to different TPC sets.
Definition at line 941 of file GeometryCore.h.
References geo::details::TPCset_id_iterator_base< GEOID >::localID().
|
inline |
Returns true if the two iterators point to different readout planes.
Definition at line 1080 of file GeometryCore.h.
References geo::details::ROP_id_iterator_base< GEOID >::localID().
|
inline |
Returns the PlaneID the iterator points to.
Definition at line 1084 of file GeometryCore.h.
|
inline |
Prefix increment: returns this iterator pointing to the next plane.
Definition at line 1090 of file GeometryCore.h.
|
inline |
Postfix increment: returns the current iterator, then increments it.
Definition at line 1093 of file GeometryCore.h.
|
inline |
Returns the PlaneID the iterator points to.
Definition at line 1087 of file GeometryCore.h.
|
inlineinherited |
Returns true if the two iterators point to the same cryostat.
Definition at line 201 of file GeometryCore.h.
References geo::details::cryostat_id_iterator_base< GEOID >::localID().
|
inlineinherited |
Returns true if the two iterators point to the same TPC set.
Definition at line 936 of file GeometryCore.h.
References geo::details::TPCset_id_iterator_base< GEOID >::localID().
|
inline |
Returns true if the two iterators point to the same readout plane.
Definition at line 1075 of file GeometryCore.h.
References geo::details::ROP_id_iterator_base< GEOID >::localID().
|
inlineprivate |
Sets limit to the past-the-end readout plane number of current TPC set.
Definition at line 5883 of file GeometryCore.h.
|
staticinherited |
Definition at line 119 of file GeometryCore.h.
Referenced by geo::GeometryCore::begin_cryostat(), geo::GeometryCore::begin_cryostat_id(), geo::GeometryCore::begin_plane(), geo::GeometryCore::begin_plane_id(), geo::GeometryCore::begin_ROP_id(), geo::GeometryCore::begin_TPC(), geo::GeometryCore::begin_TPC_id(), geo::GeometryCore::begin_TPCset_id(), geo::GeometryCore::begin_wire(), geo::GeometryCore::begin_wire_id(), and geo::GeometryCore::PointWithinSegments().
|
staticinherited |
Definition at line 120 of file GeometryCore.h.
Referenced by geo::GeometryCore::end_cryostat(), geo::GeometryCore::end_cryostat_id(), geo::GeometryCore::end_plane(), geo::GeometryCore::end_plane_id(), geo::GeometryCore::end_ROP_id(), geo::GeometryCore::end_TPC(), geo::GeometryCore::end_TPC_id(), geo::GeometryCore::end_TPCset_id(), geo::GeometryCore::end_wire(), geo::GeometryCore::end_wire_id(), and geo::GeometryCore::PointWithinSegments().
|
private |
Maximum number of readout planes in the current TPC set.
Definition at line 1124 of file GeometryCore.h.
|
staticinherited |
Definition at line 121 of file GeometryCore.h.
Referenced by geo::GeometryCore::PointWithinSegments().