return $self->q.count == 0;
}
%newobject clone;
- Selection *clone(Selection *from, int flags = 0) {
+ Selection *clone(int flags = 0) {
Selection *s;
s = solv_calloc(1, sizeof(*s));
- s->pool = from->pool;
- s->flags = from->flags;
- queue_init_clone(&s->q, &from->q);
+ s->pool = $self->pool;
+ s->flags = $self->flags;
+ queue_init_clone(&s>q, &$self>q);
return s;
}
void filter(Selection *lsel) {
.\" Source: libsolv
.\" Language: English
.\"
-.TH "LIBSOLV\-BINDINGS" "3" "01/18/2018" "libsolv" "LIBSOLV"
+.TH "LIBSOLV\-BINDINGS" "3" "02/27/2018" "libsolv" "LIBSOLV"
.\" -----------------------------------------------------------------
.\" * Define some portability stuff
.\" -----------------------------------------------------------------
.RS 4
.\}
.nf
+\fBSelection clone(int\fR \fIflags\fR \fB= 0)\fR;
+my \fI$cloned\fR \fB=\fR \fI$sel\fR\fB\->clone()\fR;
+\fIcloned\fR \fB=\fR \fIsel\fR\fB\&.clone()\fR
+\fIcloned\fR \fB=\fR \fIsel\fR\fB\&.clone()\fR
+.fi
+.if n \{\
+.RE
+.\}
+.sp
+Clone selection\&.
+.sp
+.if n \{\
+.RS 4
+.\}
+.nf
\fBvoid filter(Selection *\fR\fIother\fR\fB)\fR
\fI$sel\fR\fB\->filter(\fR\fI$other\fR\fB)\fR;
\fIsel\fR\fB\&.filter(\fR\fIother\fR\fB)\fR