Skip to content
Snippets Groups Projects
Commit a72497c3 authored by Adam Radziszewski's avatar Adam Radziszewski
Browse files

cleanup swig for values

parent 348e1e4f
No related merge requests found
......@@ -12,6 +12,9 @@
%feature("notabstract") Wccl::Bool;
%template(BoolPtr) boost::shared_ptr<Wccl::Bool>;
%template(ConstBoolPtr) boost::shared_ptr<Wccl::Bool const>;
namespace Wccl {
class Bool : public Value {
public:
......
......@@ -14,9 +14,9 @@
%include "std_string.i"
%include <libcorpus2/boost_shared_ptr.i>
// %template(ValuePtr) boost::shared_ptr<Wccl::Value>;
%template(FunctionalOperatorPtr) boost::shared_ptr<Wccl::FunctionalOperator>;
namespace Wccl {
class FunctionalOperator : public ParsedExpression {
public:
......
......@@ -18,7 +18,8 @@
%feature("notabstract") Wccl::Match;
// %template (MatchPtr) boost::shared_ptr<Wccl::Match>;
%template(MatchPtr) boost::shared_ptr<Wccl::Match>;
%template(ConstMatchPtr) boost::shared_ptr<Wccl::Match const>;
namespace Wccl {
class Match : public Value {
......
......@@ -13,6 +13,9 @@
%feature("notabstract") Wccl::Position;
%template(PositionPtr) boost::shared_ptr<Wccl::Position>;
%template(ConstPositionPtr) boost::shared_ptr<Wccl::Position const>;
namespace Wccl {
class Position : public Value {
public:
......
......@@ -15,6 +15,9 @@
%feature("notabstract") Wccl::StrSet;
%template(StrSetPtr) boost::shared_ptr<Wccl::StrSet>;
%template(ConstStrSetPtr) boost::shared_ptr<Wccl::StrSet const>;
%template(UnicodeStringMap) std::set<UnicodeString>;
namespace Wccl {
......
......@@ -15,6 +15,9 @@
%feature("notabstract") Wccl::TSet;
%template(TSetPtr) boost::shared_ptr<Wccl::TSet>;
%template(ConstTSetPtr) boost::shared_ptr<Wccl::TSet const>;
namespace Wccl {
class TSet : public Value {
public:
......
......@@ -11,6 +11,9 @@
%nodefaultctor Wccl::Value;
%template(ValuePtr) boost::shared_ptr<Wccl::Value>;
%template(ConstValuePtr) boost::shared_ptr<Wccl::Value const>;
namespace Wccl {
class Value {
public:
......
......@@ -16,19 +16,8 @@
%include "std_string.i"
%include <libcorpus2/boost_shared_ptr.i>
%template(ValuePtr) boost::shared_ptr<Wccl::Value>;
%template(BoolPtr) boost::shared_ptr<Wccl::Bool>;
%template(PositionPtr) boost::shared_ptr<Wccl::Position>;
%template(StrSetPtr) boost::shared_ptr<Wccl::StrSet>;
%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 {
......
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