Boost.Geometry    Boost C++ Libraries
Public Member Functions | List of all members
boost::geometry::centroid_exception Class Reference

Centroid Exception. More...

Inheritance diagram for boost::geometry::centroid_exception:
boost::geometry::exception

Public Member Functions

 centroid_exception ()
 The default constructor. More...
 
virtual char const * what () const throw ()
 Returns the explanatory string. More...
 

Detailed Description

Centroid Exception.

The centroid_exception is thrown if the free centroid function is called with geometries for which the centroid cannot be calculated. For example: a linestring without points, a polygon without points, an empty multi-geometry.

Constructor & Destructor Documentation

boost::geometry::centroid_exception::centroid_exception ( )

The default constructor.

Member Function Documentation

virtual char const* boost::geometry::centroid_exception::what ( ) const
throw (
)
virtual

Returns the explanatory string.

Returns
Pointer to a null-terminated string with explanatory information.

Reimplemented from boost::geometry::exception.


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