OGS
|
Definition at line 42 of file Polyline.h.
#include <Polyline.h>
Public Types | |
using | iterator_category = std::forward_iterator_tag |
using | value_type = LineSegment |
using | difference_type = std::ptrdiff_t |
using | pointer = LineSegment* |
using | reference = LineSegment& |
Public Member Functions | |
SegmentIterator (Polyline const &polyline, std::size_t segment_number) | |
SegmentIterator (SegmentIterator const &src) | |
SegmentIterator ()=delete | |
~SegmentIterator ()=default | |
SegmentIterator & | operator= (SegmentIterator const &rhs) |
std::size_t | getSegmentNumber () const |
SegmentIterator & | operator++ () |
LineSegment | operator* () const |
LineSegment | operator* () |
bool | operator== (SegmentIterator const &other) const |
bool | operator!= (SegmentIterator const &other) const |
SegmentIterator & | operator+= (std::vector< GeoLib::Point >::difference_type n) |
SegmentIterator | operator+ (std::vector< GeoLib::Point >::difference_type n) |
SegmentIterator & | operator-= (std::vector< GeoLib::Point >::difference_type n) |
SegmentIterator | operator- (std::vector< GeoLib::Point >::difference_type n) |
Private Attributes | |
GeoLib::Polyline const * | _polyline |
std::vector< GeoLib::Point * >::size_type | _segment_number |
using GeoLib::Polyline::SegmentIterator::difference_type = std::ptrdiff_t |
Definition at line 47 of file Polyline.h.
using GeoLib::Polyline::SegmentIterator::iterator_category = std::forward_iterator_tag |
Definition at line 45 of file Polyline.h.
Definition at line 48 of file Polyline.h.
Definition at line 49 of file Polyline.h.
Definition at line 46 of file Polyline.h.
|
explicit |
Definition at line 361 of file Polyline.cpp.
GeoLib::Polyline::SegmentIterator::SegmentIterator | ( | SegmentIterator const & | src | ) |
Definition at line 369 of file Polyline.cpp.
|
delete |
|
default |
std::size_t GeoLib::Polyline::SegmentIterator::getSegmentNumber | ( | ) | const |
Definition at line 387 of file Polyline.cpp.
Referenced by FileIO::GMSH::GMSHPolygonTree::checkIntersectionsSegmentExistingPolylines(), MeshGeoToolsLib::insertSubSegments(), GeoLib::lineSegmentsIntersect(), and GeoLib::Polygon::splitPolygonAtIntersection().
bool GeoLib::Polyline::SegmentIterator::operator!= | ( | SegmentIterator const & | other | ) | const |
Definition at line 413 of file Polyline.cpp.
References _polyline, and _segment_number.
LineSegment GeoLib::Polyline::SegmentIterator::operator* | ( | ) |
Definition at line 403 of file Polyline.cpp.
LineSegment GeoLib::Polyline::SegmentIterator::operator* | ( | ) | const |
Definition at line 398 of file Polyline.cpp.
Polyline::SegmentIterator GeoLib::Polyline::SegmentIterator::operator+ | ( | std::vector< GeoLib::Point >::difference_type | n | ) |
Definition at line 439 of file Polyline.cpp.
Polyline::SegmentIterator & GeoLib::Polyline::SegmentIterator::operator++ | ( | ) |
Definition at line 392 of file Polyline.cpp.
Polyline::SegmentIterator & GeoLib::Polyline::SegmentIterator::operator+= | ( | std::vector< GeoLib::Point >::difference_type | n | ) |
Definition at line 419 of file Polyline.cpp.
References OGS_FATAL.
Polyline::SegmentIterator GeoLib::Polyline::SegmentIterator::operator- | ( | std::vector< GeoLib::Point >::difference_type | n | ) |
Definition at line 467 of file Polyline.cpp.
Polyline::SegmentIterator & GeoLib::Polyline::SegmentIterator::operator-= | ( | std::vector< GeoLib::Point >::difference_type | n | ) |
Definition at line 447 of file Polyline.cpp.
References OGS_FATAL.
Polyline::SegmentIterator & GeoLib::Polyline::SegmentIterator::operator= | ( | SegmentIterator const & | rhs | ) |
Definition at line 374 of file Polyline.cpp.
References _polyline, and _segment_number.
bool GeoLib::Polyline::SegmentIterator::operator== | ( | SegmentIterator const & | other | ) | const |
Definition at line 408 of file Polyline.cpp.
|
private |
Definition at line 86 of file Polyline.h.
Referenced by operator!=(), and operator=().
|
private |
Definition at line 87 of file Polyline.h.
Referenced by operator!=(), and operator=().