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
76e9ee55
Commit
76e9ee55
authored
13 years ago
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
(swig) Wccl::Operator fixed
parent
a292d9b2
Branches
Branches containing commit
No related merge requests found
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
swig/libccloperator.i
+14
-12
14 additions, 12 deletions
swig/libccloperator.i
with
14 additions
and
12 deletions
swig/libccloperator.i
+
14
−
12
View file @
76e9ee55
...
...
@@ -21,31 +21,33 @@
%
feature
(
"
notabstract
"
)
Wccl
::
Operator
;
%
rename
(
__op_cop__
)
Wccl
::
Operator
::
operator
=
(
const
Operator&
other
)
;
%
rename
(
__op_fun__
)
Wccl
::
Operator
::
operator
()(
const
SentenceContext&
sentence_context
)
;
namespace
Wccl
{
template <class T> class Operator : public FunctionalOperator {
public:
Operator();
Operator& operator=(const Operator& other);
/*
Operator(const boost::shared_ptr<const Function<T> >& body, const Variables& variables);
*/
Operator(const Operator& other, bool clean = false);
/* --------------------------------------------------------------------- */
%rename(OperatorEq) *::operator=(const Operator& other);
/* --------------------------------------------------------------------- */
%rename(OpFun) operator()(const SentenceContext& sentence_context);
boost::shared_ptr<const T> operator()(const SentenceContext& sentence_context);
/* --------------------------------------------------------------------- */
boost::shared_ptr<const T> apply(const SentenceContext& sentence_context);
boost::shared_ptr<T> copy_apply(const SentenceContext& sentence_context);
boost::shared_ptr<const Value> base_apply(const SentenceContext& sc);
/* --------------------------------------------------------------------- */
Operator clone() const;
Operator clone_clean() const;
/* --------------------------------------------------------------------- */
boost::shared_ptr<Operator<T> > clone_ptr() const;
boost::shared_ptr<Operator<T> > clone_clean_ptr() const;
/* --------------------------------------------------------------------- */
std::string to_string(const Corpus2::Tagset& tagset) const;
protected:
...
...
@@ -58,10 +60,10 @@ namespace Wccl {
%template (StrSetOperator) Operator<StrSet>;
%template (PositionOperator) Operator<Position>;
%template (
SharedPtr
BoolOperator
) boost::
shared_ptr<Operator<Bool> >;
%template (
SharedPtr
TSetOperator
) boost::
shared_ptr<Operator<TSet> >;
%template (
SharedPtr
StrSetOperator
) boost::
shared_ptr<Operator<StrSet> >;
%template (
SharedPtr
PositionOperator
) boost::
shared_ptr<Operator<Position> >;
%template (BoolOperator
Ptr)
shared_ptr<
Wccl::
Operator<Bool> >;
%template (TSetOperator
Ptr)
shared_ptr<
Wccl::
Operator<TSet> >;
%template (StrSetOperator
Ptr)
shared_ptr<
Wccl::
Operator<StrSet> >;
%template (PositionOperator
Ptr)
shared_ptr<
Wccl::
Operator<Position> >;
}
using
namespace
boost
;
...
...
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