From a386407dc3a828051ed7de943a37f5fce86d95f7 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Adam=20Wardy=C5=84ski?= <no@email> Date: Thu, 4 Nov 2010 22:50:49 +0100 Subject: [PATCH] Clarifying some comments regarding And predicate --- libwccl/ops/and.cpp | 2 +- libwccl/ops/and.h | 8 ++++++-- 2 files changed, 7 insertions(+), 3 deletions(-) diff --git a/libwccl/ops/and.cpp b/libwccl/ops/and.cpp index 893eb6a..758ce19 100644 --- a/libwccl/ops/and.cpp +++ b/libwccl/ops/and.cpp @@ -1,4 +1,4 @@ -#include "and.h" +#include <libwccl/ops/and.h> namespace Wccl { diff --git a/libwccl/ops/and.h b/libwccl/ops/and.h index 1f533d4..b6e44c6 100644 --- a/libwccl/ops/and.h +++ b/libwccl/ops/and.h @@ -8,6 +8,9 @@ namespace Wccl { +/** + * Operator that realises "and" logical predicate + */ class And : public LogicalPredicate { public: @@ -20,8 +23,9 @@ protected : typedef FunctionBase::BaseRetValPtr BaseRetValPtr ; /** - * "And" predicate returns True only when all expressions are true, - * otherwise it returns False + * "And" predicate evaluates each expression from left to right, + * and returns False once an expression evaluating to False is found. + * If all expressions were True, it returns True. */ virtual BaseRetValPtr apply_internal(const SentenceContext&) const; -- GitLab