Web Analytics Made Easy - Statcounter
Skip to content

Class SBCFunctorPredicateNot0#

ClassList > SBCFunctorPredicateNot0

This class describes a predicate that is the opposite of a predicate.

  • #include <SBCFunctorPredicateNot.hpp>

Inherits the following classes: SBCFunctorPredicate0

Public Functions#

Type Name
SBCFunctorPredicateNot0 (const SBCFunctorPredicate0 * predicate)
Builds the functor predicate. The input functors are cloned internally.
virtual SBCFunctorPredicateNot0 * clone () override const
Clones the functor.
virtual bool operator() () override
Performs the predicate's operations and returns the result.
virtual bool operator() () override const
Performs the predicate's operations and returns the result.
virtual ~SBCFunctorPredicateNot0 ()
Destructor.

Public Functions Documentation#

function SBCFunctorPredicateNot0#

Builds the functor predicate. The input functors are cloned internally.

SBCFunctorPredicateNot0::SBCFunctorPredicateNot0 (
    const SBCFunctorPredicate0 * predicate
) 

Constructs a SBCFunctorPredicateNot0 that negates the given predicate.

Parameters:

  • predicate Pointer to the predicate to be negated. The predicate is cloned internally.

function clone#

Clones the functor.

virtual SBCFunctorPredicateNot0 * SBCFunctorPredicateNot0::clone () override const

Creates a copy of this predicate.

Returns:

A pointer to a new SBCFunctorPredicateNot0 that is a clone of this object.

Implements SBCFunctor::clone


function operator()#

Performs the predicate's operations and returns the result.

virtual bool SBCFunctorPredicateNot0::operator() () override

Evaluates the stored predicate and returns its logical negation.

Returns:

The negated result of the stored predicate.


function operator()#

Performs the predicate's operations and returns the result.

virtual bool SBCFunctorPredicateNot0::operator() () override const

Evaluates the stored predicate and returns its logical negation (const overload).

Returns:

The negated result of the stored predicate.


function ~SBCFunctorPredicateNot0#

Destructor.

virtual SBCFunctorPredicateNot0::~SBCFunctorPredicateNot0 () 

Destroys the SBCFunctorPredicateNot0.