Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::segment_view< Segment > Struct Template Reference

Makes a segment behave like a linestring or a range. More...

#include <segment_view.hpp>

Inheritance diagram for boost::geometry::segment_view< Segment >:
Collaboration diagram for boost::geometry::segment_view< Segment >:

Public Types

typedef geometry::point_type
< Segment >::type 
point_type
 

Public Member Functions

 segment_view (Segment const &segment)
 Constructor accepting the segment to adapt. More...
 

Detailed Description

template<typename Segment>
struct boost::geometry::segment_view< Segment >

Makes a segment behave like a linestring or a range.

Adapts a segment to the Boost.Range concept, enabling the user to iterate the two segment points. The segment_view is registered as a LineString Concept

Template Parameters
Segment{Segment}

{before.synopsis, [heading Model of] [link geometry.reference.concepts.concept_linestring LineString Concept] }

{[include reference/views/segment_view.qbk]}

Member Typedef Documentation

template<typename Segment >
typedef geometry::point_type<Segment>::type boost::geometry::segment_view< Segment >::point_type

Constructor & Destructor Documentation

template<typename Segment >
boost::geometry::segment_view< Segment >::segment_view ( Segment const &  segment)
inlineexplicit

Constructor accepting the segment to adapt.


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