From 4da366b1b4ac2d745d5b5d03aa5134b862c0e55c Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Pawe=C5=82=20K=C4=99dzia?= <pawel.kedzia@pwr.wroc.pl>
Date: Wed, 11 May 2011 11:57:24 +0200
Subject: [PATCH] (swig) some fixes

---
 swig/libcclmatch.i     | 4 ++--
 swig/libcclmatchdata.i | 1 -
 swig/libcclvariables.i | 7 +++++++
 3 files changed, 9 insertions(+), 3 deletions(-)

diff --git a/swig/libcclmatch.i b/swig/libcclmatch.i
index b1a0ccd..f64cefe 100644
--- a/swig/libcclmatch.i
+++ b/swig/libcclmatch.i
@@ -14,11 +14,11 @@
 %include "libcorpus/libcorpusannotatedsentence.i"
 
 %include "std_string.i"
-%include "boost_shared_ptr.i"
+// %include "boost_shared_ptr.i"
 
 %feature("notabstract") Wccl::Match;
 
-%template (MatchPtr) boost::shared_ptr<Wccl::Match>;
+// %template (MatchPtr) boost::shared_ptr<Wccl::Match>;
 
 namespace Wccl {
   class Match : public Value {
diff --git a/swig/libcclmatchdata.i b/swig/libcclmatchdata.i
index e250ff2..f25d53a 100644
--- a/swig/libcclmatchdata.i
+++ b/swig/libcclmatchdata.i
@@ -6,7 +6,6 @@
   #include <libwccl/values/matchdata.h>
 %}
 
-
 %include "libcclmatch.i"
 %include "libcorpus/libcorpusannotatedsentence.i"
 
diff --git a/swig/libcclvariables.i b/swig/libcclvariables.i
index 642100d..3048feb 100644
--- a/swig/libcclvariables.i
+++ b/swig/libcclvariables.i
@@ -23,6 +23,13 @@
 %template(TSetPtr) boost::shared_ptr<Wccl::TSet>;
 %template(MatchPtr) boost::shared_ptr<Wccl::Match>;
 %template(VariablesPtr) boost::shared_ptr<Wccl::Variables>;
+%template(ConstValuePtr) boost::shared_ptr<Wccl::Value const>;
+%template(ConstBoolPtr) boost::shared_ptr<Wccl::Bool const>;
+%template(ConstPositionPtr) boost::shared_ptr<Wccl::Position const>;
+%template(ConstStrSetPtr) boost::shared_ptr<Wccl::StrSet const>;
+%template(ConstTSetPtr) boost::shared_ptr<Wccl::TSet const>;
+%template(ConstMatchPtr) boost::shared_ptr<Wccl::Match const>;
+%template(ConstVariablesPtr) boost::shared_ptr<Wccl::Variables const>;
 
 namespace Wccl {
   /* ----------------------------------------------------------------------- */
-- 
GitLab