CeresEngine 0.2.0
A game development framework
Loading...
Searching...
No Matches
CeresEngine::UnaryPredicate< T, TPredicate > Struct Template Reference

A predicate that operates using two other predicates as-if a unary operation. More...

#include <CeresEngine/Foundation/Predicate.hpp>

Inheritance diagram for CeresEngine::UnaryPredicate< T, TPredicate >:
CeresEngine::Predicate< T > CeresEngine::NotPredicate< OrPredicate< Predicate1, Predicate2 > > CeresEngine::NotPredicate< AndPredicate< Predicate1, Predicate2 > > CeresEngine::AndPredicate< NotPredicate< Predicate1 >, NotPredicate< Predicate2 > > CeresEngine::OrPredicate< NotPredicate< Predicate1 >, NotPredicate< Predicate2 > >

Public Member Functions

constexpr UnaryPredicate (TPredicate &&predicate) noexcept
 Creates a new UnaryPredicate.
 

Public Attributes

TPredicate predicate
 The operand predicate.
 

Detailed Description

template<typename T, typename TPredicate>
struct CeresEngine::UnaryPredicate< T, TPredicate >

A predicate that operates using two other predicates as-if a unary operation.

Template Parameters
Tthe concrete predicate type
TPredicatethe operand predicate

Constructor & Destructor Documentation

◆ UnaryPredicate()

template<typename T , typename TPredicate >
constexpr CeresEngine::UnaryPredicate< T, TPredicate >::UnaryPredicate ( TPredicate &&  predicate)
inlineexplicitconstexprnoexcept

Creates a new UnaryPredicate.

Parameters
predicateThe operand predicate

Member Data Documentation

◆ predicate

template<typename T , typename TPredicate >
TPredicate CeresEngine::UnaryPredicate< T, TPredicate >::predicate

The operand predicate.


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