1 package LaTeX::TikZ::Set::Sequence;
8 LaTeX::TikZ::Set::Sequence - A set object grouping a sequence of objects.
16 our $VERSION = '0.01';
20 use LaTeX::TikZ::Scope;
23 use Any::Moose 'Util::TypeConstraints'
24 => [ qw/subtype as where find_type_constraint/ ];
28 LaTeX::TikZ::Set::Mutable
31 subtype 'LaTeX::TikZ::Set::Sequence::Elements'
34 $_->does('LaTeX::TikZ::Set::Op')
35 or $_->isa('LaTeX::TikZ::Set::Sequence')
40 isa => 'Maybe[ArrayRef[LaTeX::TikZ::Set::Sequence::Elements]]',
42 default => sub { [ ] },
45 sub kids { @{$_[0]->_kids} }
47 my $ltsse_tc = find_type_constraint('LaTeX::TikZ::Set::Sequence::Elements');
52 $ltsse_tc->assert_valid($_) for @_;
54 push @{$set->_kids}, @_;
62 List::Util::reduce { LaTeX::TikZ::Scope::fold($a, $b) }
67 use LaTeX::TikZ::Interface seq => sub {
70 __PACKAGE__->new(kids => \@_);
73 __PACKAGE__->meta->make_immutable;
77 Vincent Pit, C<< <perl at profvince.com> >>, L<http://www.profvince.com>.
79 You can contact me by mail or on C<irc.perl.org> (vincent).
83 Please report any bugs or feature requests to C<bug-latex-tikz at rt.cpan.org>, or through the web interface at L<http://rt.cpan.org/NoAuth/ReportBug.html?Queue=LaTeX-TikZ>.
84 I will be notified, and then you'll automatically be notified of progress on your bug as I make changes.
88 You can find documentation for this module with the perldoc command.
92 =head1 COPYRIGHT & LICENSE
94 Copyright 2010 Vincent Pit, all rights reserved.
96 This program is free software; you can redistribute it and/or modify it under the same terms as Perl itself.
100 1; # End of LaTeX::TikZ::Set::Sequence