20 template <
typename TE,
typename TC>
25 template <
typename TE,
typename TC>
30 template <
typename TE,
typename TC>
35 template <
typename TE,
typename TC>
42 this->insert(it.
next());
46 template <
typename TE,
typename TC>
60 template <
typename TE,
typename TC>
74 template <
typename TE,
typename TC>
78 std::set_intersection(
88 template <
typename TE,
typename TC>
92 return boost::python::make_tuple(boost::python::list(s));
95 template <
typename TE,
typename TC>
96 boost::python::class_<SetPy<TE,TC> >
98 const std::string &pyClassName,
99 const std::string &pyClassDocString
103 boost::python::class_<SetPy<TE,TC> >(
105 pyClassDocString.c_str(),
106 boost::python::init<>()
110 (boost::python::arg(
"iterable"))
114 boost::python::init<boost::python::object &>(
115 (boost::python::arg(
"iterable")),
118 "Constructs set of elements from specifed sequence.\n" +
119 "@type iterable: iterable\n" +
120 "@kwarg iterable: copy and insert elements from C{iterable}" +
128 (boost::python::arg(
"set")),
131 "Returns new set which is the union of this set and C{set}.\n" +
132 "@type set: " + pyClassName +
"\n" +
133 "@kwarg set: Set with which union is performed.\n" +
134 "@rtype: " + pyClassName +
"\n"
135 "@return: new set which is the union of two sets."
141 (boost::python::arg(
"set")),
144 "Returns new set which contains elements of this set not " +
145 " contained in the specified C{set}.\n" +
146 "@type set: " + pyClassName +
"\n" +
147 "@kwarg set: Set with which difference is performed.\n" +
148 "@rtype: " + pyClassName +
"\n"
149 "@return: new set which is the difference of two sets."
155 (boost::python::arg(
"set")),
158 "Returns new set which contains elements common to this set " +
159 " and the specified C{set}.\n" +
160 "@type set: " + pyClassName +
"\n" +
161 "@kwarg set: Set with which intersection is performed.\n" +
162 "@rtype: " + pyClassName +
"\n"
163 "@return: new set which is the intersection of two sets."
168 boost::python::iterator<
170 boost::python::return_internal_reference<>
178 boost::python::self == boost::python::self