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

Swig templates handling...

parent 6546bdab
Branches
No related merge requests found
...@@ -19,6 +19,9 @@ ...@@ -19,6 +19,9 @@
%include "sentence.i" %include "sentence.i"
%template(ChunkPtr) boost::shared_ptr<Corpus2::Chunk>; %template(ChunkPtr) boost::shared_ptr<Corpus2::Chunk>;
%template(ConstChunkPtr) boost::shared_ptr<const Corpus2::Chunk>;
%template(ChunkPtrVector) std::vector< boost::shared_ptr<Corpus2::Chunk> >;
%template(SentencePtrVector) std::vector<boost::shared_ptr<Sentence> >; %template(SentencePtrVector) std::vector<boost::shared_ptr<Sentence> >;
// %template(attr_map_t) std::map<std::string, std::string>; // %template(attr_map_t) std::map<std::string, std::string>;
...@@ -48,7 +51,6 @@ namespace Corpus2 { ...@@ -48,7 +51,6 @@ namespace Corpus2 {
}; };
} }
%template(ChunkPtrVector) std::vector<boost::shared_ptr<Chunk> >;
using namespace std; using namespace std;
using namespace Corpus2; using namespace Corpus2;
......
...@@ -13,8 +13,10 @@ ...@@ -13,8 +13,10 @@
// %feature("notabstract") Corpus2::TokenMetaData; // %feature("notabstract") Corpus2::TokenMetaData;
%template(DirectionPointPtr) boost::shared_ptr<Corpus2::DirectionPoint>; %template(DirectionPointPtr) boost::shared_ptr<Corpus2::DirectionPoint>;
%template(ConstDirectionPointPtr) boost::shared_ptr<const Corpus2::DirectionPoint>; %template(ConstDirectionPointPtr) boost::shared_ptr<const Corpus2::DirectionPoint>;
%template(RelationPtr) boost::shared_ptr<Corpus2::Relation>; %template(RelationPtr) boost::shared_ptr<Corpus2::Relation>;
%template(ConstRelationPtr) boost::shared_ptr<const Corpus2::Relation>; %template(ConstRelationPtr) boost::shared_ptr<const Corpus2::Relation>;
%template(RelationPtrVector) std::vector< boost::shared_ptr<Corpus2::Relation> >;
namespace Corpus2 { namespace Corpus2 {
class DirectionPoint { class DirectionPoint {
......
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