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
85ec635b
Commit
85ec635b
authored
13 years ago
by
ilor
Browse files
Options
Downloads
Patches
Plain Diff
add valid_variable_names accesor to ParsedExpression
parent
30c172ea
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
libwccl/ops/parsedexpression.h
+16
-0
16 additions, 0 deletions
libwccl/ops/parsedexpression.h
with
16 additions
and
0 deletions
libwccl/ops/parsedexpression.h
+
16
−
0
View file @
85ec635b
...
@@ -139,6 +139,11 @@ public:
...
@@ -139,6 +139,11 @@ public:
*/
*/
boost
::
shared_ptr
<
ParsedExpression
>
clone_clean_ptr
()
const
;
boost
::
shared_ptr
<
ParsedExpression
>
clone_clean_ptr
()
const
;
/**
* @returns vector of strings corresponfing to valid variable names
* in this operator.
*/
std
::
vector
<
std
::
string
>
valid_variable_names
()
const
;
/**
/**
* @returns String with representation of all held variables,
* @returns String with representation of all held variables,
...
@@ -232,6 +237,17 @@ boost::shared_ptr<ParsedExpression> ParsedExpression::clone_clean_ptr() const {
...
@@ -232,6 +237,17 @@ boost::shared_ptr<ParsedExpression> ParsedExpression::clone_clean_ptr() const {
return
copy
;
return
copy
;
}
}
inline
std
::
vector
<
std
::
string
>
ParsedExpression
::
valid_variable_names
()
const
{
std
::
vector
<
std
::
string
>
valid
;
typedef
std
::
pair
<
std
::
string
,
boost
::
shared_ptr
<
Wccl
::
Value
>
>
v_t
;
// ja chcę c++1x i auto/decltype
foreach
(
const
v_t
&
v
,
variables_
->
get_all
<
Wccl
::
Value
>
())
{
valid
.
push_back
(
v
.
first
);
}
return
valid
;
}
inline
inline
std
::
ostream
&
ParsedExpression
::
dump_variables
(
std
::
ostream
&
ParsedExpression
::
dump_variables
(
std
::
ostream
&
ostream
,
std
::
ostream
&
ostream
,
...
...
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