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
f32600df
Commit
f32600df
authored
13 years ago
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
(swig) Wccl::ParsedExpression fixed
parent
ac422cb8
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swig/libcclparsedexpression.i
+10
-2
10 additions, 2 deletions
swig/libcclparsedexpression.i
with
10 additions
and
2 deletions
swig/libcclparsedexpression.i
+
10
−
2
View file @
f32600df
...
...
@@ -18,13 +18,15 @@
%
include
"
std_string.i
"
%
include
"
boost_shared_ptr.i
"
%
rename
(
__op_get__
)
Wccl
::
ParsedExpression
::
operator
[](
const
st
d
::
s
tring&
var_name
)
const
;
%
template
(
ParsedExpressionPtr
)
boo
st
::
s
hared_ptr
<
Wccl
::
ParsedExpression
>
;
namespace
Wccl
{
class ParsedExpression : public Expression {
public:
%rename(Getvalue) operator[](const std::string& var_name) const;
const Value& operator[](const std::string& var_name) const;
/* --------------------------------------------------------------------- */
template<class T> T& get(const std::string& var_name);
%template(get_bool) get<Bool>;
%template(get_tset) get<TSet>;
...
...
@@ -32,6 +34,7 @@ namespace Wccl {
%template(get_position) get<Position>;
%template(get_match) get<Match>;
/* --------------------------------------------------------------------- */
template<class T> void set(const std::string& var_name, const T& value);
%template(set_bool) set<Bool>;
%template(set_tset) set<TSet>;
...
...
@@ -39,9 +42,14 @@ namespace Wccl {
%template(set_position) set<Position>;
%template(set_match) set<Match>;
/* --------------------------------------------------------------------- */
void clean();
/* --------------------------------------------------------------------- */
boost::shared_ptr<ParsedExpression> clone_ptr() const;
boost::shared_ptr<ParsedExpression> clone_clean_ptr() const;
/* --------------------------------------------------------------------- */
std::string variables_string(const Corpus2::Tagset& tagset) const;
std::ostream& dump_variables(std::ostream& ostream, const Corpus2::Tagset& tagset) const;
...
...
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