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
6ab15e8f
Commit
6ab15e8f
authored
13 years ago
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
Added wrapper for Wccl::ParsedExpression
parent
031e2cb5
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
+28
-14
28 additions, 14 deletions
swig/libcclparsedexpression.i
with
28 additions
and
14 deletions
swig/libcclparsedexpression.i
+
28
−
14
View file @
6ab15e8f
...
...
@@ -6,33 +6,47 @@
#include <libwccl/ops/parsedexpression.h>
%}
%
include
"
libcclvalue.i
"
%
include
"
libcclmatch.i
"
%
include
"
libcclbool.i
"
%
include
"
libccltset.i
"
%
include
"
libcclstrset.i
"
%
include
"
libcclposition.i
"
%
include
"
libcclexpression.i
"
%
include
"
std_string.i
"
%
include
"
boost_shared_ptr.i
"
%
rename
(
__op_get__
)
Wccl
::
ParsedExpression
::
operator
[](
const
std
::
string&
var_name
)
const
;
namespace
Wccl
{
class ParsedExpression : public Expression {
public:
// TODO
// const Value& operator[](const std::string& var_name) const;
const Value& operator[](const std::string& var_name) const;
// template<class T>
// const T& get(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>;
%template(get_strset) get<StrSet>;
%template(get_position) get<Position>;
%template(get_match) get<Match>;
// template<class T>
// T& get(const std::string& var_name)
// template<class T>
// void set(const std::string& var_name, const T& value);
template<class T> void set(const std::string& var_name, const T& value);
%template(set_bool) set<Bool>;
%template(set_tset) set<TSet>;
%template(set_strset) set<StrSet>;
%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;
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;
std::ostream& dump_variables(std::ostream& ostream, const Corpus2::Tagset& tagset) const;
protected:
// explicit ParsedExpression(const Variables& variables);
// boost::shared_ptr<Variables> variables_;
explicit ParsedExpression(const Variables& variables);
virtual ParsedExpression* clone_internal() const = 0;
};
}
...
...
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