SFCGAL  1.3.0
Public Member Functions | Static Public Member Functions | List of all members
SFCGAL::Validity Struct Reference

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

#include <Validity.h>

Public Member Functions

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

Static Public Member Functions

static const Validity valid ()
 
static const Validity invalid (const std::string &reason)
 

Detailed Description

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

Member Function Documentation

static const Validity SFCGAL::Validity::invalid ( const std::string &  reason)
inlinestatic
SFCGAL::Validity::operator bool ( ) const
inline
const std::string& SFCGAL::Validity::reason ( ) const
inline
static const Validity SFCGAL::Validity::valid ( )
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"