GEOS
3.9.1dev
|
An interface for classes which represent a sequence of contiguous line segments. More...
#include <SegmentString.h>
Public Types | |
typedef std::vector< const SegmentString * > | ConstVect |
typedef std::vector< SegmentString * > | NonConstVect |
Public Member Functions | |
SegmentString (const void *newContext) | |
Construct a SegmentString. More... | |
virtual | ~SegmentString () |
const void * | getData () const |
Gets the user-defined data for this segment string. More... | |
void | setData (const void *data) |
Sets the user-defined data for this segment string. More... | |
virtual size_t | size () const =0 |
virtual const geom::Coordinate & | getCoordinate (size_t i) const =0 |
virtual geom::CoordinateSequence * | getCoordinates () const =0 |
Return a pointer to the CoordinateSequence associated with this SegmentString. More... | |
virtual bool | isClosed () const =0 |
virtual std::ostream & | print (std::ostream &os) const |
Private Member Functions | |
SegmentString (const SegmentString &other)=delete | |
SegmentString & | operator= (const SegmentString &rhs)=delete |
Private Attributes | |
const void * | context |
Friends | |
std::ostream & | operator<< (std::ostream &os, const SegmentString &ss) |
An interface for classes which represent a sequence of contiguous line segments.
SegmentStrings can carry a context object, which is useful for preserving topological or parentage information.
Definition at line 46 of file SegmentString.h.
typedef std::vector<const SegmentString*> geos::noding::SegmentString::ConstVect |
Definition at line 48 of file SegmentString.h.
typedef std::vector<SegmentString*> geos::noding::SegmentString::NonConstVect |
Definition at line 49 of file SegmentString.h.
|
inline |
Construct a SegmentString.
newContext | the context associated to this SegmentString |
Definition at line 58 of file SegmentString.h.
|
inlinevirtual |
Definition at line 64 of file SegmentString.h.
|
privatedelete |
|
pure virtual |
Implemented in geos::noding::NodedSegmentString, and geos::noding::BasicSegmentString.
|
pure virtual |
Return a pointer to the CoordinateSequence associated with this SegmentString.
Implemented in geos::noding::NodedSegmentString, and geos::noding::BasicSegmentString.
|
inline |
Gets the user-defined data for this segment string.
Definition at line 72 of file SegmentString.h.
|
pure virtual |
Implemented in geos::noding::NodedSegmentString, and geos::noding::BasicSegmentString.
|
privatedelete |
|
virtual |
Reimplemented in geos::noding::NodedSegmentString, and geos::noding::BasicSegmentString.
|
inline |
Sets the user-defined data for this segment string.
data | an Object containing user-defined data |
Definition at line 83 of file SegmentString.h.
|
pure virtual |
Implemented in geos::noding::NodedSegmentString, and geos::noding::BasicSegmentString.
|
friend |
|
private |
Definition at line 107 of file SegmentString.h.