Web Analytics Made Easy - Statcounter
Skip to content

Class SBCFunctorPredicateOrOr0#

ClassList > SBCFunctorPredicateOrOr0

This class describes a predicate that is true if at least one of two predicates istrue __More...

  • #include <SBCFunctorPredicateOrOr.hpp>

Inherits the following classes: SBCFunctorPredicate0

Public Functions#

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

Detailed Description#

Unlike SBCFunctorPredicateOr0, this logical predicate does not evaluate the second predicate if the first predicate is true.

See also: SBCFunctorPredicateOrOr0

Public Functions Documentation#

function SBCFunctorPredicateOrOr0#

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

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

Constructs a SBCFunctorPredicateOrOr0 object.

The constructor clones the provided predicates internally.

Parameters:

  • firstPredicate Pointer to the first predicate to be combined.
  • secondPredicate Pointer to the second predicate to be combined.

function clone#

Clones the functor.

virtual SBCFunctorPredicateOrOr0 * SBCFunctorPredicateOrOr0::clone () override const

Creates a copy of this predicate object.

Returns a new SBCFunctorPredicateOrOr0 instance that is a clone of the current object.

Returns:

Pointer to the newly created cloned predicate.

Implements SBCFunctor::clone


function operator()#

Performs the predicate's operations and returns the result.

virtual bool SBCFunctorPredicateOrOr0::operator() () override

Evaluates the combined predicate.

Returns true if either the first or second predicate evaluates to true.

Returns:

Result of the logical OR of the two predicates.


function operator()#

Performs the predicate's operations and returns the result.

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

Evaluates the combined predicate (const version).

Returns true if either the first or second predicate evaluates to true.

Returns:

Result of the logical OR of the two predicates.


function ~SBCFunctorPredicateOrOr0#

Destructor.

virtual SBCFunctorPredicateOrOr0::~SBCFunctorPredicateOrOr0 () 

Destroys the SBCFunctorPredicateOrOr0 object, releasing any allocated resources.

The destructor deletes the internally cloned predicate objects.