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 tags found
No related merge requests found
......@@ -19,6 +19,9 @@
%include "sentence.i"
%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(attr_map_t) std::map<std::string, std::string>;
......@@ -48,7 +51,6 @@ namespace Corpus2 {
};
}
%template(ChunkPtrVector) std::vector<boost::shared_ptr<Chunk> >;
using namespace std;
using namespace Corpus2;
......
......@@ -13,8 +13,10 @@
// %feature("notabstract") Corpus2::TokenMetaData;
%template(DirectionPointPtr) boost::shared_ptr<Corpus2::DirectionPoint>;
%template(ConstDirectionPointPtr) boost::shared_ptr<const Corpus2::DirectionPoint>;
%template(RelationPtr) boost::shared_ptr<Corpus2::Relation>;
%template(ConstRelationPtr) boost::shared_ptr<const Corpus2::Relation>;
%template(RelationPtrVector) std::vector< boost::shared_ptr<Corpus2::Relation> >;
namespace Corpus2 {
class DirectionPoint {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment