Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
W
WCCL
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Analysers
WCCL
Commits
76e9ee55
Commit
76e9ee55
authored
May 6, 2011
by
Paweł Kędzia
Browse files
Options
Downloads
Patches
Plain Diff
(swig) Wccl::Operator fixed
parent
a292d9b2
No related branches found
No related tags found
No related merge requests found
Changes
1
Show 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 @@
...
@@ -21,31 +21,33 @@
%
feature
(
"
notabstract
"
)
Wccl
::
Operator
;
%
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
{
namespace
Wccl
{
template <class T> class Operator : public FunctionalOperator {
template <class T> class Operator : public FunctionalOperator {
public:
public:
Operator();
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);
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> operator()(const SentenceContext& sentence_context);
/* --------------------------------------------------------------------- */
boost::shared_ptr<const T> apply(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<T> copy_apply(const SentenceContext& sentence_context);
boost::shared_ptr<const Value> base_apply(const SentenceContext& sc);
boost::shared_ptr<const Value> base_apply(const SentenceContext& sc);
/* --------------------------------------------------------------------- */
Operator clone() const;
Operator clone() const;
Operator clone_clean() const;
Operator clone_clean() const;
/* --------------------------------------------------------------------- */
boost::shared_ptr<Operator<T> > clone_ptr() const;
boost::shared_ptr<Operator<T> > clone_ptr() const;
boost::shared_ptr<Operator<T> > clone_clean_ptr() const;
boost::shared_ptr<Operator<T> > clone_clean_ptr() const;
/* --------------------------------------------------------------------- */
std::string to_string(const Corpus2::Tagset& tagset) const;
std::string to_string(const Corpus2::Tagset& tagset) const;
protected:
protected:
...
@@ -58,10 +60,10 @@ namespace Wccl {
...
@@ -58,10 +60,10 @@ namespace Wccl {
%template (StrSetOperator) Operator<StrSet>;
%template (StrSetOperator) Operator<StrSet>;
%template (PositionOperator) Operator<Position>;
%template (PositionOperator) Operator<Position>;
%template (
SharedPtr
BoolOperator
) boost::
shared_ptr<Operator<Bool> >;
%template (BoolOperator
Ptr)
shared_ptr<
Wccl::
Operator<Bool> >;
%template (
SharedPtr
TSetOperator
) boost::
shared_ptr<Operator<TSet> >;
%template (TSetOperator
Ptr)
shared_ptr<
Wccl::
Operator<TSet> >;
%template (
SharedPtr
StrSetOperator
) boost::
shared_ptr<Operator<StrSet> >;
%template (StrSetOperator
Ptr)
shared_ptr<
Wccl::
Operator<StrSet> >;
%template (
SharedPtr
PositionOperator
) boost::
shared_ptr<Operator<Position> >;
%template (PositionOperator
Ptr)
shared_ptr<
Wccl::
Operator<Position> >;
}
}
using
namespace
boost
;
using
namespace
boost
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
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