Web Analytics Made Easy - Statcounter
Skip to content

Class SBCFunctorPredicateAnd0#

ClassList > SBCFunctorPredicateAnd0

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

  • #include <SBCFunctorPredicateAnd.hpp>

Inherits the following classes: SBCFunctorPredicate0

Public Functions#

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

Detailed Description#

See also: SBCFunctorPredicateAndAnd0

Public Functions Documentation#

function SBCFunctorPredicateAnd0#

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

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

Constructs a predicate that evaluates to true only if both given predicates evaluate to true.

The input predicates are cloned internally.

Parameters:

  • firstPredicate Pointer to the first predicate to combine.
  • secondPredicate Pointer to the second predicate to combine.

function clone#

Clones the functor.

virtual SBCFunctorPredicateAnd0 * SBCFunctorPredicateAnd0::clone () override const

Creates a copy of this predicate.

Returns a new instance with its own cloned predicates.

Returns:

Pointer to the newly cloned SBCFunctorPredicateAnd0.

Implements SBCFunctor::clone


function operator()#

Performs the predicate's operations and returns the result.

virtual bool SBCFunctorPredicateAnd0::operator() () override

Evaluates the combined predicate.

Returns true only if both internal predicates evaluate to true.

Returns:

Result of the logical AND of the two predicates.


function operator()#

Performs the predicate's operations and returns the result.

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

Evaluates the combined predicate (const overload).

Returns true only if both internal predicates evaluate to true.

Returns:

Result of the logical AND of the two predicates.


function ~SBCFunctorPredicateAnd0#

Destructor.

virtual SBCFunctorPredicateAnd0::~SBCFunctorPredicateAnd0 () 

Destructor. Releases the cloned predicates.