Public Member Functions | Protected Member Functions | Private Attributes | List of all members
gar::geo::details::geometry_iterator_base Class Reference

Base class for geometry iterators (note: this is not an iterator) More...

#include <GeometryCore.h>

Inheritance diagram for gar::geo::details::geometry_iterator_base:
gar::geo::details::geometry_iterator_types

Public Member Functions

 geometry_iterator_base (const gar::geo::GeometryCore *geom)
 Constructor: associates with the specified geometry. More...
 

Protected Member Functions

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...
 

Private Attributes

const gar::geo::GeometryCorepGeo = nullptr
 pointer to the geometry More...
 

Additional Inherited Members

- Static Public Attributes inherited from gar::geo::details::geometry_iterator_types
static constexpr BeginPos_t begin_pos = {}
 
static constexpr EndPos_t end_pos = {}
 
static constexpr UndefinedPos_t undefined_pos = {}
 

Detailed Description

Base class for geometry iterators (note: this is not an iterator)

Definition at line 171 of file GeometryCore.h.

Constructor & Destructor Documentation

gar::geo::details::geometry_iterator_base::geometry_iterator_base ( const gar::geo::GeometryCore geom)
inline

Constructor: associates with the specified geometry.

Definition at line 175 of file GeometryCore.h.

175 : pGeo(geom) {}
const gar::geo::GeometryCore * pGeo
pointer to the geometry
Definition: GeometryCore.h:185
gar::geo::details::geometry_iterator_base::geometry_iterator_base ( )
inlineprotected

Default constructor; do not use a default-constructed iterator as-is!

Definition at line 182 of file GeometryCore.h.

182 {}

Member Function Documentation

geo::GeometryCore const* gar::geo::details::geometry_iterator_base::geometry ( ) const
inlineprotected

Returns a pointer to the geometry.

Definition at line 179 of file GeometryCore.h.

179 { return pGeo; }
const gar::geo::GeometryCore * pGeo
pointer to the geometry
Definition: GeometryCore.h:185

Member Data Documentation

const gar::geo::GeometryCore* gar::geo::details::geometry_iterator_base::pGeo = nullptr
private

pointer to the geometry

Definition at line 185 of file GeometryCore.h.


The documentation for this class was generated from the following file: