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
ca9420d0
Commit
ca9420d0
authored
13 years ago
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
(swig) Updated wrapper for Wccl::Match
parent
472bb136
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swig/libcclmatch.i
+34
-22
34 additions, 22 deletions
swig/libcclmatch.i
with
34 additions
and
22 deletions
swig/libcclmatch.i
+
34
−
22
View file @
ca9420d0
...
...
@@ -3,22 +3,24 @@
%
module
libcclbool
%
{
#include <libwccl/values/value.h>
#include <libwccl/values/match.h>
%}
%
include
"
std_string.i
"
%
include
"
libcclvalue.i
"
%
include
"
libcclposition.i
"
// %include "libcclmatchdata.i"
// %include "libccltokenmatch.i"
%
include
"
libcclmatchdata.i
"
%
include
"
libccltokenmatch.i
"
%
include
"
libcclannotationmatch.i
"
%
include
"
libcclmatchvector.i
"
%
include
"
libcorpus/libcorpusannotatedsentence.i
"
%
include
"
std_string.i
"
%
include
"
boost_shared_ptr.i
"
%
feature
(
"
notabstract
"
)
Wccl
::
Match
;
namespace
Wccl
{
// class MatchData;
%
template
(
MatchPtr
)
boost
::
shared_ptr
<
Wccl
::
Match
>
;
namespace
Wccl
{
class Match : public Value {
public:
const char* get_type_name() const { return type_name; }
...
...
@@ -26,29 +28,39 @@ namespace Wccl {
std::string make_var_repr(const std::string &var_name) const {
return var_repr(var_name);
}
/* --------------------------------------------------------------------- */
Match();
// Match(const boost::shared_ptr<MatchData>& data);
// Match(const boost::shared_ptr<TokenMatch>& data);
// Match(const boost::shared_ptr<AnnotationMatch>& data);
// Match(const boost::shared_ptr<MatchVector>& data);
// Match(const MatchData& data);
// Match(const Match& match);
/* --------------------------------------------------------------------- */
// %rename(MatchEq) operator=(const Match& match);
// Match& operator=(const Match& match);
Match(const boost::shared_ptr<MatchData>& data);
Match(const boost::shared_ptr<TokenMatch>& data);
Match(const boost::shared_ptr<AnnotationMatch>& data);
Match(const boost::shared_ptr<MatchVector>& data);
/* --------------------------------------------------------------------- */
Match(const MatchData& data);
Match(const Match& match);
/* --------------------------------------------------------------------- */
%rename(OperatorEqMatch) *::operator=(const Match& other);
/* --------------------------------------------------------------------- */
// const MatchData& get_value() const;
// MatchData& get_value();
MatchData& get_value();
/* --------------------------------------------------------------------- */
void set_value(const MatchData& m);
/* --------------------------------------------------------------------- */
// void set_value(const MatchData& m)
;
/
/ bool empty() const;
bool empty() const
;
/
* --------------------------------------------------------------------- */
// virtual Position first_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const;
// virtual Position last_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const;
int first_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>& s) const;
int last_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>& s) const;
/* --------------------------------------------------------------------- */
//
std::string to_raw_string() const;
std::string to_raw_string() 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