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

Merge branch 'master' of nlp.pwr.wroc.pl:wccl

parents c93442b7 a4f7272d
No related merge requests found
......@@ -70,6 +70,13 @@ public:
return set_;
}
/**
* Wrapper for boost::unordered set
*/
std::set<UnicodeString> to_std_set() const {
return std::set<UnicodeString>(this->set_.begin(), this->set_.end());
}
void swap(StrSet& ss) {
ss.set_.swap(set_);
}
......
......@@ -11,9 +11,12 @@
%include "value.i"
%include "std_string.i"
%include "std_set.i"
%feature("notabstract") Wccl::StrSet;
%template(UnicodeStringMap) std::set<UnicodeString>;
namespace Wccl {
class StrSet : public Value {
public:
......@@ -47,6 +50,9 @@ namespace Wccl {
//
UnicodeString to_raw_string_u() const;
//
std::set<UnicodeString> to_std_set() const;
};
}
......
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