Web Analytics Made Easy - Statcounter
Skip to content

Class SBCFunctorPredicateAndAnd0#

ClassList > SBCFunctorPredicateAndAnd0

This class describes a predicate that is true when two predicates aretrue __More...

  • #include <SBCFunctorPredicateAndAnd.hpp>

Inherits the following classes: SBCFunctorPredicate0

Public Functions#

Type Name
SBCFunctorPredicateAndAnd0 (const SBCFunctorPredicate0 * firstPredicate, const SBCFunctorPredicate0 * secondPredicate)
Builds the functor predicate. The input functors are cloned internally.
virtual SBCFunctorPredicateAndAnd0 * 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 ~SBCFunctorPredicateAndAnd0 ()
Destructor.

Detailed Description#

Unlike SBCFunctorPredicateAnd0, this logical predicate does not evaluate the second predicate if the first predicate is false.

See also: SBCFunctorPredicateAnd0

Public Functions Documentation#

function SBCFunctorPredicateAndAnd0#

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

SBCFunctorPredicateAndAnd0::SBCFunctorPredicateAndAnd0 (
    const SBCFunctorPredicate0 * firstPredicate,
    const SBCFunctorPredicate0 * secondPredicate
) 

Constructs an AND predicate that evaluates to true only if both predicates are true.

Parameters:

  • firstPredicate The first predicate to evaluate.
  • secondPredicate The second predicate to evaluate.

function clone#

Clones the functor.

virtual SBCFunctorPredicateAndAnd0 * SBCFunctorPredicateAndAnd0::clone () override const

Creates a copy of this predicate.

Returns:

A new predicate instance that is a copy of this one.

Implements SBCFunctor::clone


function operator()#

Performs the predicate's operations and returns the result.

virtual bool SBCFunctorPredicateAndAnd0::operator() () override

Evaluates the predicate and returns true if both sub‑predicates evaluate to true.

Returns:

The result of the logical AND of the two predicates.


function operator()#

Performs the predicate's operations and returns the result.

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

Evaluates the predicate and returns true if both sub‑predicates evaluate to true.

Returns:

The result of the logical AND of the two predicates.


function ~SBCFunctorPredicateAndAnd0#

Destructor.

virtual SBCFunctorPredicateAndAnd0::~SBCFunctorPredicateAndAnd0 () 

Destroys the predicate and releases owned resources.