DGtal 2.0.0
Loading...
Searching...
No Matches
FalseOutsideDomain< Predicate, Domain > Struct Template Reference

Public Types

typedef Predicate::Point Point

Public Member Functions

 BOOST_CONCEPT_ASSERT ((DGtal::concepts::CPointPredicate< Predicate >))
 BOOST_CONCEPT_ASSERT ((DGtal::concepts::CDomain< Domain >))
 FalseOutsideDomain (DGtal::ConstAlias< Predicate > predicate, DGtal::ConstAlias< Domain > adomain)
bool operator() (const Point &point) const

Data Fields

const Predicate * myPredicate
const DomainmyDomain

Detailed Description

template<typename Predicate, typename Domain>
struct FalseOutsideDomain< Predicate, Domain >
Examples
dec/exampleDECSurface.cpp.

Definition at line 38 of file exampleDECSurface.cpp.

Member Typedef Documentation

◆ Point

template<typename Predicate, typename Domain>
typedef Predicate::Point FalseOutsideDomain< Predicate, Domain >::Point

Definition at line 43 of file exampleDECSurface.cpp.

Constructor & Destructor Documentation

◆ FalseOutsideDomain()

template<typename Predicate, typename Domain>
FalseOutsideDomain< Predicate, Domain >::FalseOutsideDomain ( DGtal::ConstAlias< Predicate > predicate,
DGtal::ConstAlias< Domain > adomain )
inline
Examples
dec/exampleDECSurface.cpp.

Definition at line 45 of file exampleDECSurface.cpp.

References myDomain, and myPredicate.

Member Function Documentation

◆ BOOST_CONCEPT_ASSERT() [1/2]

template<typename Predicate, typename Domain>
FalseOutsideDomain< Predicate, Domain >::BOOST_CONCEPT_ASSERT ( (DGtal::concepts::CDomain< Domain >) )

◆ BOOST_CONCEPT_ASSERT() [2/2]

template<typename Predicate, typename Domain>
FalseOutsideDomain< Predicate, Domain >::BOOST_CONCEPT_ASSERT ( (DGtal::concepts::CPointPredicate< Predicate >) )

◆ operator()()

template<typename Predicate, typename Domain>
bool FalseOutsideDomain< Predicate, Domain >::operator() ( const Point & point) const
inline
Examples
dec/exampleDECSurface.cpp.

Definition at line 51 of file exampleDECSurface.cpp.

52 {
53 if (!myDomain->isInside(point)) return false;
54 return (*myPredicate)(point);
55 }

References myDomain, and myPredicate.

Field Documentation

◆ myDomain

template<typename Predicate, typename Domain>
const Domain* FalseOutsideDomain< Predicate, Domain >::myDomain
Examples
dec/exampleDECSurface.cpp.

Definition at line 58 of file exampleDECSurface.cpp.

Referenced by FalseOutsideDomain(), and operator()().

◆ myPredicate

template<typename Predicate, typename Domain>
const Predicate* FalseOutsideDomain< Predicate, Domain >::myPredicate
Examples
dec/exampleDECSurface.cpp.

Definition at line 57 of file exampleDECSurface.cpp.

Referenced by FalseOutsideDomain(), and operator()().


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