1 package DBIx::Data::Collection::Set::Wrapper::Inflate;
7 bless({ %{$_[0]} }, ref($proto)||$proto);
10 sub _inflator { shift->{inflator} }
11 sub _inner { shift->{inner} }
15 map $self->_inflator->inflate($_), $self->_inner->flatten;
20 my $inflator = $self->_inflator;
21 DBIx::Data::Stream::Mapped->new({
22 inner => $self->_inner->to_stream,
23 mapper => sub { $inflator->inflate($_) }
27 sub clear { shift->_inner->clear }
30 my ($self, $spec) = @_;
31 my $inflator = $self->_inflator;
34 $inflator->deflate_spec($spec)
40 my ($self, $spec, $body) = @_;
41 my $inflator = $self->_inflator;
42 $self->_inner->replace(
43 $inflator->deflate_spec($spec),
44 $inflator->deflate_body($body),
49 my ($self, $body) = @_;
50 my $inflator = $self->_inflator;
53 $inflator->deflate_body($body)
59 my ($self, $spec) = @_;
60 $self->_inner->remove($self->_inflator->deflate_spec($spec));