Skip to content
Snippets Groups Projects
Commit d47ae260 authored by Paweł Kędzia's avatar Paweł Kędzia
Browse files

(swig) Updated wrapper for Wccl::MatchData

parent b30acda4
Branches
No related merge requests found
......@@ -6,35 +6,43 @@
#include <libwccl/values/matchdata.h>
%}
%include "boost_shared_ptr.i"
%include "libcclmatch.i"
%include "libcclposition.i"
%include "libcorpus/libcorpusannotatedsentence.i"
%include "std_string.i"
%include "boost_shared_ptr.i"
%nodefaultctor Wccl::MatchData;
%template(MatchDataPtr) boost::shared_ptr<Wccl::MatchData>;
namespace Wccl {
class MatchData {
public:
~MatchData();
virtual bool empty() const = 0;
/* --------------------------------------------------------------------- */
virtual bool empty() const = 0;
virtual Position first_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const = 0;
virtual Position last_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const = 0;
virtual int first_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const = 0;
virtual int last_token(const boost::shared_ptr<Corpus2::AnnotatedSentence>&) const = 0;
/* --------------------------------------------------------------------- */
// virtual const boost::shared_ptr<const Match> submatch(size_t) const;
virtual const boost::shared_ptr<Match>& submatch(size_t);
/* --------------------------------------------------------------------- */
boost::shared_ptr<MatchData> clone() const;
/* --------------------------------------------------------------------- */
virtual std::string to_raw_string() const = 0;
/* --------------------------------------------------------------------- */
virtual std::string to_raw_string() const = 0;
virtual ~MatchData() {}
};
}
......
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment