SFCGAL  2.2.0
Public Member Functions | Static Public Member Functions | List of all members
SFCGAL::Simplicity Struct Reference

the class, convertible to bool, that stores the reason why a geom is not simple More...

#include <Simplicity.h>

Public Member Functions

 operator bool () const
 
const std::string & reason () const
 

Static Public Member Functions

static const Simplicity simple ()
 
static const Simplicity complex (const std::string &reason)
 

Detailed Description

the class, convertible to bool, that stores the reason why a geom is not simple

Member Function Documentation

static const Simplicity SFCGAL::Simplicity::complex ( const std::string &  reason)
inlinestatic
SFCGAL::Simplicity::operator bool ( ) const
inline
const std::string& SFCGAL::Simplicity::reason ( ) const
inline
static const Simplicity SFCGAL::Simplicity::simple ( )
inlinestatic
Note
the class has private ctor to force the use of functions valid() and invalid(reason) that are clearer in the code than to remember that "Valid constructed with a reason is invalid"