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

#include <CompositePredicate.hpp>

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

Public Types

using predicate_type = std::function< bool(Types...)>
 

Public Member Functions

constexpr void add (predicate_type &&predicate)
 
constexpr void add (const predicate_type &predicate)
 
constexpr bool empty () const noexcept
 

Protected Member Functions

constexpr CompositePredicate (predicate_type &&predicate)
 
constexpr CompositePredicate (predicate_type predicate)
 
constexpr CompositePredicate ()=default
 

Protected Attributes

std::vector< predicate_type > predicates
 

Detailed Description

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

Base class for composite Predicates

Template Parameters
Typesargument types for the predicate

Member Typedef Documentation

◆ predicate_type

template<typename... Types>
using fishnet::util::CompositePredicate< Types >::predicate_type = std::function<bool(Types...)>

Constructor & Destructor Documentation

◆ CompositePredicate() [1/3]

template<typename... Types>
constexpr fishnet::util::CompositePredicate< Types >::CompositePredicate ( predicate_type &&  predicate)
inlineexplicitconstexprprotected

◆ CompositePredicate() [2/3]

template<typename... Types>
constexpr fishnet::util::CompositePredicate< Types >::CompositePredicate ( predicate_type  predicate)
inlineexplicitconstexprprotected

◆ CompositePredicate() [3/3]

template<typename... Types>
constexpr fishnet::util::CompositePredicate< Types >::CompositePredicate ( )
constexprprotecteddefault

Member Function Documentation

◆ add() [1/2]

template<typename... Types>
constexpr void fishnet::util::CompositePredicate< Types >::add ( const predicate_type &  predicate)
inlineconstexpr

◆ add() [2/2]

template<typename... Types>
constexpr void fishnet::util::CompositePredicate< Types >::add ( predicate_type &&  predicate)
inlineconstexpr

◆ empty()

template<typename... Types>
constexpr bool fishnet::util::CompositePredicate< Types >::empty ( ) const
inlineconstexprnoexcept

Member Data Documentation

◆ predicates

template<typename... Types>
std::vector<predicate_type> fishnet::util::CompositePredicate< Types >::predicates
protected

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