Boost  v1.57.0
doxygen for www.boost.org
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Friends Macros Modules Pages
boost::geometry::centroid_exception Class Reference

Centroid Exception. More...

#include <centroid.hpp>

Inheritance diagram for boost::geometry::centroid_exception:
Collaboration diagram for boost::geometry::centroid_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. { [heading See also]

  • [link geometry.reference.algorithms.centroid the centroid function] }

Constructor & Destructor Documentation

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

The default constructor.

Member Function Documentation

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

Returns the explanatory string.

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

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