Boost.Geometry    Boost C++ Libraries
Classes | Public Types | Public Member Functions | List of all members
boost::geometry::box_view< Box, Clockwise > Struct Template Reference

Makes a box behave like a ring or a range. More...

Inheritance diagram for boost::geometry::box_view< Box, Clockwise >:

Public Types

typedef geometry::point_type
< Box >::type 
point_type
 

Public Member Functions

 box_view (Box const &box)
 Constructor accepting the box to adapt. More...
 

Detailed Description

template<typename Box, bool Clockwise = true>
struct boost::geometry::box_view< Box, Clockwise >

Makes a box behave like a ring or a range.

Adapts a box to the Boost.Range concept, enabling the user to iterating box corners. The box_view is registered as a Ring Concept

Template Parameters
BoxA type fulfilling the Box Concept
ClockwiseIf true, walks in clockwise direction, otherwise it walks in counterclockwise direction

Member Typedef Documentation

template<typename Box , bool Clockwise = true>
typedef geometry::point_type<Box>::type boost::geometry::box_view< Box, Clockwise >::point_type

Constructor & Destructor Documentation

template<typename Box , bool Clockwise = true>
boost::geometry::box_view< Box, Clockwise >::box_view ( Box const &  box)
explicit

Constructor accepting the box to adapt.


April 2, 2011

Copyright © 2007-2011 Barend Gehrels, Amsterdam, the Netherlands
Copyright © 2008-2011 Bruno Lalande, Paris, France
Copyright © 2009-2010 Mateusz Loskot, London, UK
Documentation is generated by Doxygen