Fishnet 2.0.1
Framework for Graph-Based Analysis of GIS Vector Data
Loading...
Searching...
No Matches
fishnet::util::AnyOfPredicate< Types > Class Template Reference

#include <CompositePredicate.hpp>

Inheritance diagram for fishnet::util::AnyOfPredicate< Types >:
Collaboration diagram for fishnet::util::AnyOfPredicate< Types >:

Public Member Functions

constexpr AnyOfPredicate ()=default
 
constexpr AnyOfPredicate (Parent::predicate_type &&predicate)
 
constexpr AnyOfPredicate (Parent::predicate_type predicate)
 
constexpr bool operator() (Types... args) const noexcept
 
- Public Member Functions inherited from fishnet::util::CompositePredicate< Types... >
constexpr void add (predicate_type &&predicate)
 
constexpr void add (const predicate_type &predicate)
 
constexpr bool empty () const noexcept
 

Additional Inherited Members

- Public Types inherited from fishnet::util::CompositePredicate< Types... >
using predicate_type = std::function< bool(Types...)>
 
- Protected Member Functions inherited from fishnet::util::CompositePredicate< Types... >
constexpr CompositePredicate (predicate_type &&predicate)
 
constexpr CompositePredicate (predicate_type predicate)
 
constexpr CompositePredicate ()=default
 
- Protected Attributes inherited from fishnet::util::CompositePredicate< Types... >
std::vector< predicate_type > predicates
 

Detailed Description

template<typename... Types>
class fishnet::util::AnyOfPredicate< Types >

Any predicate has to match for the composite predicate to become true

Template Parameters
Typesargument types for the predicate

Constructor & Destructor Documentation

◆ AnyOfPredicate() [1/3]

template<typename... Types>
constexpr fishnet::util::AnyOfPredicate< Types >::AnyOfPredicate ( )
constexprdefault

◆ AnyOfPredicate() [2/3]

template<typename... Types>
constexpr fishnet::util::AnyOfPredicate< Types >::AnyOfPredicate ( Parent::predicate_type &&  predicate)
inlineexplicitconstexpr

◆ AnyOfPredicate() [3/3]

template<typename... Types>
constexpr fishnet::util::AnyOfPredicate< Types >::AnyOfPredicate ( Parent::predicate_type  predicate)
inlineexplicitconstexpr

Member Function Documentation

◆ operator()()

template<typename... Types>
constexpr bool fishnet::util::AnyOfPredicate< Types >::operator() ( Types...  args) const
inlineconstexprnoexcept

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