Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
Manage
Activity
Members
Labels
Plan
Issues
4
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
0
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container Registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
WCCL
Commits
78575d6e
Commit
78575d6e
authored
14 years ago
by
Adam Wardynski
Browse files
Options
Downloads
Patches
Plain Diff
MatchCondition - ABC for conditions of match operator.
parent
ce15b543
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libwccl/ops/match/matchcondition.h
+30
-0
30 additions, 0 deletions
libwccl/ops/match/matchcondition.h
with
30 additions
and
0 deletions
libwccl/ops/match/matchcondition.h
0 → 100644
+
30
−
0
View file @
78575d6e
#ifndef LIBWCCL_OPS_MATCH_MATCHCONDITION_H
#define LIBWCCL_OPS_MATCH_MATCHCONDITION_H
#include
<libwccl/ops/funexeccontext.h>
#include
<libwccl/ops/expression.h>
#include
<libwccl/ops/match/matchresult.h>
namespace
Wccl
{
/**
* Abstract base class for conditions of MatchOperator
*/
class
MatchCondition
:
public
Expression
{
public:
/**
* @returns Name of the condition.
*/
virtual
std
::
string
name
()
const
=
0
;
/**
* Applies the condition to the given execution context.
* If match is found, the current iter position "$_" is
* set to position right after the match.
*/
virtual
MatchResult
apply
(
boost
::
shared_ptr
<
Position
>
iter_pos
,
const
FunExecContext
&
context
)
const
=
0
;
};
}
/* end ns Wccl */
#endif // LIBWCCL_OPS_MATCH_MATCHCONDITION_H
This diff is collapsed.
Click to expand it.
Preview
0%
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment